# WPForms Coupons

`meteorgpl-plugin/wpforms-coupons` — a WordPress plugin as a Composer package.

Create Coupons with WPForms.

- Author: WPForms — https://wpforms.com
- Homepage: https://wpforms.com
- License: GPL-2.0-or-later (profile: gpl-full)
- Buy a license from the vendor: https://wpforms.com
- Latest version: 1.6.0 (2025-02-25)
- Page: https://meteorgpl.com/packages/meteorgpl-plugin/wpforms-coupons
- Requires WordPress: 5.5
- Requires PHP: 7.1
- Vendor: WPForms — https://meteorgpl.com/vendors/wpforms.com

## Changelog

### 1.6.0 — 2025-02-25

### IMPORTANT
- Support for PHP 7.0 has been discontinued. If you are running PHP 7.0, you MUST upgrade PHP before installing this addon. Failure to do that will disable addon functionality.

### Changed
- The minimum WPForms version supported is 1.9.4.

### Fixed
- Changes were not preserved when editing Entries belonging to Forms with Conditional Logic fields in combination with the Coupons and Calculations addons

### 1.5.0 — 2024-09-24

### Added
- Calculations addon compatibility.

### Changed
- The minimum WPForms version supported is 1.9.1.

### Fixed
- Fixed a potential PHP fatal error that occurred when the Coupon field was hidden by conditional logic.
- Corrected the calculation of discounts passed to the Square dashboard for currencies with no decimal places (zero-decimal currencies).

### 1.4.0 — 2024-08-06

### Changed
- The minimum WPForms version supported is 1.9.0.
- Improved compatibility with 3rd-party plugins.

### Fixed
- RTL support for the Coupon field.
- MySQL errors might have occurred when creating a table in some unique configurations.
- Hide "Press to select" label from the Allowed Coupons dropdown in Form Builder.

### 1.3.1 — 2024-04-25

### Added
- A label to indicate the User Template in the list of allowed forms for the coupon.

### Fixed
- The total amount was sometimes incorrect when the percentage coupon type was applied.
- Incorrect discount was applied for Square payments when the amount was a fractional value.
- Compatibility with the Divi page builder.

### 1.3.0 — 2024-04-16

### Changed
- The minimum WPForms version supported is 1.8.8.

### Added
- Compatibility with the WPForms 1.8.8.

### Fixed
- The form was not saved in the Form Builder when following the prompt to create the first Coupon.
- Time input fields appeared too narrow on the Edit Coupon page.
- RTL problems in the form builder.
- Removed redundant DB queries from the addon happening on non-related admin pages.
- Discount amount was wrong when the form contains calculated payment fields.

Full changelog: https://meteorgpl.com/packages/meteorgpl-plugin/wpforms-coupons/changelog

## Install

```sh
composer config repositories.meteorgpl composer https://composer.meteorgpl.com
composer require meteorgpl-plugin/wpforms-coupons
```

The repository needs a token (see https://meteorgpl.com/docs). The vendor's license checks are intact: activate the plugin in WordPress with a key bought from the vendor.

## Versions

| Version | Released | Size | SHA-256 | Status |
| --- | --- | --- | --- | --- |
| 1.6.0 | 2025-02-25 | 121.9 KB | dc55851bf40d45900f0a0d40301320e3bc7e73eb7a7247dc0d297bf7c7cdfd90 | verified |

