Skip to content

Commit

Permalink
Merge pull request #253 from razorpay/1cc-coupon-filter
Browse files Browse the repository at this point in the history
Filtering out the coupons created by retargeting plugins
  • Loading branch information
ChetanGN authored Apr 19, 2022
2 parents 3871f4d + 4bc9364 commit 98f2017
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions includes/api/coupon-get.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function getCouponList($request)
'value' => array('fixed_cart', 'percent', 'fixed_product'),
'compare' => 'IN',
),
array(
'key' => 'coupon_generated_by',
'compare' => 'NOT EXISTS',
),
),
'fields' => 'ids',
'posts_per_page' => -1, // By default WP_Query will return only 10 posts, to avoid that we need to pass -1
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: razorpay
Tags: razorpay, payments, india, woocommerce, ecommerce
Requires at least: 3.9.2
Tested up to: 5.9
Stable tag: 3.2.0
Stable tag: 3.2.1
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -41,6 +41,10 @@ This is compatible with WooCommerce>=2.4, including the new 3.0 release. It has

== Changelog ==

= 3.2.1 =
* Fix the latency issue.
* Bug fix in coupon fetch API.

= 3.2.0 =
* Version bump to 3.2.0
* Tested up to Woocommerce 6.2.2
Expand Down
4 changes: 2 additions & 2 deletions woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: Razorpay for WooCommerce
* Plugin URI: https://razorpay.com
* Description: Razorpay Payment Gateway Integration for WooCommerce
* Version: 3.2.0
* Stable tag: 3.2.0
* Version: 3.2.1
* Stable tag: 3.2.1
* Author: Team Razorpay
* WC tested up to: 6.2.2
* Author URI: https://razorpay.com
Expand Down

0 comments on commit 98f2017

Please sign in to comment.