thirtybees / niara

Niara, thirty bees default theme since v1.1.0.
https://thirtybees.com
9 stars 26 forks source link

Eliminate unavailable combinations from product page #61

Open marktnz1 opened 1 year ago

marktnz1 commented 1 year ago

Users trying to choose combinations on the product page currently get presented with all created combinations for that product. They should only be shown those combinations that are available for that product and not receive a "This combination does not exist for this product. Please select another combination" warning.

getdatakick commented 1 year ago

Combination selection is theme responsibility, moving this issue to niara

getdatakick commented 1 year ago

This is a tricky on, and requires a very good UX design.

The problem is that there can be multiple attribute input selectors. To ensure that only valid combination can be selected, page javascript would have to filter available attribute options every time some other attribute selector changes. But that can have negative impact on user experience.

Consider this interaction: 1) User starts by selecting blue color 2) after color selection, size attribute options was filtered, and option 'XL' was removed from list (because combination Blue,XL does not exists). 3) unfortunately, user needs XL, and they don't really care that much about the color. Howerver, because of the color selection, they are not able to choose XL size, even if it exists in other combination 4) they first need to got back to color, and change it something else, and hope that XL size will be available for that

That's not very user friendly.

We would probably have to allow some on-page faceted combination search.

marktnz1 commented 1 year ago

Yes true, that would be both perfect and difficult... plus all the warehousing options if ASM is selected or not and optionally display available quantities of each combo.

There are available modules on "the market" that claim to deal with this but I do think this should be core function.

marktnz1 commented 1 year ago

It could be argued that this is not an enhancement, its a bug fix.

Preferences/ Products has the option to do exactly this task, however it doesnt actually work properly.

Screenshot from 2022-12-09 13-00-36

getdatakick commented 1 year ago

Bug is when something does not work as intended. This was designed this way, and works properly. It can be improved to make a better user experience, hence the enhancement.

marktnz1 commented 1 year ago

Screenshot from 2022-12-10 16-09-56

The feature specifically says "Display unavailable product attributes on the product page" Ive set it to NO. This means literally "DO NOT display unavailable product attributes on the product page". If this was designed to do something else, I suggest you clarify on the site what the function is, because to me there's no argument at all, the function is NOT working as described since unavailable attributes are being displayed despite me switching that OFF.

getdatakick commented 1 year ago

This option works on attributes, not on combinations, and is based on available quantity.

With this option disabled: For any attribute value, if all combination using this attribute value are not available (0 quantity on stock), then this attribute will be hidden. This is kind of pre-filtering.

With this option enable: all attribute values (used by product) will be always displayed

This works as designed.

This is just a static optimization to limit the amount of combinations that user can choose from. But they still can choose invalid combination.