I'm not entirely sure what you mean by 'remove and clone the modifiers' - are you creating a new small/large dropdown for each thumbnail? In that case how does it know which one to submit with the form?
It may be easier to create a new product form for each thumbnail, then use JS to hide/show the modifiers as needed.
In any case, if you want to stick with the way things are, you can take a look at themes/third_party/store/store.js
to see how the store_product_price
class is implemented (I assume you have already added the store_product_price
class to your price, although you didn't mention it). If you set $debug = 1
in your index.php
then it will load the unminified version of the javascript by default, making it easier for you to step through and see where it's getting stuck.