Product code

  • Posts: 152
  • Thank you received: 11
12 years 1 month ago #72022

I have tried to disable showing the product code (configuration > show >) 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 ;)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #72066

Hi,

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

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

<?php if ($this->config->get('show_code')) { ?>
Don't forget to remove the "}" ending the condition.

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
12 years 1 month ago #72069

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 > Display > 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 ;)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #72077

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:

<?php $this->config->set('show_code',1); ?>
Before:
<?php if ($this->config->get('show_code')) { ?>

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 11
12 years 1 month ago #72079

I will try .. thanks a lot :)


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum