Support » Plugins and Hacks » WooCommerce Advanced Free Shipping » Empty card with error on anonymous users

  • Hi!
    When I create a rule of type with the number of items in the Cart I get the following error with anonymous users: “you have been removed from your cart because it can not be purchased.
    If I login with the WordPress admin it works fine.
    The rule I have set is for “3 products or more in the basket”.
    Please, can you help me?

    • This topic was modified 2 weeks, 3 days ago by  lballester.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    How did you lead this back the Advanced Free Shipping? The plugin doesn’t have any capabilities to do what you’re describing / it shouldn’t be able to lead to something like that.

    I’m also not entirely sure what is happening. I know WC can remove products from the cart when they’re out of stock for example, but ‘you have been removed’ is something I haven’t seen before.

    Let me know!

    Cheers,
    Jeroen

    Hi,
    It may not be the module that directly empties the shopping cart, but it is a consequence of this. There are several cases explained:
    If the rule configured with Advance Free Shipping is of any type except “Quantity” everything works correctly.
    If the rule configured with Advance Free Shipping is of the type “Quantity” then the error described in the ticket appears.
    If the rule configured with Advance Free Shipping is of type “Quantity” but we are logged in with the admin user then everything works perfectly.

    Can you test it?

    Thank you.

    Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    I’ve tested this and cannot replicate it unfortunately.

    When is the cart getting emptied when not logged in? Could you maybe post a screenshot of the error message?

    Is your error log showing anything?

    Thank you,
    Jeroen Sormani

    Hi, here you are.
    Error log is empty, no errors.
    https://www.screencast.com/t/ade5Flnyj
    Thanks!

    • This reply was modified 2 days, 7 hours ago by  lballester.
    Plugin Author Jeroen Sormani

    (@sormano)


    Hi,

    Thank you for the screenshot.

    Its really strange though! It looks like its missing the product name, could it be the product was removed / set to draft / password or anything in the meantime? Maybe you can add it because you have permission when logged in, but not when logged out?

    I still can’t replicate / think of any reason this may happen due to my plugin.
    Have you tested this with other conditions? Is is solely with ‘quantity’? Do you have any other condition setup alongside that one?

    Could you check what happens if you deactivate the WAFS plugin for a while to see if the same thing still happens?

    Cheers,
    Jeroen

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