Home / Admin / On Add to Cart Event in EDD
Duplicate Snippet

Embed Snippet on Your Site

On Add to Cart Event in EDD

Adds the cancellation event to stop the Browse Abandonment campaign for your push subscribers.
This also helps initialize the Cart Abandonment Campaign for push subscribers who abandon items in the cart.

Code Preview
add_action( 'wp_enqueue_scripts', 'pe_edd_cart_script' );
function pe_edd_cart_script() {
  $browse_campaign_name = 'Enter browse abandonment campaign name';
  $cart_campaign_name = 'Enter cart abandonment campaign name';
  do_action('pe_wpcode_edd_cart_script', $browse_campaign_name, $cart_campaign_name);


Add a Comment