Variant data in Selection detail

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Variant data in Selection detail

Post by michal.fehér » 22 Feb 2018, 14:26

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.

User avatar
aimeos
Administrator
Posts: 8196
Joined: 01 Jan 1970, 00:00

Re: Variant data in Selection detail

Post by aimeos » 23 Feb 2018, 00:11

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

heural
Posts: 62
Joined: 09 Jun 2022, 07:55

Re: Variant data in Selection detail

Post by heural » 29 Sep 2022, 07:57

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

User avatar
aimeos
Administrator
Posts: 8196
Joined: 01 Jan 1970, 00:00

Re: Variant data in Selection detail

Post by aimeos » 03 Oct 2022, 07:02

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

heural
Posts: 62
Joined: 09 Jun 2022, 07:55

Re: Variant data in Selection detail

Post by heural » 04 Oct 2022, 06:54

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:

User avatar
aimeos
Administrator
Posts: 8196
Joined: 01 Jan 1970, 00:00

Re: Variant data in Selection detail

Post by aimeos » 05 Oct 2022, 11:22

Then, only the JS solution with an URL fragment is left.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply