- Posts: 209
- Thank you received: 18
Variants in cart but not append to product name
15 years 4 months ago #15664
by JIK
Variants in cart but not append to product name was created 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
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.
15 years 4 months ago #15665
by hdracing
Replied by hdracing on topic Re: Variants in cart but not append to product name
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
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.
15 years 4 months ago #15667
by JIK
Replied by JIK on topic Re: Variants in cart but not append to product name
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!
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.
15 years 4 months ago #15669
by nicolas
Replied by nicolas on topic Re: Variants in cart but not append to product name
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.
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.
15 years 4 months ago #15692
by JIK
Replied by JIK on topic Re: Variants in cart but not append to product name
Excellent! Works perfectly. Thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds