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

#   Product code

##

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 2 weeks ago [\#72022](#72022) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  *[Product code](/forum/2-general-talk-about-hikashop/72022-product-code#72022 "I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works. But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?  Its just have to been on the mails for a secure and a help if something is wrong with the order.  The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.")* was created by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")*

I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works.
But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?

Its just have to been on the mails for a secure and a help if something is wrong with the order.

The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

14 years 2 weeks ago [\#72066](#72066) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Product code](/forum/2-general-talk-about-hikashop/72022-product-code#72066 "I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works. But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?  Its just have to been on the mails for a secure and a help if something is wrong with the order.  The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.")*

Hi,

To display the product code only on the invoice, disable the option.

Then you can edit the invoice in HikaShop &gt; Display &gt; Views, edit the view "order / invoice" and remove the following condition: Code:

&lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt;

Don't forget to remove the "}" ending the condition.

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 2 weeks ago [\#72069](#72069) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Re: Product code](/forum/2-general-talk-about-hikashop/72022-product-code#72069 "I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works. But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?  Its just have to been on the mails for a secure and a help if something is wrong with the order.  The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.")*

I dont understand this, as i read the answer you meen i have to remove the code in the invoice, is it not in the product/category you meen?

Or is it possible to overrule the "no" in configuration in the mailconfiguration?

> Xavier wrote:
> Then you can edit the invoice in HikaShop &gt; Display &gt; Views, edit the view "order / invoice" and remove the following condition:

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

14 years 2 weeks ago [\#72077](#72077) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Product code](/forum/2-general-talk-about-hikashop/72022-product-code#72077 "I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works. But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?  Its just have to been on the mails for a secure and a help if something is wrong with the order.  The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.")*

If you set the option to not display the product_code, and you remove the check in the invoice, so the product_code will be displayed in the invoice.
You can too override the rule, try to add the code: Code:

&lt;?php $this-&gt;config-&gt;set('show_code',1); ?&gt;

Before: Code:

&lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt;

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

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

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

14 years 2 weeks ago [\#72079](#72079) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Re: Product code](/forum/2-general-talk-about-hikashop/72022-product-code#72079 "I have tried to disable showing the product code (configuration &gt; show &gt;) on the site, and it works. But it also been disabled from the invoice. Is it possible not to let it show on the site but on the invoice that been sent by mail?  Its just have to been on the mails for a secure and a help if something is wrong with the order.  The reason to remove it on the site is we have a lot of fake codes for mainproducts, and the reel on the variants. It's the fakes that are showed on the site.")*

I will try .. thanks a lot ![:)](/media/kunena/emoticons/3.png ":)")

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

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

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