Display product code

  • Posts: 54
  • Thank you received: 0
7 years 11 months ago #271414

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0.13
-- Browser(s) name and version -- : firefox 53

Hi.
Is it possible to set product code display only on product page?

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

  • Posts: 83806
  • Thank you received: 13571
  • MODERATOR
7 years 11 months ago #271419

Hi,

There is no option for that. Now you can turn off the display product code option, and edit the file "show_default" via the menu Display>Views and change the line:
<?php if ($this->config->get('show_code')) { ?>
to:
<?php if (true) { ?>
to display the code on the product page regardless of that option.

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

  • Posts: 54
  • Thank you received: 0
7 years 11 months ago #271450

It works. Thank you for your help.

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

  • Posts: 54
  • Thank you received: 0
7 years 11 months ago #271509

Hi.
I have not noticed before that the code shows up on the product page, but does not appear on the order, in email, or in invoice.

Attachments:
Last edit: 7 years 11 months ago by Wrosch.

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

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 11 months ago #271511

Hello,

so you might want to activate the HikaShop setting to display the product code (everywhere) :
www.hikashop.com/support/documentation/5...html#display_product

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 54
  • Thank you received: 0
7 years 11 months ago #271547

Hi.
Sorry for the imprecise question in the beginning. I know that activation of this option displays the code everywhere. I mistakenly assumed that the display of the code "only" on the product page will automatically be transferred to the order, email and invoice.
So I would like the code not to appear in the list of products, but to display on the product page, in the order, in email and in the invoice.
Can you help me with that?

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

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 11 months ago #271548

Hello,

In such case, it would be easier to activate the setting and override the product listing to not display the code there.
Otherwise, you will have to override a lot of content (views, emails) to display the code just there.

www.hikashop.com/support/documentation/1...-display.html#layout

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 54
  • Thank you received: 0
7 years 11 months ago #271589

Hi.
Ok, thanks for the tip, it works with code:

.hikashop_product_code_list { display: none;}
in frontend_custom.css
Now I see what it was simple :woohoo:

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

Time to create page: 0.075 seconds
Powered by Kunena Forum