Plugin Directory

Changeset 1753433


Ignore:
Timestamp:
10/26/2017 07:29:17 PM (8 years ago)
Author:
pepperjam2016
Message:

Applied percent product limited coupon fix from 1.0.7 to the percent coupon time which is now used in lieu of percent_product in WC 3.2

Location:
pepperjam-pixel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pepperjam-pixel/trunk/includes/class-pj-pixel.php

    r1697651 r1753433  
    371371                    // below so it doesn't take the limit_usage_to_x_items into account. We borrow from it and
    372372                    // take it into account ourselves here
    373                     if ( $wc_coupon->is_type( array( 'percent_product', 'fixed_product' ) )  && $wc_coupon->limit_usage_to_x_items != '') {
     373                    if ( $wc_coupon->is_type( array( 'percent', 'percent_product', 'fixed_product' ) )  && $wc_coupon->limit_usage_to_x_items != '') {
    374374                        $limit_usage_qty = min( $wc_coupon->limit_usage_to_x_items, $_qty );
    375375                        $discount = ( $wc_coupon->get_discount_amount( $_price ) * $limit_usage_qty ) / $_qty;
  • pepperjam-pixel/trunk/pepperjam.php

    r1691233 r1753433  
    44 * Plugin URI: https://www.pepperjam.com/
    55 * Description: Extend the WooCommerce platform with Pepperjam pixel.
    6  * Version: 1.0.6
     6 * Version: 1.0.8
    77 * Author: Brad Cavanaugh <bradkcavanaugh@gmail.com>
    88 * Author URI: https://bradkcavanaugh.com
  • pepperjam-pixel/trunk/readme.txt

    r1697651 r1753433  
    33Tags: WooCommerce, Pepperjam, Pixel, Woo, Commerce
    44Requires at least: 3.0.1
    5 Tested up to: 4.8
     5Tested up to: 4.8.1
    66Stable tag: trunk
    77License: GPLv2 or later
     
    3131== Changelog ==
    3232
     33= 1.0.8 =
     34* Compatibility fix to apply fix introduced in 1.0.7 to the coupon type 'percent' which is used in lieu of 'percent_product' in WC 3.2
     35
    3336= 1.0.7 =
    3437* Fixed bug that caused discounts limited to x items to be incorrectly reported in item price
Note: See TracChangeset for help on using the changeset viewer.