Skip to content

Commit

Permalink
Merge pull request zencart#3617 from scottcwilson/coupon_code
Browse files Browse the repository at this point in the history
ot_coupon - Add coupon_code to SELECT statement
  • Loading branch information
drbyte committed Jun 30, 2020
2 parents af6d671 + 7eabde9 commit 27056ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/modules/order_total/ot_coupon.php
Expand Up @@ -189,8 +189,7 @@ function collect_posts() {



$sql = "SELECT coupon_id, coupon_amount, coupon_type, coupon_minimum_order, uses_per_coupon, uses_per_user,
restrict_to_products, restrict_to_categories, coupon_zone_restriction, coupon_calc_base, coupon_order_limit
$sql = "SELECT *
FROM " . TABLE_COUPONS . "
WHERE coupon_code= :couponCodeEntered
AND coupon_active='Y'
Expand Down

0 comments on commit 27056ae

Please sign in to comment.