dalberthab
Forum Replies Created
-
Forum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleHi @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 5 years, 8 months ago by dalberthab.
- This reply was modified 5 years, 8 months ago by dalberthab. Reason: Quote Style
Forum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleHi @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
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Endless Loop in Checkout@jlundie the issue still exists with Price Based on Countries 2.0.9
I did some research and it seems the problem occurs only if the address in the amazon widget is changed.
I submitted a pull request to probably fix the problem.
Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Endless Loop in CheckoutI checked the diffs between 1.11.1 and 1.12.2 and found the relevant line:
amazon-app-widgets.js – line 427 – onPaymentSelect: wcAmazonUpdateCheckoutAddresses
These line is added in 1.12.x and causes the infinite loop (function calls in post 1).
Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Capture amount when changing stateForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Endless Loop in CheckoutDear @dougaitken,
no, it is required to have a plugin enabled that enabled the multi currency support of your plugin.
I did a check with woocommerce, amazon pay and Product Price based on Countries (free). Theme was twentytwenty.
We got no http error codes. It is javascript releated. Please hava a look in the first post of this threat. I already posted the corresponding js functions with line and file.
Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleDear @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
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Endless Loop in CheckoutHi @johndcoy,
you have to enable the multi currency support in order to reproduce the error. We use Product Price based on Countries. If the multi currency support is disabled, there is no error.
Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleDear Hannah,
can you please recommend a working caching plugin?
best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleDear Hannah,
it’s an object cache (https://ww.wp.xz.cn/plugins/wp-redis/). I cannot disable it on these pages.
Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Ordering with cache not possibleEdit:
If you add
wp_cache_add_non_persistent_groups(['orders']);it is working again but orders aren’t cached anymore.Best regards
DavidForum: Plugins
In reply to: [Amazon Pay for WooCommerce] Endless loading after logging into amazonHi @dougaitken,
we have the same problem and could break down the problem to the followig code:
- woocommerce – checkout.js – line 418 -> triggers updated_checkout
- amazon pay – amazon-app-widgets.js – line 385 -> calls wcAmazonWalletWidget
- amazon pay – amazon-app-widgets.js – line 427 -> sets onPaymentSelect: wcAmazonUpdateCheckoutAddresses
- amazon pay – amazon-app-widgets.js – line 254 -> triggers update_checkout
- woocommerce – checkout.js – line 242 -> leads to line 418 (first entry)
I hope this helps to fix the bug.
Best regards
David