Select product attribute conditionally
-
Hello,
I keep my issue short and straightforward.
I am looking for a solution to select a product attribute before loading the product page. Currently, I am using URL parameters to pass data. like this :myshop.com/product/pro-a/attribute_pa_color=red
But I want another solution to select attributes without using query string params.
My scenario is to pre-select product attributes (here, just color) based on some conditions: for example, select red products by default because it’s the user’s preferred color. On the other hand, if the user’s favorite color is blue, the blue color attribute would be selected automatically for all products that might be visited.
Any solution is highly appreciated.
The topic ‘Select product attribute conditionally’ is closed to new replies.