This is the only code in a layout file, which gets included in another template (so the client can include the add to cart button on any page via blocks).
What I'm after is some code that displays the parent product and allows the user to choose the date they want from all the variants/options. Is that not what my code does? Is it still displaying options rather than variants?
(In the middle of the add to cart form we have perch:productopts which cycles through the different dates. Is this cycling through options or variants?)
Here's my variant template:
Here's my add to cart form, which displays each variant
I'm assuming my "start date" variable should be available within
perch:productvalues
?Which page function are you using to display these? What arguments are you using with it?
This is the only code in a layout file, which gets included in another template (so the client can include the add to cart button on any page via blocks).
Is that not displaying the parent product rather than the variant?
What I'm after is some code that displays the parent product and allows the user to choose the date they want from all the variants/options. Is that not what my code does? Is it still displaying options rather than variants?
(In the middle of the add to cart form we have
perch:productopts
which cycles through the different dates. Is this cycling through options or variants?)