Is woocommerce Updated Cart triggers still working? Need to run JS after cart has been updated
Question
I placed a console log on this, seems to be not used anymore?
/**
* Update the .cart_totals div with a string of html.
*
* @param {String} html_str The HTML string with which to replace the div.
*/
var update_cart_totals_div = function( html_str ) {
$( '.cart_totals' ).replaceWith( html_str );
$( document.body ).trigger( 'updated_cart_totals' );
console.log('cart total update')
};
0
woocommerce, wordpress.org
3 years
2020-07-14T00:10:28-05:00
2020-07-14T00:10:28-05:00 0 Answers
78 views
0
Leave an answer