[Skip to main content](#vessel-content)

#   Adding Products To Orders In Admin

##

- **[davec](/forum/user/7092-davec "View davec's Profile")**
- [![davec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7092-davec "View davec's Profile") Topic Author
- [ Offline](/forum/user/7092-davec)

Less More

- Posts: 447
- Thank you received: 20
-
-

5 years 4 months ago -  5 years 4 months ago [\#334611](#334611) by [davec](/forum/user/7092-davec "View davec's Profile")  *[Adding Products To Orders In Admin](/forum/35-orders-management/902995-adding-products-to-orders-in-admin#334611 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28  Hi  I have been contacted by my customer reference adding products to an order in the backend. Previously when adding a product he could see the quantity etc, but now he just has a product tree with no information. Is there a way to revert the display back to an earlier version as per the screenshot screenshot-2021.07.23-12&#95;51&#95;03. This is quite urgent!!  Thanks  David")* was created by *[davec](/forum/user/7092-davec "View davec's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.28

Hi

I have been contacted by my customer reference adding products to an order in the backend. Previously when adding a product he could see the quantity etc, but now he just has a product tree with no information. Is there a way to revert the display back to an earlier version as per the screenshot screenshot-2021.07.23-12_51_03. This is quite urgent!!

Thanks

David

- [ ![screenshot-2021.07.23-12&#95;43&#95;14.png](/forum/attachment/53302) ](/forum/attachment/53302 "...3-12&#95;43&#95;14.png") [ ](/forum/attachment/53302?download=1 "...3-12&#95;43&#95;14.png")
- [ ![screenshot-2021.07.23-12&#95;51&#95;03.png](/forum/attachment/53303) ](/forum/attachment/53303 "...3-12&#95;51&#95;03.png") [ ](/forum/attachment/53303?download=1 "...3-12&#95;51&#95;03.png")

Last edit: 5 years 4 months ago by [davec](/forum/user/7092-davec "View davec's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMjk5NS1hZGRpbmctcHJvZHVjdHMtdG8tb3JkZXJzLWluLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

5 years 4 months ago [\#334613](#334613) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding Products To Orders In Admin](/forum/35-orders-management/902995-adding-products-to-orders-in-admin#334613 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.28  Hi  I have been contacted by my customer reference adding products to an order in the backend. Previously when adding a product he could see the quantity etc, but now he just has a product tree with no information. Is there a way to revert the display back to an earlier version as per the screenshot screenshot-2021.07.23-12&#95;51&#95;03. This is quite urgent!!  Thanks  David")*

Hi,

You can edit the file product / selection.php for your backend template via the menu Display&gt;Views.
There, remove the whole code and copy / paste this code instead : Code:

&lt;?php $this-&gt;listing(); $shopCategoryType = hikashop_get('type.categorysub'); $this-&gt;shopCategoryType = $shopCategoryType; if( !$this-&gt;singleSelection ) { ?&gt; &lt;fieldset&gt; &lt;div class="toolbar" id="toolbar" style="float: right;"&gt; &lt;button class="btn" type="button" onclick="hikashop_setId(this);"&gt;&lt;img style="vertical-align:middle" src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;add.png"/&gt;&lt;?php echo JText::_('OK'); ?&gt;&lt;/button&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; function hikashop_setId(el) { if(document.hikashop_form.boxchecked.value==0){ alert('&lt;?php echo JText::_('PLEASE_SELECT_SOMETHING', true); ?&gt;'); }else{ el.form.ctrl.value = '&lt;?php echo $this-&gt;ctrl ?&gt;'; hikashop.submitform("&lt;?php echo $this-&gt;task; ?&gt;",el.form); } } &lt;/script&gt; &lt;/fieldset&gt; &lt;?php } else { ?&gt; &lt;script type="text/javascript"&gt; function hikashop_setId(id) { var form = document.getElementById("adminForm"); form.cid.value = id; form.ctrl.value = '&lt;?php echo $this-&gt;ctrl ?&gt;'; hikashop.submitform("&lt;?php echo $this-&gt;task; ?&gt;",form); } &lt;/script&gt; &lt;?php } ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('product'); ?&gt;" method="post" name="adminForm" id="adminForm"&gt; &lt;div class="hk-row-fluid"&gt; &lt;div class="hkc-xs-6"&gt; &lt;?php echo $this-&gt;loadHkLayout('search', array()); ?&gt; &lt;/div&gt; &lt;div class="hkc-xs-6 hikashop_listing_filters"&gt; &lt;?php echo $this-&gt;productType-&gt;display('filter_product_type',$this-&gt;pageInfo-&gt;filter-&gt;filter_product_type); // // Filters // if($this-&gt;config-&gt;get('show_category_explorer', 1)) { echo $this-&gt;childDisplayType-&gt;display('filter_type', $this-&gt;pageInfo-&gt;selectedType, false, false); } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php if(!empty($this-&gt;breadcrumb)) { ?&gt; &lt;div class="hika_breadcrumb"&gt; &lt;?php foreach($this-&gt;breadcrumb as $i =&gt; $breadcrumb) { if($i &gt; 0) echo '&lt;span class="sbreadcrumb_ep"&gt;/&lt;/span&gt; '; if($breadcrumb-&gt;category_id != $this-&gt;cid) { echo '&lt;span class="breadcrumb_el"&gt;&lt;a href="'.hikashop_completeLink('category&amp;task=listing&amp;cid='.$breadcrumb-&gt;category_id).'"&gt;'.JText::_($breadcrumb-&gt;category_name).'&lt;/a&gt;&lt;/span&gt; '; } else { echo '&lt;span class="breadcrumb_el"&gt;'.JText::_($breadcrumb-&gt;category_name).'&lt;/span&gt; '; } } ?&gt; &lt;/div&gt; &lt;?php } if($this-&gt;config-&gt;get('show_category_explorer', 1)) { ?&gt; &lt;table id="hika_product_listing" style="border:0px;width:100%"&gt; &lt;tr&gt; &lt;td style="vertical-align:top;width:1%"&gt; &lt;div id="category_explorer_btn" class="category_explorer_btn_hide"&gt; &lt;a href="#" onclick="return category_listing_hideshow(this);"&gt;&lt;span&gt;&lt;?php echo JText::_('EXPLORER'); ?&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;?php echo $this-&gt;shopCategoryType-&gt;displayTree('hika_categories', 0, null, true, true); ?&gt; &lt;/td&gt; &lt;td style="vertical-align:top;" id="hika_product_main_listing"&gt; &lt;?php } ?&gt; &lt;table class="adminlist &lt;?php echo (HIKASHOP_BACK_RESPONSIVE)?'table table-striped table-hover':'hika_table'; ?&gt;" style="width:100%;cell-spacing:1px"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th class="title titlenum"&gt;&lt;?php echo JText::_('HIKA_NUM'); ?&gt;&lt;/th&gt; &lt;?php $cols = 6; if( !$this-&gt;singleSelection ) { $cols = 7; ?&gt; &lt;th class="title titlebox"&gt; &lt;input type="checkbox" name="toggle" value="" onclick="hikashop.checkAll(this);" /&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;th class="hikashop_product_name_title title"&gt;&lt;?php echo JHTML::_('grid.sort', JText::_('HIKA_NAME'), 'a.product_name', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value); ?&gt;&lt;/th&gt; &lt;th class="hikashop_product_code_title title"&gt;&lt;?php echo JHTML::_('grid.sort', JText::_('PRODUCT_CODE'), 'a.product_code', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value); ?&gt;&lt;/th&gt; &lt;th class="hikashop_product_quantity_title title"&gt;&lt;?php echo JHTML::_('grid.sort', JText::_('PRODUCT_QUANTITY'), 'a.product_quantity', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value); ?&gt;&lt;/th&gt; &lt;th class="hikashop_product_price_title title"&gt;&lt;?php // Price not sortable.. yet echo JText::_('PRODUCT_PRICE'); ?&gt;&lt;/th&gt; &lt;th class="hikashop_product_id_title title"&gt;&lt;?php echo JHTML::_('grid.sort', JText::_('ID'), 'a.product_id', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir, $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value); ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tfoot&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $cols ?&gt;"&gt; &lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;tbody&gt; &lt;?php $k = 0; $i = 0; foreach($this-&gt;rows as $product) { $lbl1 = ''; $lbl2 = ''; $extraTr = ''; if( $this-&gt;singleSelection ) { if($this-&gt;confirm) { $data = '{id:'.$product-&gt;product_id; foreach($this-&gt;elemStruct as $s) { if($s == 'id') continue; $data .= ','.$s.':\''. str_replace(array('\'','"'),array('\\\'','\\\''),$product-&gt;$s).'\''; } $data .= '}'; $extraTr = ' style="cursor:pointer" onclick="window.top.hikashop.submitBox('.$data.');"'; } else { $extraTr = ' style="cursor:pointer" onclick="hikashop_setId(\''.$product-&gt;product_id.'\');"'; } if(!empty($this-&gt;pageInfo-&gt;search)) { $row = hikashop_search($this-&gt;pageInfo-&gt;search, $product, 'product_id'); } } else { $lbl1 = '&lt;label for="cb'.$i.'"&gt;'; $lbl2 = '&lt;/label&gt;'; $extraTr = ' onclick="hikashop.checkRow(\'cb'.$i.'\');"'; } ?&gt; &lt;tr class="row&lt;?php echo $k; ?&gt;"&lt;?php echo $extraTr; ?&gt;&gt; &lt;td class="hk_center"&gt;&lt;?php echo $this-&gt;pagination-&gt;getRowOffset($i); ?&gt;&lt;/td&gt; &lt;?php if( !$this-&gt;singleSelection ) { ?&gt; &lt;td class="hk_center"&gt;&lt;input type="checkbox" onclick="this.clicked = true; this.checked = !this.checked;" value="&lt;?php echo $product-&gt;product_id; ?&gt;" name="cid[]" id="cb&lt;?php echo $i; ?&gt;"/&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_product_name_value"&gt;&lt;?php echo $product-&gt;product_name; ?&gt;&lt;/td&gt; &lt;td class="hikashop_product_code_value"&gt;&lt;?php echo $product-&gt;product_code; ?&gt;&lt;/td&gt; &lt;td class="hikashop_product_quantity_value"&gt;&lt;?php echo ($product-&gt;product_quantity &gt;= 0) ? $product-&gt;product_quantity : JText::_('UNLIMITED'); ?&gt;&lt;/td&gt; &lt;td class="hikashop_product_price_value"&gt;&lt;?php if(!empty($product-&gt;prices)) echo $this-&gt;currencyHelper-&gt;displayPrices($product-&gt;prices); ?&gt;&lt;/td&gt; &lt;td class="hikashop_product_id_value hk_center"&gt;&lt;?php echo $product-&gt;product_id; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php $k = 1-$k; $i++; } ?&gt; &lt;/tbody&gt; &lt;?php if($this-&gt;config-&gt;get('show_category_explorer', 1)) { ?&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;script type="text/javascript"&gt; hika_categories.sel(hika_categories.find(&lt;?php echo $this-&gt;cid; ?&gt;)); hika_categories.callbackSelection = function(tree,id) { var d = document, node = tree.get(id); if( node.value &amp;&amp; node.name) { var form = document['adminForm']; form['cid'].value = node.value; form.submit(); } }; function category_listing_hideshow(el, state) { var d = document, w = window, o = w.Oby, tree = d.getElementById("hika_categories_otree"), p = el.parentNode; if((state !== true &amp;&amp; o.hasClass(p, "category_explorer_btn_hide")) &#124;&#124; state === false) { tree.style.display = "none"; o.removeClass(p, "category_explorer_btn_hide"); o.addClass(p, "category_explorer_btn_show"); state = 0; } else { o.removeClass(p, "category_explorer_btn_show"); o.addClass(p, "category_explorer_btn_hide"); tree.style.display = ""; state = 1; } w.hikashop.dataStore("hikashop_product_listing_explorer", state); return false; } (function(){ var el = document.getElementById('category_explorer_btn'), data = window.hikashop.dataGet("hikashop_product_listing_explorer"); if(el &amp;&amp; el.parentNode) el.parentNode.style.height = (el.parentNode.offsetHeight) + 'px'; if(el &amp;&amp; el.firstChild &amp;&amp; (data == 0 &#124;&#124; data == '0')) category_listing_hideshow(el.firstChild, false); })(); &lt;/script&gt; &lt;?php } ?&gt; &lt;/table&gt; &lt;?php if( $this-&gt;singleSelection ) { ?&gt; &lt;input type="hidden" name="pid" value="0" /&gt; &lt;?php } ?&gt; &lt;input type="hidden" name="cid" value="&lt;?php echo @$this-&gt;cid; ?&gt;" /&gt; &lt;input type="hidden" name="option" value="&lt;?php echo HIKASHOP_COMPONENT; ?&gt;" /&gt; &lt;input type="hidden" name="task" value="selection" /&gt; &lt;input type="hidden" name="tmpl" value="component" /&gt; &lt;input type="hidden" name="selection" value="products" /&gt; &lt;input type="hidden" name="after" value="&lt;?php echo hikaInput::get()-&gt;getVar('after', ''); ?&gt;" /&gt; &lt;input type="hidden" name="afterParams" value="&lt;?php echo hikaInput::get()-&gt;getVar('afterParams', ''); ?&gt;" /&gt; &lt;input type="hidden" name="confirm" value="&lt;?php echo $this-&gt;confirm ? '1' : '0'; ?&gt;" /&gt; &lt;input type="hidden" name="single" value="&lt;?php echo $this-&gt;singleSelection ? '1' : '0'; ?&gt;" /&gt; &lt;input type="hidden" name="ctrl" value="product" /&gt; &lt;input type="hidden" name="boxchecked" value="0" /&gt; &lt;input type="hidden" name="filter_order" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value; ?&gt;" /&gt; &lt;input type="hidden" name="filter_order_Dir" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir; ?&gt;" /&gt; &lt;?php if(!empty($this-&gt;afterParams)) { foreach($this-&gt;afterParams as $p) { if(empty($p[0]) &#124;&#124; !isset($p[1])) continue; echo '&lt;input type="hidden" name="'.$this-&gt;escape($p[0]).'" value="'.$this-&gt;escape($p[1]).'"/&gt;' . "\r\n"; } echo '&lt;input type="hidden" name="after" value="'.hikaInput::get()-&gt;getString('after', '').'"/&gt;'."\r\n"; echo '&lt;input type="hidden" name="afterParams" value="'.hikaInput::get()-&gt;getString('afterParams', '').'"/&gt;'."\r\n"; } ?&gt; &lt;?php echo JHTML::_('form.token'); ?&gt; &lt;/form&gt; &lt;script type="text/javascript"&gt; document.adminForm = document.getElementById("hikashop_form"); &lt;/script&gt;

Then, save the view file override and you'll get back the previous interface.

The following user(s) said Thank You: [davec](/forum/user/7092-davec "View davec's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMjk5NS1hZGRpbmctcHJvZHVjdHMtdG8tb3JkZXJzLWluLWFkbWluP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.043 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
