Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author kevinweber

    (@kevinweber)

    I assume that /checkout/ and /checkout/order-received/ are separat pages in your WordPress installation. Go to the edit page for /checkout/order-received/ and look for the wBounce widget. There’s a dropdown where you can turn the popup off for that page. See https://ps.w.org/wbounce/assets/screenshot-4.png?rev=994373

    Is that working?

    Thread Starter Pharmax

    (@pharmax)

    Hi Kevin and thank you for your fast answer.

    I already tried that, but only the page “Checkout” exists as a page.

    The sub-page “Order received” is automatically generated by WooCommerce, so there is no page I could visit to deactivate the popup.

    And I already tried to create this sub-page in WordPress to force it, but it didn’t work.

    Do you have any PHP code or something like to force the pop up not appear on a particular page or URL?

    Thank you, once again we will send you a tip if you can help us.

    Best,

    Plugin Author kevinweber

    (@kevinweber)

    I can’t help you with that. (That would require me to spend some team with extra development.) You could ask the WooCommerce team if they have an idea or if they want to extend my plugin in some way. They (or anyone else) can contribute on Github and I might publish their enhancements to the WordPress directory.

    Once Kevin will merge my pull request, what you want will be available with a simple code snippet like the one I wrote as example in PR.

    Thread Starter Pharmax

    (@pharmax)

    Awesome Dima, please keep us updated about this too ??

    Plugin Author kevinweber

    (@kevinweber)

    Thanks a lot Dima Stefantsov! I just merged your pull request. Please provide support when someone has questions here.

    Version 1.5.1.5 of wBounce is for all the people who are interested in this thread ??
    Would be amazing if you all could give this plugin a five-star rating here and star it on Github.

    Thread Starter Pharmax

    (@pharmax)

    Hello Dima and Kevin,

    Could you please help with our little problem above? is it possible to do something now?

    We can add PHP on the page that we want to block at
    wp-content/plugins/woocommerce/templates/checkout/thankyou.php

    Thank you much in advance, please anyone help.

    Hi, Pharmax. Yes, it’s completely possible now.

    https://stefantsov.com/wbounce-display-filter/

    1. add filter to your functions.php
    2. change condition to what you need
    3. wBounce will instantly work as you need it

    What condition exactly you need is up to you to find out. You are using woocommerce plugin, it maybe store some global variables you can check, or you could check current path, or something like that. Basically it should read:
    return $isoff || (your custom woocommerce condition: if current page is thankyou);

    You can surely ask WooCommerce support how exactly you can check it’s that page displayed.

    Thread Starter Pharmax

    (@pharmax)

    Dima, what the filter would look like to include the page /checkout/ but exclude the final woocommerce order step /checkout/order-received/ ?

    Thank you much.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Appear only on /checkout/?’ is closed to new replies.