How to set default selected options in magento product detail page -
i have requirement in getting product id external application product super_attribute options color,size. getting , can add cart option.
but here actual requirement select requested options customer , redirect them product detail page in magento here can still enter optional text print. need set requested options in detail page , redirect them product detail page instead of adding cart. enter more details , addtocart manually.
how can set selected options while loading itself.
please me.
thankfully built in themes. need know id of both attributes , values simple product included in configurable product. i've seen work configurable types might limitation.
- for each attribute make key=value pair
- combine attributes query string, eg. "123=345&678=890"
- append string hash fragment (not query).
example official demo, note first option needs selected second work has 2 key/value pairs.
Comments
Post a Comment