Page 1 of 1

Variant data in Selection detail

Posted: 22 Feb 2018, 14:26
by michal.fehér
Hi. Is there a way how to configure system to display variant data when user is inside of Selection product detail?

For example:
I have a selection product called "Colorful T-shirt" with 1 variant attribute "color" with 3 values red, black, green.
When user choose in dropdown black color, I want all the information to be updated according to that variant product (the same way how price is updated), for example if there is different description, I want to display that instead of description of selection product.

Other thing that would help is generating unique URL when user choose specific variant, so if user sends the link, it would open that specific variant instead of selection product with all variant attributes empty.

Is this something I need to customise or is this behaviour provided out of the box?

Thanks.

Re: Variant data in Selection detail

Posted: 23 Feb 2018, 00:11
by aimeos
Showing the data of the article instead of the selection product works for prices, attributes and properties at the moment. You can extend it in the same way for the other information as it's only hidden by CSS and shown with a line of JS code if the variant attributes changes. Would be great if you would create a pull request with your changes to get that into the Aimeos core as well so it will be maintained in the future for you.

Regarding the URL, you have to change the URL via Javascript if the variant attributes changes and preselect them based on the URL parameter.

Re: Variant data in Selection detail

Posted: 29 Sep 2022, 07:57
by heural
Hi!

I have the same idea. I work on a product-feed for e-commerce tools/ads. To expose a selection product in the feed is´nt beneficial. So it would be nice if we can call the variant products directly at the details page of a selection product.

Exists these behauviour meanwhile?

Best regards
Ralf

Re: Variant data in Selection detail

Posted: 03 Oct 2022, 07:02
by aimeos
You can link to a variant article directly by using it's ID in the URL but that makes only sense if the articles contains all data that should be displayed itself because in that case, it doesn't inherit data from the selection product.

Re: Variant data in Selection detail

Posted: 04 Oct 2022, 06:54
by heural
Yes thats possible, but you have to maintain all articles. The idea of the selection product is to avoid this.
I cant explain this our product management, that they have a lot more work to do :lol:

Re: Variant data in Selection detail

Posted: 05 Oct 2022, 11:22
by aimeos
Then, only the JS solution with an URL fragment is left.