Custom Trigger for Price Update
-
Great Plugin! We are using an elementor theme that has plus & minus symbols next to the qty box. Clicking the plus & minus symbols changes the qty. Unfortunately this does not trigger a change in the total price.
I dug around a little & found a few ways this type of situation could be resolved. In this particular situation adding these triggers would resolve my specific situation.
$(document).on('click','#plus_qty',function(){ calculate_price(); }); $(document).on('input','#minus_qty',function(){ calculate_price(); });
Another option would be to put the function outside of the jQuery event so it could be called by could outside your jQuery event. (Probably a really bad idea)
Assign the functions to 1 global so that they can be accessed & triggered by custom code outside the plugin. (Probably a better idea).
Thanks for the great plugin.
- The topic ‘Custom Trigger for Price Update’ is closed to new replies.