• Resolved oliverwedissimo

    (@oliverwedissimo)


    Hi. I’ve reviewed a lot of other threads on the topic, and as far as I can tell, it looks like we’re set up correctly:

    • RewriteRule .? – [E=”Cache-Vary:woocommerce_cart_hash”] in .htaccess
    • /my-account, /account, /cart, /checkout etc. in “Do Not Cache URIs”
    • woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_, wp_woocommerce_session in “Do Not Cache Cookies”
    • “Vary for Mini Cart” is enabled

    However, every so often, users are being sent to an empty /cart page, instead of to /checkout. We are always unable to reproduce locally, and it’s very inconsistent (though possibly slightly more common on mobile). The theme (RentalHive for HivePress) does not use the cart page directly, so users should never be sent to /cart – but seem to trigger it because the cart is empty, so they get redirected from checkout.

    I have submitted report QFSEHUCF to provide some more info.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    you mean you don’t use /cart/ page and every cart page should be redirected to /checkout/ page ? maybe you could consider use rewrite rule to redirect cart to checkout directly ?

    Thread Starter oliverwedissimo

    (@oliverwedissimo)

    Thanks for the update. I believe what may be happening is that the user gets sent to /checkout, but is redirected to /cart due to the product not being added to their cart, so just adding a redirect back to /checkout would cause a loop.

    Plugin Support qtwrk

    (@qtwrk)

    please try check the html source code on that blank cart page and also the php error log , mabe cart page crashed during generation so end up in blank ?

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