• Resolved Jason McKenzie

    (@jasonmckenzie)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pagecode

    (@pagecode)

    Hi do you still need this, I added some custom triggers, visit

    Settings -> Total Price settings and you can add some custom triggers there, in your case add

    #plus_qty, #minus_qty to the last box ??

    Plugin Author Pagecode

    (@pagecode)

    I’ll mark as closed thnak you for review

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Trigger for Price Update’ is closed to new replies.