Skip to main content

Display product code

More
9 years 3 months ago #271414 by Wrosch
Display product code was created by Wrosch
-- 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.

More
9 years 3 months ago #271419 by nicolas
Replied by nicolas on topic Display product code
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.

More
9 years 3 months ago #271450 by Wrosch
Replied by Wrosch on topic Display product code
It works. Thank you for your help.

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

More
9 years 3 months ago - 9 years 3 months ago #271509 by Wrosch
Replied by Wrosch on topic Display product code
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.
Last edit: 9 years 3 months ago by Wrosch.

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

More
9 years 3 months ago #271511 by Jerome
Replied by Jerome on topic Display product code
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.

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

More
9 years 3 months ago #271547 by Wrosch
Replied by Wrosch on topic Display product code
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.

More
9 years 3 months ago #271548 by Jerome
Replied by Jerome on topic Display product code
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.

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

More
9 years 3 months ago #271589 by Wrosch
Replied by Wrosch on topic Display product code
Hi.
Ok, thanks for the tip, it works with code:
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.275 seconds
Powered by Kunena Forum