Developer forum

Forum » Templates » Multiple set of e-com variants and updated info

Multiple set of e-com variants and updated info

Per Søgaard
Reply
We have set up multiple sets of variantoptions in ecom with separate dropdowns for each set on the product page (one for size, one for colour etc.).
How can we make the product variant info update (reload with the right info) when one of the dropdown variants is selected.

Replies

 
Per Søgaard
Reply
 Moved to Ecommerce because of lack of feedback
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
Hi per,

I think you can just issue a new GET request for the same page with the selected variant options in the query string. This would reload the page and display the correct info of that variant. IIRC, you need to pass a query string parameter called VariantId with a dot separated path of options (e.g. VO2.VO7)

Hope this helps,

Imar
 
Per Søgaard
Reply
Is this purely frontend template or?
Do i need a javascripts or?
Thought this was "out of the box and easy to use" dynamicweb functionality ;-)
 
Regin Madsen
Reply
Hi Per,

Youre welcome to give me a call (40947686) or send a mail (rjm@e-kompagniet.dk) Iwe done what youre looking for on a number of shops.

If you do not use Imars approach You need to use a bit of JS in order to make the dropdownboxes include the correct variants.

/Regin Jæger Madsen



 

You must be logged in to post in the forum