Variant data in Selection detail
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Variant data in Selection detail
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.
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
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.
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, give us a star
If you like Aimeos, give us a star
Re: Variant data in Selection detail
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
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
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, give us a star
If you like Aimeos, give us a star
Re: Variant data in Selection detail
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
I cant explain this our product management, that they have a lot more work to do
Re: Variant data in Selection detail
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, give us a star
If you like Aimeos, give us a star