• Resolved Abdul Samad

    (@abdul-samad-k-t)


    Hi,

    Recently when I click PayPal express checkout button, it just goes to checkout page instead of Paypal. But when I remove my code to redirect after add to cart, the Paypal button is working. I am sure no errors in the redirect code below.

    add_filter (‘woocommerce_add_to_cart_redirect’, ‘woo_redirect_to_checkout’);
    function woo_redirect_to_checkout() {
    $checkout_url = WC()->cart->get_checkout_url();
    return $checkout_url;
    }

    All things were working well with this above code, but I don’t know what happened.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    Also when I enable the smart button, Paypal express is working on desktop chrome but not working on the mobile device.

    Plugin Contributor angelleye

    (@angelleye)

    So the redirect problem is happening even with smart buttons disabled? What mobile device/browser are you using when you have a problem there?

    Have you made sure to clear out any caching / CDN tools after updating the plugin?

    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    Yes, it redirects to checkout when I disable smart buttons.

    I am using iPhone 5s with chrome. Also tested on an Android device with chrome.

    I disabled all plugins except WooCommerce and this plugin and cleared all cache.

    Not sure which CDN tools I have to clear.

    I am using Autoptimize plugin but deleted all caches and disabled the plugin. I had the same problem two months ago and found Autoptimize causing the problem. but now all plugins are disabled and cleared all caches.

    Plugin Contributor angelleye

    (@angelleye)

    We had another issue recently that was a conflict with Autoptimize, and the solution was:

    Did you try disabling the “also optimize on your shop’s cart/ checkout”-option in Autoptimize?

    Maybe give that a shot..??

    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    I clear all cache on Autoptimize and disabled the plugin.

    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    I also tried the same code with your plugin on another site and got the same problem. but after redirect to checkout, when I go back to same product page and click checkout with PayPal button again, it works ( the page go to Paypal )

    • This reply was modified 8 years, 2 months ago by Abdul Samad.
    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    I submitted a support ticket on the site. Please check.

    Plugin Contributor angelleyesupport

    (@angelleyesupport)

    Thanks, we have received your ticket and is replied. Per our record we have made some adjustments and those will be included in our next release.
    I’m going to go ahead and mark this as resolved now. But feel free to write here again if you still see any trouble.
    Thanks!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @rahulpragma If you need support, per the forum guidelines please start your own support topic.

    https://wordpress.org/support/guidelines/#post-in-the-best-place

    You can do so here.

    https://wordpress.org/support/plugin/paypal-for-woocommerce/#new-post

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Paypal express checkout not working’ is closed to new replies.