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

#   Cpanel order don't use canonical url and breaks it

##

- **[almika](/forum/user/15732-almika "View almika's Profile")**
- [![almika's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15732.png)](/forum/user/15732-almika "View almika's Profile") Topic Author
- [ Offline](/forum/user/15732-almika)

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

10 years 8 months ago [\#230714](#230714) by [almika](/forum/user/15732-almika "View almika's Profile")  *[Cpanel order don't use canonical url and breaks it](/forum/4-how-to/882473-cpanel-order-dont-use-canonical-url-and-breaks-it#230714 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6  Hi,  My setting for canonical url is &quot;Use canonical URL and generate it if missing&quot;. I checked all canonical url for products. All was fine. But then I see - some url were broken. Just now I know that is happened after a user see his order in cpanel. Products' show in cpanel orders don't use canonical url's from product table and rewrite it. If I set &quot;Use canonical URL&quot;, Cpanel/order/show don't rewrite it, but no use it still.  Any advices, please. Thank you.")* was created by *[almika](/forum/user/15732-almika "View almika's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6

Hi,

My setting for canonical url is "Use canonical URL and generate it if missing".
I checked all canonical url for products. All was fine.
But then I see - some url were broken.
Just now I know that is happened after a user see his order in cpanel.
Products' show in cpanel orders don't use canonical url's from product table and rewrite it.
If I set "Use canonical URL", Cpanel/order/show don't rewrite it, but no use it still.

Any advices, please.
Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4MjQ3My1jcGFuZWwtb3JkZXItZG9uLXQtdXNlLWNhbm9uaWNhbC11cmwtYW5kLWJyZWFrcy1pdD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

10 years 8 months ago [\#230732](#230732) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cpanel order don't use canonical url and breaks it](/forum/4-how-to/882473-cpanel-order-dont-use-canonical-url-and-breaks-it#230732 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6  Hi,  My setting for canonical url is &quot;Use canonical URL and generate it if missing&quot;. I checked all canonical url for products. All was fine. But then I see - some url were broken. Just now I know that is happened after a user see his order in cpanel. Products' show in cpanel orders don't use canonical url's from product table and rewrite it. If I set &quot;Use canonical URL&quot;, Cpanel/order/show don't rewrite it, but no use it still.  Any advices, please. Thank you.")*

Hi,

Edit the file "show" of the view "order" via the menu Display&gt;Views and replace its content with: Code:

&lt;?php $colspan = 2; global $Itemid; $url_itemid = ''; if(!empty($Itemid)) { $url_itemid = '&amp;Itemid=' . $Itemid; } $config = hikashop_config(); ?&gt; &lt;div id="hikashop_order_main"&gt; &lt;fieldset&gt; &lt;div class="header hikashop_header_title"&gt; &lt;h1&gt; &lt;?php if($this-&gt;invoice_type == 'order' &#124;&#124; empty($this-&gt;element-&gt;order_invoice_number)) { echo JText::_('HIKASHOP_ORDER').':'.$this-&gt;element-&gt;order_number; } else { echo JText::_('INVOICE').':'.$this-&gt;element-&gt;order_invoice_number; } ?&gt; &lt;/h1&gt; &lt;/div&gt; &lt;?php if($this-&gt;invoice_type == 'order') { ?&gt; &lt;div class="toolbar hikashop_header_buttons" id="toolbar"&gt; &lt;table&gt; &lt;tr&gt; &lt;?php if(hikashop_level(1)) { if($this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status, array('created','refunded','cancelled'))) { ?&gt; &lt;td&gt;&lt;?php echo $this-&gt;popup-&gt;display( '&lt;span class="icon-32-print" title="'. JText::_('PRINT_INVOICE').'"&gt;&lt;/span&gt;'. JText::_('PRINT_INVOICE'), 'PRINT_INVOICE', hikashop_completeLink('order&amp;task=invoice&amp;order_id='.$this-&gt;element-&gt;order_id.$url_itemid,true), 'hikashop_print_invoice', 760, 480, '', '', 'link' ); ?&gt;&lt;/td&gt; &lt;?php } } ?&gt; &lt;td&gt; &lt;a id="hikashop_order_back_button" onclick="submitbutton('cancel'); return false;" href="#"&gt; &lt;span class="icon-32-back" title="&lt;?php echo JText::_('HIKA_BACK'); ?&gt;"&gt;&lt;/span&gt; &lt;?php echo JText::_('HIKA_BACK'); ?&gt; &lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/fieldset&gt; &lt;form action="&lt;?php echo hikashop_completeLink('order'.$url_itemid); ?&gt;" method="post" name="adminForm" id="adminForm"&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;td&gt; &lt;div id="hikashop_order_right_part" class="hikashop_order_right_part"&gt; &lt;?php if($this-&gt;invoice_type == 'order' &#124;&#124; empty($this-&gt;element-&gt;order_invoice_created)) { echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_created, '%d %B %Y'); } else { echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_invoice_created, '%d %B %Y'); } ?&gt; &lt;br/&gt; &lt;?php if($this-&gt;invoice_type == 'order' &#124;&#124; empty($this-&gt;element-&gt;order_invoice_number)) { echo JText::_('HIKASHOP_ORDER').': '.@$this-&gt;element-&gt;order_number; } else { echo JText::_(strtoupper($this-&gt;invoice_type)).': '.@$this-&gt;element-&gt;order_invoice_number; } ?&gt; &lt;/div&gt; &lt;div id="hikashop_order_left_part" class="hikashop_order_left_part"&gt;&lt;?php echo $this-&gt;store_address; ?&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;?php $params = null; $js = ''; ?&gt; &lt;?php if(!empty($this-&gt;element-&gt;billing_address)) { ?&gt; &lt;td&gt; &lt;fieldset class="adminform" id="htmlfieldset_billing"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?&gt;&lt;/legend&gt; &lt;?php $addressClass = hikashop_get('class.address'); echo $addressClass-&gt;displayAddress($this-&gt;element-&gt;fields,$this-&gt;element-&gt;billing_address,'address'); ?&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;?php } if(!empty($this-&gt;element-&gt;order_shipping_id) &amp;&amp; !empty($this-&gt;element-&gt;shipping_address)) { ?&gt; &lt;td&gt; &lt;fieldset class="adminform" id="htmlfieldset_shipping"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?&gt;&lt;/legend&gt; &lt;?php $override = false; if(method_exists($this-&gt;currentShipping, 'getShippingAddress')) { $override = $this-&gt;currentShipping-&gt;getShippingAddress($this-&gt;element-&gt;order_shipping_id); } if($override !== false ) { echo $override; } else { $addressClass = hikashop_get('class.address'); echo $addressClass-&gt;displayAddress($this-&gt;element-&gt;fields, $this-&gt;element-&gt;shipping_address, 'address'); } ?&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;fieldset class="adminform" id="htmlfieldset_products"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('PRODUCT_LIST'); ?&gt;&lt;/legend&gt; &lt;table cellpadding="1" width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th class="hikashop_order_item_name_title title"&gt;&lt;?php echo JText::_('PRODUCT'); ?&gt;&lt;/th&gt; &lt;?php $files = false; foreach($this-&gt;order-&gt;products as $product ){ if(!empty($product-&gt;files)) { $files = true; break; } } if($this-&gt;invoice_type == 'order' &amp;&amp; $files) { $colspan++; ?&gt; &lt;th class="hikashop_order_item_files_title title"&gt;&lt;?php echo JText::_('HIKA_FILES'); ?&gt;&lt;/th&gt; &lt;?php } ?&gt; &lt;th class="hikashop_order_item_price_title title"&gt;&lt;?php echo JText::_('UNIT_PRICE'); ?&gt;&lt;/th&gt; &lt;th class="hikashop_order_item_quantity_title title titletoggle"&gt;&lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt;&lt;/th&gt; &lt;th class="hikashop_order_item_total_title title titletoggle"&gt;&lt;?php echo JText::_('PRICE'); ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $k=0; $group = $this-&gt;config-&gt;get('group_options',0); $productClass = hikashop_get('class.product'); foreach($this-&gt;order-&gt;products as $product) { if($group &amp;&amp; $product-&gt;order_product_option_parent_id) continue; ?&gt; &lt;tr class="row&lt;?php echo $k;?&gt;"&gt; &lt;td class="hikashop_order_item_name_value"&gt; &lt;?php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)) { $prodData = $productClass-&gt;get($product-&gt;product_id); ?&gt; &lt;a class="hikashop_order_product_link" href="&lt;?php echo hikashop_contentLink('product&amp;task=show&amp;cid='.$product-&gt;product_id.$url_itemid,$prodData); ?&gt;"&gt; &lt;?php } ?&gt; &lt;p class="hikashop_order_product_name"&gt; &lt;?php echo $product-&gt;order_product_name; ?&gt; &lt;?php if($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span class="hikashop_product_code_order"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;/p&gt; &lt;?php if($group) { $display_item_price = false; foreach($this-&gt;order-&gt;products as $j =&gt; $optionElement) { if($optionElement-&gt;order_product_option_parent_id != $product-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price &gt; 0) { $display_item_price = true; } } if($display_item_price) { if($this-&gt;config-&gt;get('price_with_tax')) { echo ' '.$this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price + $product-&gt;order_product_tax, $this-&gt;order-&gt;order_currency_id); } else { echo ' '.$this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } } } ?&gt; &lt;?php if($this-&gt;invoice_type == 'order' &amp;&amp; !empty($product-&gt;product_id)) { ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;p class="hikashop_order_product_custom_item_fields"&gt; &lt;?php if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields['item'])) { foreach($this-&gt;fields['item'] as $field) { $namekey = $field-&gt;field_namekey; if(!empty($product-&gt;$namekey) &amp;&amp; strlen($product-&gt;$namekey)) { echo '&lt;p class="hikashop_order_item_'.$namekey.'"&gt;' . $this-&gt;fieldsClass-&gt;getFieldName($field) . ': ' . $this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey) . '&lt;/p&gt;'; } } } if($group) { foreach($this-&gt;order-&gt;products as $j =&gt; $optionElement) { if($optionElement-&gt;order_product_option_parent_id != $product-&gt;order_product_id) continue; $product-&gt;order_product_price += $optionElement-&gt;order_product_price; $product-&gt;order_product_tax += $optionElement-&gt;order_product_tax; $product-&gt;order_product_total_price += $optionElement-&gt;order_product_total_price; $product-&gt;order_product_total_price_no_vat += $optionElement-&gt;order_product_total_price_no_vat; ?&gt; &lt;p class="hikashop_order_option_name"&gt; &lt;?php echo $optionElement-&gt;order_product_name; if($optionElement-&gt;order_product_price &gt; 0) { if($this-&gt;config-&gt;get('price_with_tax')) { echo ' ( + '.$this-&gt;currencyHelper-&gt;format($optionElement-&gt;order_product_price + $optionElement-&gt;order_product_tax, $this-&gt;order-&gt;order_currency_id).' )'; } else { echo ' ( + '.$this-&gt;currencyHelper-&gt;format($optionElement-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id).' )'; } } ?&gt; &lt;/p&gt; &lt;?php } } ?&gt; &lt;/p&gt; &lt;?php if(!empty($product-&gt;extraData)) echo '&lt;p class="hikashop_order_product_extra"&gt;' . (is_string($product-&gt;extraData) ? $product-&gt;extraData : implode('&lt;br/&gt;', $product-&gt;extraData)) . '&lt;/p&gt;'; ?&gt; &lt;/td&gt; &lt;?php if($this-&gt;invoice_type == 'order' &amp;&amp; $files) { ?&gt; &lt;td class="hikashop_order_item_files_value"&gt; &lt;?php if(!empty($product-&gt;files) &amp;&amp; ($this-&gt;order_status_download_ok &#124;&#124; bccomp($product-&gt;order_product_price, 0, 5) == 0)) { $html = array(); foreach($product-&gt;files as $file) { $fileHtml = ''; if(!empty($this-&gt;download_time_limit) &amp;&amp; ($this-&gt;download_time_limit + (!empty($this-&gt;order-&gt;order_invoice_created) ? $this-&gt;order-&gt;order_invoice_created : $this-&gt;order-&gt;order_created)) &lt; time()) { $fileHtml = JText::_('TOO_LATE_NO_DOWNLOAD'); } if(!empty($file-&gt;file_limit) &amp;&amp; (int)$file-&gt;file_limit != 0) { $download_number_limit = $file-&gt;file_limit; if($download_number_limit &lt; 0) $download_number_limit = 0; } else { $download_number_limit = $this-&gt;download_number_limit; } if(!empty($download_number_limit) &amp;&amp; $download_number_limit&lt;=$file-&gt;download_number) { $fileHtml = JText::_('MAX_REACHED_NO_DOWNLOAD'); } if(empty($fileHtml)) { if(empty($file-&gt;file_name)) { $file-&gt;file_name = JText::_('DOWNLOAD_NOW'); } $file_pos = ''; if(!empty($file-&gt;file_pos)) { $file_pos = '&amp;file_pos='.$file-&gt;file_pos; } $fileHtml = '&lt;a href="'.hikashop_completeLink('order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$this-&gt;order-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$file-&gt;file_name.'&lt;/a&gt;'; $order_created = (empty($this-&gt;order-&gt;order_invoice_created) ? $this-&gt;order-&gt;order_created : $this-&gt;order-&gt;order_invoice_created); if(!empty($this-&gt;download_time_limit)) $fileHtml .= ' / ' . JText::sprintf('UNTIL_THE_DATE', hikashop_getDate($order_created + $this-&gt;download_time_limit)); if(!empty($download_number_limit)) $fileHtml .= ' / '. JText::sprintf('X_DOWNLOADS_LEFT', $download_number_limit - $file-&gt;download_number); } else { if(empty($file-&gt;file_name)) { $file-&gt;file_name = JText::_('EMPTY_FILENAME'); } $fileHtml = $file-&gt;file_name . ' ' . $fileHtml; } $html[] = $fileHtml; } echo implode('&lt;br/&gt;', $html); } ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_order_item_price_value"&gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price + $product-&gt;order_product_tax, $this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;td class="hikashop_order_item_quantity_value"&gt;&lt;?php echo $product-&gt;order_product_quantity; ?&gt;&lt;/td&gt; &lt;td class="hikashop_order_item_total_value"&gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_total_price,$this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_total_price_no_vat,$this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php $k = 1 - $k; } ?&gt; &lt;tr&gt; &lt;td style="border-top:2px solid #B8B8B8;" colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_title" style="border-top:2px solid #B8B8B8;" class="key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'SUBTOTAL' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_value" style="border-top:2px solid #B8B8B8;"&gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal,$this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php $taxes = round($this-&gt;order-&gt;order_subtotal - $this-&gt;order-&gt;order_subtotal_no_vat + $this-&gt;order-&gt;order_shipping_tax + $this-&gt;order-&gt;order_payment_tax - $this-&gt;order-&gt;order_discount_tax,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;order-&gt;order_currency_id, true)); if(!empty($this-&gt;order-&gt;order_discount_code)) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_title key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'HIKASHOP_COUPON' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_value"&gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_discount_price*-1.0,$this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format(($this-&gt;order-&gt;order_discount_price-@$this-&gt;order-&gt;order_discount_tax)*-1.0,$this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;order-&gt;order_shipping_method)) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_title key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'SHIPPING' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_value"&gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price,$this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price-@$this-&gt;order-&gt;order_shipping_tax,$this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;order-&gt;additional)) { $exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', '')); foreach($this-&gt;order-&gt;additional as $additional) { if(in_array($additional-&gt;order_product_name, $exclude_additionnal)) continue; ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_additionall_title key"&gt; &lt;label&gt;&lt;?php echo JText::_($additional-&gt;order_product_name); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_additional_value"&gt;&lt;?php if(!empty($additional-&gt;order_product_price)) { $additional-&gt;order_product_price = (float)$additional-&gt;order_product_price; } if(!empty($additional-&gt;order_product_price) &#124;&#124; empty($additional-&gt;order_product_options)) { if($config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($additional-&gt;order_product_price + @$additional-&gt;order_product_tax, $this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($additional-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } } else { echo $additional-&gt;order_product_options; } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } } if(!empty($this-&gt;order-&gt;order_payment_method) &amp;&amp; $this-&gt;order-&gt;order_payment_price != 0) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_payment_title key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_payment_value" &gt;&lt;?php if($this-&gt;config-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_payment_price, $this-&gt;order-&gt;order_currency_id); } else { echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_payment_price - @$this-&gt;order-&gt;order_payment_tax, $this-&gt;order-&gt;order_currency_id); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } if($taxes != 0){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; !empty($this-&gt;order-&gt;order_tax_info)) { foreach($this-&gt;order-&gt;order_tax_info as $tax) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_title key"&gt; &lt;label&gt;&lt;?php echo $tax-&gt;tax_namekey; ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt;&lt;?php echo $this-&gt;currencyHelper-&gt;format($tax-&gt;tax_amount, $this-&gt;order-&gt;order_currency_id); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } } else { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_title key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'VAT' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt;&lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;order-&gt;order_currency_id); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_title key"&gt; &lt;label&gt;&lt;?php echo JText::_( 'HIKASHOP_TOTAL' ); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_value" &gt;&lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price, $this-&gt;order-&gt;order_currency_id); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;?php if(!empty($this-&gt;shipping)) { echo JText::_('HIKASHOP_SHIPPING_METHOD') . ' : '; if(is_string($this-&gt;order-&gt;order_shipping_method)) { if(strpos($this-&gt;order-&gt;order_shipping_id, '-') !== false) echo $this-&gt;shippingClass-&gt;getShippingName($this-&gt;order-&gt;order_shipping_method, $this-&gt;order-&gt;order_shipping_id); else echo $this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order_shipping_method, $this-&gt;order-&gt;order_shipping_id); } else echo implode(', ', $this-&gt;order-&gt;order_shipping_method); echo '&lt;br/&gt;'; } ?&gt; &lt;?php if(!empty($this-&gt;payment)) { echo JText::_('HIKASHOP_PAYMENT_METHOD') . ' : ' . $this-&gt;payment-&gt;getName($this-&gt;order-&gt;order_payment_method, $this-&gt;order-&gt;order_payment_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;?php JPluginHelper::importPlugin('hikashop'); JPluginHelper::importPlugin('hikashopshipping'); JPluginHelper::importPlugin('hikashoppayment'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onAfterOrderProductsListingDisplay', array(&amp;$this-&gt;order, 'order_front_show')); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields['order'])) { ?&gt; &lt;tr&gt; &lt;td&gt; &lt;fieldset class="hikashop_order_custom_fields_fieldset"&gt; &lt;legend&gt;&lt;?php echo JText::_('ADDITIONAL_INFORMATION'); ?&gt;&lt;/legend&gt; &lt;table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%"&gt; &lt;?php foreach($this-&gt;fields['order'] as $fieldName =&gt; $oneExtraField) { if(!@$oneExtraField-&gt;field_frontcomp &#124;&#124; empty($this-&gt;order-&gt;$fieldName)) continue; ?&gt; &lt;tr class="hikashop_order_custom_field_&lt;?php echo $fieldName;?&gt;_line"&gt; &lt;td class="key"&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField); ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;order-&gt;$fieldName); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;?php if(hikashop_level(2) &amp;&amp; !empty($this-&gt;order-&gt;entries)) { ?&gt; &lt;tr&gt; &lt;td&gt; &lt;fieldset class="htmlfieldset_entries"&gt; &lt;legend&gt;&lt;?php echo JText::_('HIKASHOP_ENTRIES'); ?&gt;&lt;/legend&gt; &lt;table class="hikashop_entries_table adminlist" cellpadding="1" width="100%"&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 if(!empty($this-&gt;fields['entry'])) { foreach($this-&gt;fields['entry'] as $field) { echo '&lt;th class="title"&gt;' . $this-&gt;fieldsClass-&gt;trans($field-&gt;field_realname) . '&lt;/th&gt;'; } } ?&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $k = 0; $i = 1; foreach($this-&gt;order-&gt;entries as $entry) { ?&gt; &lt;tr class="row&lt;?php echo $k;?&gt;"&gt; &lt;td&gt;&lt;?php echo $i; ?&gt;&lt;/td&gt; &lt;?php if(!empty($this-&gt;fields['entry'])) { foreach($this-&gt;fields['entry'] as $field) { $namekey = $field-&gt;field_namekey; if(!empty($entry-&gt;$namekey)) echo '&lt;td&gt;'.$this-&gt;fieldsClass-&gt;show($field, $entry-&gt;$namekey).'&lt;/td&gt;'; } } ?&gt; &lt;/tr&gt; &lt;?php $k = 1 - $k; $i++; } ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/table&gt; &lt;input type="hidden" name="cid" value="&lt;?php echo (int)$this-&gt;element-&gt;order_id; ?&gt;" /&gt; &lt;input type="hidden" name="option" value="&lt;?php echo HIKASHOP_COMPONENT; ?&gt;" /&gt; &lt;input type="hidden" name="task" value="" /&gt; &lt;input type="hidden" name="ctrl" value="&lt;?php echo JRequest::getCmd('ctrl'); ?&gt;" /&gt; &lt;input type="hidden" name="cancel_redirect" value="&lt;?php echo JRequest::getString('cancel_redirect'); ?&gt;" /&gt; &lt;input type="hidden" name="cancel_url" value="&lt;?php echo JRequest::getString('cancel_url'); ?&gt;" /&gt; &lt;?php echo JHTML::_( 'form.token' ); ?&gt; &lt;/form&gt; &lt;/div&gt; &lt;div style="page-break-after:always"&gt;&lt;/div&gt;

and that should fix the issue.

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

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

- **[almika](/forum/user/15732-almika "View almika's Profile")**
- [![almika's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15732.png)](/forum/user/15732-almika "View almika's Profile") Topic Author
- [ Offline](/forum/user/15732-almika)

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

10 years 8 months ago [\#230746](#230746) by [almika](/forum/user/15732-almika "View almika's Profile")  Replied by *[almika](/forum/user/15732-almika "View almika's Profile")* on topic *[Cpanel order don't use canonical url and breaks it](/forum/4-how-to/882473-cpanel-order-dont-use-canonical-url-and-breaks-it#230746 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6  Hi,  My setting for canonical url is &quot;Use canonical URL and generate it if missing&quot;. I checked all canonical url for products. All was fine. But then I see - some url were broken. Just now I know that is happened after a user see his order in cpanel. Products' show in cpanel orders don't use canonical url's from product table and rewrite it. If I set &quot;Use canonical URL&quot;, Cpanel/order/show don't rewrite it, but no use it still.  Any advices, please. Thank you.")*

Thank you very much, **nicolas**!

Excellent work!

Merci beaucoup, mon ami.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4MjQ3My1jcGFuZWwtb3JkZXItZG9uLXQtdXNlLWNhbm9uaWNhbC11cmwtYW5kLWJyZWFrcy1pdD90bXBsPW1hcmtkb3du) 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.055 seconds

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