• Resolved escaladieu

    (@escaladieu)


    After the last woocommerce update I’m no longer able to add products to the cart. I hit the button, there’s a delay while the action runs, but the cart is not updated. Works on desktop PC OK. anyone have any ideas what I might try ? The web console shows no Javascript errors while the add to cart action is running. I’ve cleared cookies in safari on IOS. No change.

    Help much appreciated.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Are you logged in when its working?

    Sounds like it may be caching; if you’re using a caching plugin they may have different caching rules for mobile devices.

    Thread Starter escaladieu

    (@escaladieu)

    Thanks Mike. No I’m logged out when its working. I’ll experiment with the cacheing

    Thread Starter escaladieu

    (@escaladieu)

    Its not the cacheing. It happens with it turned off. Also I find that the add to cart function SOMETIMES works on PC but not always.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Deactivating caching plugins is sometimes not enough; WP_CACHE may still be in your config file. There is also the possibility of server level caching.

    Thread Starter escaladieu

    (@escaladieu)

    Well I know a bit more now. I put wireshark on the wire and what is happening is this.
    If I use the woocommerce system status tools to reset all transients, reset usage tracking etc – reset everything. Then the add to cart works as it should. A post is made to the page a 200 response is issued and all is well.
    If I then immediately add the exact same product to the cart again the add to cart fails with a 403 forbidden http response. Since the add to cart worked once its not a server permissions issue or a missing file. So I guess its a sessions issue of some kind – but I don’t know what.
    Totally stumped & outside my comfort zone! I presume there is some kind of session control to prevent random posts to a webpage ?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    What host is this? In wp-content do you have an object-cache file?

    Thread Starter escaladieu

    (@escaladieu)

    NO, there’s no object cache file in wp-content. The hosting provider is Clook

    Thanks for helping

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Can you update to 2.4.6 – set some additional headers during add to cart ajax calls.

    Thread Starter escaladieu

    (@escaladieu)

    Mike, I’ve resolved the issue. It turned out to be a permissions issue serverside. Somehow the posting permissions white list got screwed up. Why it allowed the add to cart to work sometimes and not others is a mystery. Thanks for all your help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Woocommerce Add to cart no longer works on Android & IOS’ is closed to new replies.