Official MailerLite Sign Up Forms, by MailerGroup
This plugin adds extra hooks
add_action(‘woocommerce_add_to_cart’, ‘woo_ml_proceed_to_checkout’);
add_action(‘woocommerce_cart_item_removed’, ‘woo_ml_proceed_to_checkout’);
These hooks work slow (0.5 seconds per cart item)!
Add provided code to functions.php and update Settings.
Calculation option “Use prices modified by other plugins” must be ON.
System option “Suppress other pricing plugins in frontend” must be OFF.
1 2 3 4 |
add_filter( 'wdp_exclude_hooks_when_add_to_cart_calculated_items', function($hooks){ $hooks[] = 'woocommerce_add_to_cart'; return $hooks; }); |