• Resolved danielcantuaria

    (@danielcantuaria)


    Hi there, i hope this message finds you well.

    I am using woocommerce address book yith request a quote along with woocommerce/wcfm and yith request a quote plugins.

    But I’m facing a problem with the request a quote funcionality along woocommerce address book and not able to get the quotes.
    When the customer accept a quote response, the system does not load the checkout to proceed to payment, instead it displays the message “session expired, return to shop”, along with “[product] has been removed from your cart because it can no longer be purchased. Please contact us if you need assistance.”.

    I did a conflict test and found out that the problem occurs between yith request a quote and Woocommerce Addres Book
    The address book plugin works well on normal products purchase, and the yith plugin also works well without the address book plugin activated.

    Did you already heard about this, can you help me with it?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matt Harrison

    (@matt-h-1)

    Hi,

    This is the first we are hearing of any issue with the compatibility here. I can’t think of anything in the Address Book plugin that would affect either the cart of session like you describe.

    I also tested out the Yith request a quote plugin to try and reproduce the issue. I could accept the quote from the email just fine and complete the order on my test site.

    Thread Starter danielcantuaria

    (@danielcantuaria)

    Hi, thanks for the response

    Would you mind testing the compatibility with a clone of my site (all in one migration)? Cause I’m pretty sure it’s an incompability between the two plugins, but I’m not sure wich one is cause the issue

    Plugin Author Matt Harrison

    (@matt-h-1)

    sure, reach out through our support on our site by clicking through the CrossPeak link on this plugin byline with details.

    Plugin Author Matt Harrison

    (@matt-h-1)

    What we found after reviewing the site is normally WooCommerce has functionality that will automatically remove any product that doesn’t have a price set from your cart if it is in your cart. When you accept a quote with the Yith plugin, they have code that overrides this functionality and allows the product to be purchased with your custom pricing for the quote. However, if any WordPress AJAX call is made on the checkout page, their override code doesn’t get loaded during the AJAX call, but WooCommerce’s cart check does run and that results the the product being removed from the cart. Then, when the checkout updates, it isn’t in the cart anymore and the checkout session expires. So, it doesn’t seem in particular to our Address Book plugin, but our plugin does make AJAX calls on checkout to load in the address book which was triggering the issue to happen.

    That was why it worked fine in our testing because our test product had a price set on it already, so it never triggered the removal from the cart. With no price set, it would have happened.

    We were able to work around the issue here by switching out the WordPress AJAX calls to WooCommerce AJAX calls which doesn’t have the same issue with the Yith plugin. (This was a switch already in the works for our 3.x version of the plugin)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.