Is there a native (strong and simple as a bonus) way to repeat the product prices and options (like sizes, colors, etc.) display on the same page ?
Same question shorter (but maybe there is an other way ?) : can I display both "container1" and "container2" blocks on the same page ?
I tried to echo several times the wanted blocks, but I'm experimenting js conflicts because of duplicate input ids : only the last drop-down list (of each option) is functional, others are empty…
I also tried to use both "container1" and "container2" blocks (removing the unsetCallChild calls in layout) but problem is the same : container1's option drop-down lists are populated, but not container2's lists.
Best Answer
Sadly there is no easy way :(
I ran into the same issue when I enhanced my Gifts module[1] to the ability to gift configurables, and display them as selectable items in the cart.
I had to extend the core product.js object to allow passing of a unique id (which I assign to each product as a value using php's uniqueid[2] command.
This then allowed each configurable's dropdowns to be unique and not clash.
Here is my ext-product.js
and in the templates I output the unique id for the generation of the dropdown templates.
It was not a simple task and took a few days, and is spread over a few template and layout files. If I get time this weekend, I will try and explain all I did.
[1] Gift module
[2] php uniqueid
as an example of the adjustment demo product showing multiple configurables dropdowns and add to cart
Yes, not exactly the same as you want, but the principle is the same. (I am using core blocks via layout in the cart)