Variants in cart but not append to product name

  • Posts: 209
  • Thank you received: 18
13 years 6 months ago #15664

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.

  • Posts: 242
  • Thank you received: 0
13 years 6 months ago #15665

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.

  • Posts: 209
  • Thank you received: 18
13 years 6 months ago #15667

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.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15669

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.

  • Posts: 209
  • Thank you received: 18
13 years 6 months ago #15692

Excellent! Works perfectly. Thanks.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum