Skip to main content

Variants in cart but not append to product name

More
15 years 4 months ago #15664 by JIK
Hi Nicolas,

Is it possible to have the variants shown in the cart but NOT have them append to the product name on the product page?

I have set the "Append characteristics value to product name" to no, but I still need them to appear in the cart and in emails.

(Using Business version)

cheers
J

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

More
15 years 4 months ago #15665 by hdracing
The solution to this problem was provided in this topic: www.hikashop.com/en/support/forum/3-bug-...applied-in-cart.html

Be sure to read the whole thing because the code changed a bit from the version initially discussed in that topic and an update was provided further down.

Regards,
Ed

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

More
15 years 4 months ago #15667 by JIK
Thanks Ed - I had read just about every thread to do with variants EXCEPT that one! Will give the fix a go. Ta.

Was hoping that there would be a customisation to one of the display views though as I hate hacking the core code files and losing changes after upgrades.

Nicolas - before I make the change to the Hikashop core, can you confirm that there is no other way to adjust this?

Ed/Nicolas, your help is appreciated.

cheers!

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

More
15 years 4 months ago #15669 by nicolas
Instead of :
echo $this->element->product_name;

and:
echo $variant->product_name;

in the file show of the view product (that you can edit via the menu Display->Views), you could use:
echo $this->element->main->product_name;

and activate the "Append characteristics value to product name" option of the config so that the product name with the characteristics is displayed everywhere except the product page.

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

More
15 years 4 months ago #15692 by JIK
Excellent! Works perfectly. Thanks.

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

Time to create page: 0.177 seconds
Powered by Kunena Forum