• Resolved mrawers

    (@mrawers)


    I am using the popup maker to create an upsell overlay when a user adds and item to their cart in woocommerce. I found the add to cart button class and set that as the trigger. So far everything is working except for one thing. The original item does not get added to the cart but the overlay does trigger and pop-up.

    My pop-up overlay has two buttons (Continue Shopping, Proceed to Checkout), It also has 3 woocommerce products that can be added to the cart as an upsell.

    QUESTION: How do I get the Add to Cart button to fire the popup-maker and actually add the item to the cart in the background while the user is deciding if they want to add an upsell item to there cart as well.

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

    (@danieliser)

    @mrawers – We have a WooCommerce extension already in a usable state. If you are a bundle user you can email support and we can send you an early copy. If not you would have to wait until its released, though there is no guarantee it will be available as a sinle sale extension as we are considering pricing structure changes.

    It will include an add to cart trigger for reasons you will see below. Just figured i’d mention we have the solution already worked out & it works quite well ;).

    Ok so you can try setting your click trigger to “Do Default” browser actions, but likely due to how WC Add to cart works it likely won’t work the way you want. On single product pages WC add to cart refreshes the page to add an item to cart, the popup will appear and the page will reload.

    On archive pages they use AJAX to add items to cart, there it would work normally.

    So you will actually need multiple solutions to make it work everywhere, we have worked out those in our extension.

    Hope that helps. If your issue is resolved please take a moment to rate and review the plugin or support.

    If you still need help please message us directly at https://wppopupmaker.com/support/.

    Hi there!

    I find this very interesting.

    @mrawers i want to do exactly the same as you and decided to google it before i went ahead and tried it myself. Would you tell me how you found the class, added the two buttons and especially how you added the products to the pop up? That would help me enormously man! If you don’t wan’t to i get it also but this would be awsome!

    @danieliser Do you have an update on that woocommerce extension? any clue on the release date and if you are selling it as a single sale extension?

    Kind regards,

    Dominic

    • This reply was modified 5 years, 6 months ago by dstraathof.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Popup on Add to Cart Button Not adding the item’ is closed to new replies.