• Resolved dalberthab

    (@dalberthab)


    Hi all,

    we have a woocommerce site with your plugin and the redis cache plugin.

    If you click “place order” you will be redirected to amazon that redirects you back to your checkout page with the error “Error: Order missing Amazon order reference ID.“.

    The order is created in woocommerce (with the reference id) and amazon. Instead of the “thank you”-page you get the error. That’s a problem as the customer doesn’t know if the order is submitted.

    Best regards
    David

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter dalberthab

    (@dalberthab)

    Edit:

    If you add wp_cache_add_non_persistent_groups(['orders']); it is working again but orders aren’t cached anymore.

    Best regards
    David

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    It sounds like you’ve already narrowed it down: the checkout is only possible when the Redis Cache Plugin is enabled.

    I’d recommend disabling caching for the cart, checkout, and my accounts page, as described here:
    https://docs.woocommerce.com/document/configuring-caching-plugins

    Otherwise, I’d recommend chatting with the developers of the Redis Cache plugin. We haven’t seen issues with other caching plugins, especially after they’re disabled as recommended above.

    I hope that helps you in the right direction!

    Thread Starter dalberthab

    (@dalberthab)

    Dear Hannah,

    it’s an object cache (https://www.ads-software.com/plugins/wp-redis/). I cannot disable it on these pages.

    Best regards
    David

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    This is something that we won’t be able to solve – we need caching to not be enabled on those pages for most Woo plugins to work correctly. I’d recommend using the fix that you already found, or investigating a different caching plugin.

    Thread Starter dalberthab

    (@dalberthab)

    Dear Hannah,

    can you please recommend a working caching plugin?

    best regards
    David

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @dalberthab

    The Cart, Checkout, My Account pages should never be cached for reasons like this. Addition information and recommendations can be found here:

    https://docs.woocommerce.com/document/configuring-caching-plugins/

    Thread Starter dalberthab

    (@dalberthab)

    Dear @johndcoy,

    we do not use a page cache, we use a object cache. The page you mentioned has information about page caching.

    The problem also occurs if w3 total cache object cache is enabled. All other caches of w3 total cache are disabled for testing purposes.

    Best regards
    David

    Hi @dalberthab,

    I habe the exact same issue and contacted the Support a few months ago. Sadly I got the same answers you got from them ?Please exclude page xyz from Caching“ – it really seems they don‘t know how object caching works.

    I tested different Settings in my Environment and all occurs in the same issue: the Amazon Payments Plugin won‘t work…otherwise all other payment Gateways work perfectly.

    Habe you found an Solution for That?

    Thanks and regards,
    Alex

    • This reply was modified 4 years, 2 months ago by kanpeki.
    Thread Starter dalberthab

    (@dalberthab)

    Hi @kanpeki,

    we use the work around to exclude the orders of the object cache (2nd post in this thread). But with object cache enabled, the amazon pay gateway is not working even with the current versions of woocommerce, wordpress and the gateway plugin.

    Best regards
    David

    Hi @dalberthab,

    thanks for reply.

    Have you placed the wp_cache_add_non_persistent_groups(['orders']); inside a custom function in functions.php or direct into the cache file from the redis plugin?

    Sorry for asking, but I tried several methods and I still geht the same error…

    Thanks a lot and best regards,
    Alex

    Thread Starter dalberthab

    (@dalberthab)

    Hi @kanpeki,

    we have a plugin to customize some functionality of the store.

    But you can use your functions.php and add a action to “plugins_loaded” to exclude the orders of the cache:

    function disableOrderCache() {
        global $wp_object_cache;
    
        if (is_a($wp_object_cache, '\WP_Object_Cache')) {
            wp_cache_add_non_persistent_groups(['orders']);
        }
    }
    add_action('plugins_loaded', 'disableOrderCache');
    

    Best regards
    David

    • This reply was modified 4 years, 2 months ago by dalberthab.
    • This reply was modified 4 years, 2 months ago by dalberthab. Reason: Quote Style

    Hi @dalberthab,

    same issue here today. A customer reported us exactly this. We use Litespeed with Redis.

    Could you please take a look here and tell me if you have the same problems about double orders? Maybe we could search for a fix together.

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Ordering with cache not possible’ is closed to new replies.