Product name doubles up when variant is selected

  • Posts: 20
  • Thank you received: 0
7 years 3 months ago #286516

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

Hi There,
Something strange started happening to our products name. I think it was after the latest stable update but I can't be sure as I just noticed it.
Products with variants, when I select a variant from the dropdown it doubles up the product name instead of showing the variant size.
I removed my template overrides to ensure it wasn't an issue with the overrides. But even when it is not using the overrides it still duplicates.

Any idea how to resolve this?
The goal is to display the product name and then the the variant is select it show the variant title/name.

Thanks

Last edit: 7 years 3 months ago by eggdesign.

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

  • Posts: 83778
  • Thank you received: 13564
  • MODERATOR
7 years 3 months ago #286518

Hi,

We would need some screenshot of how a product and one of its variants is configured on your website and a link to the product page in order to properly understand the situation.

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

  • Posts: 20
  • Thank you received: 0
7 years 3 months ago #286562

Thanks Nicolas,
I will try to get you an staging link.

Edit:
I see the variant uses the same name as the parent in our case so it is easy to locate the products and variants in a spreadsheet.

So my question is, is it possible/how could I display the variant selected value instead of the variant title.

For example:
Main Product: Moving Boxes
Variant name: Moving Boxes
Variant selection: size 2
Variant selection: size 3
Variant selection: size 5

At the moment, when a variant is selected from the dropdown, it displays the title
Moving Boxes: Moving Boxes

How could I show the selection rather than the variant title? so it would look like this
Moving Boxes: size 3

Please note I don't want to rename my variants, I want to display/append the selected value instead of the variant name.

thanks

Last edit: 7 years 3 months ago by eggdesign.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 3 months ago #286582

Hello,

I think you have to edit your Characteristic configuration to have something like this :



Then, take note that you have to keep the Variant name empty (like on screenshot) or just have "product size" and have just as value size 1, size 2, etc...



So, I think you have understand that you have many different way to proceed to have what you need, on my side I was able to have this a result :



Hope this will fit your needs.
Regards

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

  • Posts: 20
  • Thank you received: 0
7 years 3 months ago #286747

Thanks for the response Philip, I was hopping there would be a way to not have to change every variant name.
Is there something I could change in the template override to display the variant value instead of the name?

Thanks again

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

  • Posts: 83778
  • Thank you received: 13564
  • MODERATOR
7 years 3 months ago #286776

Hi,

Well, you would have to edit the "show" file of the view "product".
There, you would have to change the line:
echo $variant->product_name;
by some custom code to recalculate the variant name dynamically from the characteristics values, etc.
It will require a bit of development but it's totally doable.

And if you want to easily remove all the names of the variants, you can easily do it with a mass action with a few clicks:
www.hikashop.com/support/documentation/167-massaction-form.html

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

  • Posts: 20
  • Thank you received: 0
7 years 3 months ago #286898

Thanks for pointing me in the right direction Nicolas.
Done that, all work fine now.
Cheers

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

Time to create page: 0.066 seconds
Powered by Kunena Forum