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

    (@danieliser)

    @maasha – You can do so using the Custom Selectors, though I am not sure how it will work that way, as the default is to show the popup and prevent the default click action beyond that. So the item may not get added to cart this way.

    That said there is a JS API that you could also use, writing your own script to trigger the popup to open after item is added to cart. There is documentation for the API here https://wppopupmaker.com/docs/overview-popup-maker-javascriptjquery-api

    Hope this helps.

    Thread Starter Maasha

    (@maasha)

    Hi Daniel!

    Thank you for your reply. I only know basic html and some css. That sounds really complicated. Don’t even get me started with .php hahha omigosh noo I am staying away from that. That’s why I install plugins hahaha. I’ve been searching everywhere and can’t find a really nice add to cart popup. I bet if you put this aspect into your plugin one day it would stand out even more, especially because of the great support you already give.

    Plugin Author Daniel Iser

    (@danieliser)

    Can you tell me more about what you are wanting it to do? We have already used it for add to cart options on our own site in the past. Click buy now, the popup shows asking how many licenses etc.

    I have plans to build several woocommerce extensions in the future already so this may fit into one of those or a new idea can be added.

    Thread Starter Maasha

    (@maasha)

    But how do I get it to popup with the buy now button? The button is already set up within woo commerce, I can’t edit it, it’s not like I could edit where it goes without knowing some proper .php or css first you know? I just want a popup that opens and I can input whatever I want, specifically asking the user if they would like to go to cart or continue shopping, if continue shopping, they are redirected to shop page. And within this popup should show the items they just added, like in the cart page. But I kind of know how to do this part, I just don’t know how to get it to popup, and make sure the item is really added to cart as you said earlier. That sounds like a great idea. I’m sure I’m not the only one looking for this ??

    Plugin Author Daniel Iser

    (@danieliser)

    Generally the buttons have a specific class already, something like woo-add-to-cart or similar. In that case you can use the Custom Selectors option under Click Open Settings adding .woo-add-to-cart meaning that those buttons will trigger the popup with that setting.

    That said the dynamic nature of the content afterwards may be a bit tricky if your not comfortable working with PHP & JS. I have added your notes to my idea board which has a growing number of developers. They are free to choose any idea so I can’t say when it will get done, but it is on the list so it will get there eventually.

    Thread Starter Maasha

    (@maasha)

    Daniel, thank you for the advice. I can go as far as entering that info but you’re right I have no clue about PHP and Javascript except copy and paste lol. The more I edit, the more potential errors in hidden dark code which can be a draining nightmare. Plugins make it easy to figure out exactly where my issue is. But I guess it’s all perspective. When you get through the hard phase and actually know code, php, javascript etc. it gets easier… My hands are full already with what I have to do I wish I could learn. I hope it gets developed and I wishing you goood luck. I will still continue to use your popup because it’s so awesome^^

    Plugin Author Daniel Iser

    (@danieliser)

    @maasha – I actually passed this idea directly to a developer this morning.

    Thread Starter Maasha

    (@maasha)

    Great!! Thank you!! I’m excited for its release. ??

    I’d be really interested in this development as i have the same requirement/need as Maasha. Please let me know when/if this is now available.

    Plugin Author Daniel Iser

    (@danieliser)

    @bezim – Are you looking to add an interupt or extra interactivity on click? IE do you want to prevent add to cart until something happens in the popup or do you simply want the item added to cart and a popup triggered.

    Both are possible now, and will be easier over the next few versions not requiring custom code.

    Currently our default click trigger blocks default actions such as adding to cart. This will be optional in v1.4.1, but currently you can add some JS like this to your functions.php that will do it now.

    function custom_footer_popup_scripts() {
    	?>
    <script>
    	(function ($, document, undefined) {
    		$('.woo-add-to-cart').on('click', function () {
    			$('#popmake-123').popmake('open');
    		});
    	}(jQuery, document));
    </script>
    <?php
    }
    add_action( 'wp_footer', 'custom_footer_popup_scripts' );

    I am not sure of the correct button class for the woo-add-to-cart part and you need to set the 123 to match your popup id #.

    Hope that helps, please take a moment to rate and review the plugin and or support.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Add to Cart Popup’ is closed to new replies.