Free Gift Coupons v3.8.1 – WooCommerce 10.7 & Product Caching Compatibility

Free Gift Coupons 3.8.1 is a compatibility release. It is tested with WooCommerce 10.7.0 and WordPress 6.9.0, and it declares compatibility with WooCommerce’s Cache Product Objects feature. Nothing changes in how coupons or gifts behave, and there is no database update.

Updates

Tested with WooCommerce 10.7 and WordPress 6.9

Free Gift Coupons 3.8.1 is tested with WooCommerce 10.7.0 and WordPress 6.9.0. Minimum requirements are unchanged: WordPress 6.2, WooCommerce 8.2 and PHP 7.4.

Compatible with WooCommerce’s Cache Product Objects feature

Free Gift Coupons now declares compatibility with the Cache Product Objects feature on WooCommerce → Settings → Advanced → Features (product_instance_caching in code). WooCommerce introduced the feature as an experimental option in WooCommerce 10.5. With it on, repeated product lookups within a request are served from an in-memory cache instead of reloading the product from the database, and each caller receives its own copy of the product. Free Gift Coupons sets a gift’s zero price on the cart line’s own copy of the product, when the gift is added and each time the cart loads from the session. The cache and the free gift pricing therefore do not interfere. On WooCommerce 10.5, where the Features screen listed every plugin without a declaration as incompatible, Free Gift Coupons now shows as compatible; WooCommerce 10.6 and later treat undeclared plugins as compatible by default.

Why this matters

  • Tested with WooCommerce 10.7.0 and WordPress 6.9.0, with no database update to run
  • Free Gift Coupons shows as compatible on the WooCommerce Features screen when Cache Product Objects is in use
  • Free gifts stay priced at zero with the product cache on, because the price lives on the cart line’s own copy of the product
  • No behaviour changes: coupons, gifts and the cart work exactly as they did in 3.8.0

Similar Posts