Variants that doesn't exist appear as free

  • Posts: 129
  • Thank you received: 2
9 years 5 days ago #249701

-- url of the page with the problem -- : www.tiendamat.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5

Hi.

I'm creating a new product with 2 variants: Color and lenght.

Not every lenght has all the colours. The problem is that I only create the variants that I need, but hikashop shows every color with every lenght. The color and lenght that doesn't exist, it appears as a free product.

Am I missing something in the general configuration?

Thank you.

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
9 years 5 days ago #249729

Hi,

When you create a product with variants with values needed for at least one variant, the value has to be in the dropdown, and thus, you will need it in the dropdown leading to the possibility of selecting a variant which doesn't exist.
In that case, the system won't allow the customer to purchase the product, and it will use the information from the main product on the product page. So that means that you didn't set any price in your main product.

An alternative is to use the "list" or "table" option of the "characteristics selection method" setting of the HikaShop configuration.
In that case, you won't be able to select a variant that doesn't exist.

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

  • Posts: 129
  • Thank you received: 2
9 years 4 days ago #249784

Thank you Nicolas. This makes it a bit messy. Do you have any plans to change that in v. 3.0?

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
9 years 4 days ago #249808

Hi,

The table or list display don't fit with your needs ?

Having the characteristic dropdowns or radios refresh based on what is selected in the other ones is quite tricky to do to be able to handle all the cases properly.
We won't have something for that in HikaShop 3.0. We would like to do something about that though, but the list and table displays are already answers to that problematic that we added in the last few years.

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

  • Posts: 129
  • Thank you received: 2
9 years 4 days ago #249879

The table is a completely mess and looks really bad. Probably I'd have to work on css to fix it, but when, like in my case, have like 8 colour and 8 mesures it should create a too big table. The list is ok, but in my case it would create a very big list of products, so for the costumer, be looking for a determinate lenght and colour is difficult since also it appears without any order.

I saw that for Hika 3, you did something with ajax that when you added a product to the basket, it would automatically update, and thought it could be the same with this. But thank you anyway!

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

  • Posts: 84313
  • Thank you received: 13705
  • MODERATOR
9 years 3 days ago #249893

Hi,

The variants list is ordered based on the order you have the characteristics in the product and the order of the values of each characteristic. If you want to change the order of the variants in that list, you'll want to change the order of the characteristics or values so that it is consistent.

We indeed added ajax capabilities to the add to cart system.
The issue with the refresh of the dropdown characteristics is that if we disable some values of the second dropdown when you select something in the first one and vice versa, then, there will be some variants that are available that you won't be able to select in some cases because the values have been disabled when you started selecting variants.
Suppose that you have two characteristics color and size with two values each (red and blue, and XL and L). By default red and XL are selected and there are only two variants: red/XL and blue/L
When you click on the size dropdown, it should display only the possible values for red (so only XL). And when you click on the color dropdown, it should display only the possible values for XL (so only red).
Thus in that configuration, it becomes impossible to select the other variant even though it is available and the dropdowns are dynamic. So it's not a problem of ajax, but of logic. Solving that case would require adding "please select" choices to the dropdowns where all the values would display in the other dropdowns, but then it changes the paradigm of HikaShop where there is a default variant selected and its data displayed by default on the product page. Which would lead to having to modify the characteristics management in the backend, the product page layouts, the CSV import, and that would also affect the way merchants were managing their HikaShop.
So just that would have huge implications. We're still trying to think of a solution that would work fine with the current implementation and thus not require changing all of that.

The following user(s) said Thank You: vanway

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

Time to create page: 0.058 seconds
Powered by Kunena Forum