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

#   Product code display only in shopping cart

##

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 7 months ago [\#152242](#152242) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#152242 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")* was created by *[bordia](/forum/user/31290-bordia "View bordia's Profile")*

Hi,

is it possible to have the product code only display in the shopping cart?

best regards...

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#152269](#152269) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#152269 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

Yes you have to set the options for the product code to "no" and edit the view "product / cart" to remove the if condition around the display of the php code.

[ hikashop.com/support/support/documentati...ize-the-display.html](https://hikashop.com/support/support/documentation/153-customize-the-display.html)

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 7 months ago [\#153094](#153094) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153094 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Do you mean that I should remove line 278?

&lt;?php if ($this-&gt;config-&gt;get ('show_code')) { ?&gt;
&lt;span class="hikashop_product_code_cart""&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;
&lt;?php } ?&gt;

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 7 months ago [\#153102](#153102) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153102 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

The solution will be to change that lines : Code:

&lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span class="hikashop_product_code_cart"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt;

By : Code:

&lt;span class="hikashop_product_code_cart"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 7 months ago [\#153230](#153230) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153230 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

I have the line as you described changed. It was still the product code does not appear in your cart as well as on the invoice and purchase order.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 7 months ago [\#153258](#153258) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153258 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

1. Can you check that you edited the "cart" file of the "product" view of the GOOD front-end template that you are currently using through "Hikashop-&gt;Display-&gt;Views" ?
2. Also, can you check that you don't have any CSS code which is hiding your product code ?

Thanks.

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 7 months ago [\#153514](#153514) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153514 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

yes I have the php file changed from frontend template what I use. The CSS code is not set to default but to old. But there was nothing changed and since then has been the template of this page over extensions is uploaded.

Best regards

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#153517](#153517) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153517 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

The code given should display the product code in the cart module.
To have the product code too in the invoice you have to edit the views "order / show" (frontend template), "order / invoice" (backend template), etc.

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 7 months ago [\#153674](#153674) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153674 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

I have the display of the product code in the configuration reactivated. So that is the product code shown on the invoice.

My question is, how do I get the product code does not appear in the Product category.
In the picture marked in red.

Best regards
[ ![h3a330ef.jpg](/forum/attachment/16918) ](/forum/attachment/16918 "h3a330ef.jpg")

- [ ![h3a330ef.jpg](/forum/attachment/16918) ](/forum/attachment/16918 "h3a330ef.jpg") [ ](/forum/attachment/16918?download=1 "h3a330ef.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#153807](#153807) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#153807 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Hi,

You have to edit the view "product / listing_img_title" and remove the product code part. Code:

&lt;!-- PRODUCT CODE --&gt; &lt;span class='hikashop_product_code_list'&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt; &lt;?php } echo $this-&gt;row-&gt;product_code; if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;/a&gt; &lt;?php } ?&gt; &lt;?php } ?&gt; &lt;/span&gt; &lt;!-- EO PRODUCT CODE --&gt;

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

12 years 6 months ago [\#154576](#154576) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Product code display only in shopping cart](/forum/27-checkout/867445-product-code-display-only-in-shopping-cart#154576 "Hi,  is it possible to have the product code only display in the shopping cart?  best regards...")*

Thank you very much! The way I want it.
![B)](/media/kunena/emoticons/9.png "B)")

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

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