Free Gift Coupons v3.7.1 – Script Hardening & Cart Compatibility Fixes
Fixes
Hardened variation form script when no action attribute is present
Improved the variation form script to safely handle cases where the form does not include an action attribute. This prevents unexpected JavaScript errors in custom or heavily modified themes.
Resolved JavaScript error in third-party carts
Fixed an issue that could trigger an Uncaught TypeError: c.offset() is undefined error when using certain third-party cart systems. The script now fails safely and behaves more reliably across custom cart implementations.
Why this matters
- Prevents JavaScript errors on customized product pages
- Improves compatibility with third-party cart plugins
- Enhances frontend stability across different themes and setups
- Reduces the risk of broken add-to-cart behavior