Coupon not applying on IOS devices
-
Hi there, we’ve noticed a bug on our site where coupons are not applied automatically on IOS iPad & iPhone devices. The coupons are applied automatically for specific subscription products and everything works fine except on the IOS devices.
After doing some testing we’ve discovered that it is directly related to the coupon cache despite checking in a new private/incognito window.
When manually clearing the cache it will normally work for the first attempt but does not work again until cache is manually cleared even if that private browser sessions is closed and a new one is opened.
We’ve confirmed this is the cause by adding a function that runs wac_r(“DELETE FROM wp_options WHERE option_name LIKE ‘_transient_wac_%’;”) on the wp_loaded hook and it does solve the issue but obviously this would be a temporary fix.
- You must be logged in to reply to this topic.