• Firstly, we are using WooCommerce Subscription in our website. We used this plugin in the checkout page where it is required for a user to be logged in to be able to add the subscription products to cart (we have done a functionality already for the adding of the products and we only let the user login in the checkout page).

    Now, we trigger the update_order_review so that the order details will be updated but it isn’t happening cause of the user being “logged in” through this plugin and the AJAX only returns 403. We already tested executing the update_order_review in two scenarios which are:
    1.) the user is not logged in
    2.) the user is logged in beforehand

    Both of these scenarios are working fine and it does trigger the update_order_review. We have also tried clearing the user cache, cookies, etc. in the login-with-ajax.php in the login function. Maybe you have an idea on how to deal with this.

    Hoping for your fast reply.

    Thanks!

    • This topic was modified 5 years, 6 months ago by nbraffy1.
    • This topic was modified 5 years, 6 months ago by nbraffy1.
    • This topic was modified 5 years, 6 months ago by nbraffy1.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nbraffy1

    (@nbraffy1)

    Just an update, we’re already able to add subscription products to cart. The issue left now is the error 403 returned when executing update_order_review while user “logged in” through this plugin.

    Create a logout button for it that logs the user out of all instances.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    I assume update_order_review is a function or action/filter you manually trigger somehow, is this done by hooking into the login process?

    A few questions:

    * how do you display the LWA login form on your WC checkout page?
    * does the login work when you have the WC Subscribers plugin disabled?

    If you don’t want to disable anything on your site whilst testing this out, try my WP Safe Mode plugin, you can switch themes or disable certain plugins for yourself or only specific IPs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compatibility update_order_review AJAX Call’ is closed to new replies.