Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Set Default Attributes options based on Cookies


Recommended Posts

Here is my Situation

I have Several products Say Shirts, which have 3 attributes

Gender--(options)> Male/Femal

Size----(options)> S/L/XL

Color----(options)> Red/Green/Blue


I have another page where I get the users General Data thoes are Gender,Size and Color and store them in cookies


I want if the cookies are set then whatever shirt is choosed the shirt's attributes options should be set default based on it.


Say a user set Gender=Male, Size=XL

so If a shirt is viewed the attributes default value would be Gender->Male(defalut)


Color=None selected



If you don't get the problem just tell me I will explain.




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...