The class 'store_product_price' is updated by Javascript so that when a customer selects an option with a price variant, the price on display updates to reflect the new price.
This all works brilliantly.
However. We've added a system where by all the colour options for a product are shown as images on the product page. When clicking on one of these images we have got jQuery updating the select box of colour options (as populated by Expresso:Store) to reflect the right colour. However, the price doesn't update. I've tried fiddling with the $('select').change() methods, but I can't get it work.
The jQuery we use to update the select the right option in the select box is:
$('.options select option').removeAttr('selected').filter('option[data-val="'+$(this).attr('data-title')+'"]').attr('selected','selected');
How can use code to trigger a recalculation of the price please?
Thanks!
Tom