├── .editorconfig ├── .github └── workflows │ └── php-tests.yml ├── .gitignore ├── assets ├── admin.js └── onboarding.js ├── bin └── archive.sh ├── changelog.txt ├── composer.json ├── composer.lock ├── includes ├── class-wc-coupon-restrictions-admin.php ├── class-wc-coupon-restrictions-cli.php ├── class-wc-coupon-restrictions-onboarding.php ├── class-wc-coupon-restrictions-settings.php ├── class-wc-coupon-restrictions-table.php ├── class-wc-coupon-restrictions-validation-cart.php ├── class-wc-coupon-restrictions-validation-checkout.php └── class-wc-coupon-restrictions-validation.php ├── languages └── woocommerce-coupon-restrictions.pot ├── license.txt ├── phpcs.xml ├── phpunit.xml ├── readme.md ├── readme.txt ├── tests ├── bin │ ├── install-woocommerce.sh │ └── install-wp-tests.sh ├── phpunit │ ├── Integration │ │ ├── ApplyCountryRestrictionCouponTest.php │ │ ├── ApplyExistingCustomerCouponTest.php │ │ ├── ApplyGenericCouponTest.php │ │ ├── ApplyNewCustomerCouponTest.php │ │ ├── ApplyPostcodeRestrictionCouponTest.php │ │ ├── ApplyRoleRestrictionCouponTest.php │ │ ├── ApplyStateRestrictionCouponTest.php │ │ ├── CheckoutCountryRestrictionCouponTest.php │ │ ├── CheckoutExistingCustomerCouponTest.php │ │ ├── CheckoutLimitPerIPTest.php │ │ ├── CheckoutLimitPerShippingAddressTest.php │ │ ├── CheckoutLimitSimilarEmailsTest.php │ │ ├── CheckoutNewCustomerCouponTest.php │ │ ├── CheckoutPostcodeRestrictionCouponTest.php │ │ ├── CheckoutRoleRestrictionCouponTest.php │ │ ├── CheckoutStateRestrictionCouponTest.php │ │ ├── EnhancedUsageRestrictionsFiltersTest.php │ │ ├── OnboardingSetupTest.php │ │ ├── RestrictionsTableTest.php │ │ ├── ReturningCustomerTest.php │ │ └── ValidationsTest.php │ ├── Unit │ │ └── ValidationTest.php │ ├── bootstrap.php │ └── helpers │ │ ├── class-wc-helper-coupon.php │ │ ├── class-wc-helper-customer.php │ │ ├── class-wc-helper-order.php │ │ ├── class-wc-helper-product.php │ │ └── class-wc-helper-shipping.php ├── readme.md └── wp-tests-config.php └── woocommerce-coupon-restrictions.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/php-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/.github/workflows/php-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/.gitignore -------------------------------------------------------------------------------- /assets/admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/assets/admin.js -------------------------------------------------------------------------------- /assets/onboarding.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/assets/onboarding.js -------------------------------------------------------------------------------- /bin/archive.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/bin/archive.sh -------------------------------------------------------------------------------- /changelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/changelog.txt -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/composer.lock -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-admin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-admin.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-cli.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-cli.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-onboarding.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-onboarding.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-settings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-settings.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-table.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-validation-cart.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-validation-cart.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-validation-checkout.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-validation-checkout.php -------------------------------------------------------------------------------- /includes/class-wc-coupon-restrictions-validation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/includes/class-wc-coupon-restrictions-validation.php -------------------------------------------------------------------------------- /languages/woocommerce-coupon-restrictions.pot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/languages/woocommerce-coupon-restrictions.pot -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/license.txt -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/phpcs.xml -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/phpunit.xml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/readme.md -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/readme.txt -------------------------------------------------------------------------------- /tests/bin/install-woocommerce.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/bin/install-woocommerce.sh -------------------------------------------------------------------------------- /tests/bin/install-wp-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/bin/install-wp-tests.sh -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyCountryRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyCountryRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyExistingCustomerCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyExistingCustomerCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyGenericCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyGenericCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyNewCustomerCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyNewCustomerCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyPostcodeRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyPostcodeRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyRoleRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyRoleRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ApplyStateRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ApplyStateRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutCountryRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutCountryRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutExistingCustomerCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutExistingCustomerCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutLimitPerIPTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutLimitPerIPTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutLimitPerShippingAddressTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutLimitPerShippingAddressTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutLimitSimilarEmailsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutLimitSimilarEmailsTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutNewCustomerCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutNewCustomerCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutPostcodeRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutPostcodeRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutRoleRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutRoleRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/CheckoutStateRestrictionCouponTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/CheckoutStateRestrictionCouponTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/EnhancedUsageRestrictionsFiltersTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/EnhancedUsageRestrictionsFiltersTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/OnboardingSetupTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/OnboardingSetupTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/RestrictionsTableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/RestrictionsTableTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ReturningCustomerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ReturningCustomerTest.php -------------------------------------------------------------------------------- /tests/phpunit/Integration/ValidationsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Integration/ValidationsTest.php -------------------------------------------------------------------------------- /tests/phpunit/Unit/ValidationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/Unit/ValidationTest.php -------------------------------------------------------------------------------- /tests/phpunit/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/bootstrap.php -------------------------------------------------------------------------------- /tests/phpunit/helpers/class-wc-helper-coupon.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/helpers/class-wc-helper-coupon.php -------------------------------------------------------------------------------- /tests/phpunit/helpers/class-wc-helper-customer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/helpers/class-wc-helper-customer.php -------------------------------------------------------------------------------- /tests/phpunit/helpers/class-wc-helper-order.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/helpers/class-wc-helper-order.php -------------------------------------------------------------------------------- /tests/phpunit/helpers/class-wc-helper-product.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/helpers/class-wc-helper-product.php -------------------------------------------------------------------------------- /tests/phpunit/helpers/class-wc-helper-shipping.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/phpunit/helpers/class-wc-helper-shipping.php -------------------------------------------------------------------------------- /tests/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/readme.md -------------------------------------------------------------------------------- /tests/wp-tests-config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/tests/wp-tests-config.php -------------------------------------------------------------------------------- /woocommerce-coupon-restrictions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devinsays/woocommerce-coupon-restrictions/HEAD/woocommerce-coupon-restrictions.php --------------------------------------------------------------------------------