Default variant name ?

  • Posts: 152
  • Thank you received: 11
1 year 1 month ago #349543

-- url of the page with the problem -- : demo.hikashop.com/
-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 7
-- Browser(s) name and version -- : Chrome

demo.hikashop.com/index.php/en/hikashop/...with-characteristics

Shouldn't I display the default variant name ?

It's not a bug, but I think it's useful for those who visit the site

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
1 year 1 month ago #349548

Hi,

Change the line:
echo $this->element->main->product_name;
to:
echo $this->element->product_name;
in the view file product / show_default via the menu Display>Views and that's how it will display.
We actually had it like that when we first released HikaShop. However, after several feedback saying that even if the default variant is preselected, it would make more sense to not display the variant name when reaching the product page, we changed it to the way it works now.
Also, by default, with several characteristics and the dynamic charactersitic selection setting activated, no variant will be preselected by default on the product page. So in that case, it make more sense to display the main product name by default anyways.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum