Version Description
- 12/06/18 =
- Removed the improvement - Display sale tag, if any rule available for that product
Download this release
Release Info
Developer | flycart |
Plugin | Discount Rules for WooCommerce |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
- includes/pricing-rules.php +2 -15
- readme.txt +5 -2
- woo-discount-rules.php +1 -1
includes/pricing-rules.php
CHANGED
@@ -2776,19 +2776,6 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2776 |
$item_price = preg_replace('/<del>.*<\/del>/', '', $item_price);
|
2777 |
$item_price = '<span class="cart_price"><del>' . $item_price . '</del> <ins>' . ($price_to_display).$product->get_price_suffix() . '</ins></span>';
|
2778 |
}
|
2779 |
-
} else if(FlycartWoocommerceProduct::get_price($product) == FlycartWoocommerceProduct::get_regular_price($product)){
|
2780 |
-
$price_to_display = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($product));
|
2781 |
-
$item_price = '<span class="cart_price"><ins>' . ($price_to_display).$product->get_price_suffix() . '</ins></span>';
|
2782 |
-
} else if(FlycartWoocommerceVersion::wcVersion('3.0')){
|
2783 |
-
$show_original = 0;
|
2784 |
-
$price_to_display = $this->checkForHighestVariantIfExists($product, $item_price, $show_original);
|
2785 |
-
if($show_original){
|
2786 |
-
if(FlycartWoocommerceProduct::get_price($product) >= FlycartWoocommerceProduct::get_regular_price($product)){
|
2787 |
-
$price_to_display = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($product));
|
2788 |
-
$item_price = '<span class="cart_price"><ins>' . ($price_to_display).$product->get_price_suffix() . '</ins></span>';
|
2789 |
-
}
|
2790 |
-
|
2791 |
-
}
|
2792 |
}
|
2793 |
}
|
2794 |
|
@@ -2866,7 +2853,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2866 |
/**
|
2867 |
* Display Product sale tag on the product page
|
2868 |
* */
|
2869 |
-
public function
|
2870 |
$notAdmin = FlycartWooDiscountRulesGeneralHelper::doIHaveToRun();
|
2871 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_sale_tag_on_product_page']))? $this->baseConfig['show_sale_tag_on_product_page']: 'dont';
|
2872 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
@@ -2895,7 +2882,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2895 |
/**
|
2896 |
* Display Product sale tag on the product page
|
2897 |
* */
|
2898 |
-
public function
|
2899 |
$notAdmin = FlycartWooDiscountRulesGeneralHelper::doIHaveToRun();
|
2900 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_sale_tag_on_product_page']))? $this->baseConfig['show_sale_tag_on_product_page']: 'dont';
|
2901 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2776 |
$item_price = preg_replace('/<del>.*<\/del>/', '', $item_price);
|
2777 |
$item_price = '<span class="cart_price"><del>' . $item_price . '</del> <ins>' . ($price_to_display).$product->get_price_suffix() . '</ins></span>';
|
2778 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2779 |
}
|
2780 |
}
|
2781 |
|
2853 |
/**
|
2854 |
* Display Product sale tag on the product page
|
2855 |
* */
|
2856 |
+
public function displayProductIsOnSaleTag($on_sale, $product){
|
2857 |
$notAdmin = FlycartWooDiscountRulesGeneralHelper::doIHaveToRun();
|
2858 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_sale_tag_on_product_page']))? $this->baseConfig['show_sale_tag_on_product_page']: 'dont';
|
2859 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2882 |
/**
|
2883 |
* Display Product sale tag on the product page
|
2884 |
* */
|
2885 |
+
public function displayProductIsOnSaleTagNew($on_sale, $product){
|
2886 |
$notAdmin = FlycartWooDiscountRulesGeneralHelper::doIHaveToRun();
|
2887 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_sale_tag_on_product_page']))? $this->baseConfig['show_sale_tag_on_product_page']: 'dont';
|
2888 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
|
|
4 |
Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts, pricing deals
|
5 |
Requires at least: 4.4.1
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -80,7 +80,7 @@ Display the pricing discount table beautifully on the product page. Start sellin
|
|
80 |
* Buy T-shirts from Category Apparel and save 10% – [Video](https://www.youtube.com/watch?v=OEWc7fL3qeM)
|
81 |
* Get 30% off on Category A & Category B
|
82 |
* Purchase any 6 items from Category A and get 25% discount on total cart value.
|
83 |
-
* Purchase
|
84 |
|
85 |
= Quantity range based tiered pricing discounts =
|
86 |
* [Buy 1 to 5 quantities, get $2 discount, Buy 6 or more, get $3 discount](http://docs.flycart.org/woocommerce-discount-rules/fixed-price-discount-examples/buy-1-to-5-quantity-with-2-discount-buy-6-and-more-with-3-discount-bulk-quantity-discounts)
|
@@ -308,6 +308,9 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
311 |
= 1.6.4 - 12/06/18 =
|
312 |
* Improvement - Display table any one of variant attribute/products rule matches
|
313 |
* Improvement - Display sale tag, if any rule available for that product
|
4 |
Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts, pricing deals
|
5 |
Requires at least: 4.4.1
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.6.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
80 |
* Buy T-shirts from Category Apparel and save 10% – [Video](https://www.youtube.com/watch?v=OEWc7fL3qeM)
|
81 |
* Get 30% off on Category A & Category B
|
82 |
* Purchase any 6 items from Category A and get 25% discount on total cart value.
|
83 |
+
* Purchase 3 products from Category A or B or C or from all of them and get 20% discount valid from dd/mm/yyyy to dd/mm/yyyy
|
84 |
|
85 |
= Quantity range based tiered pricing discounts =
|
86 |
* [Buy 1 to 5 quantities, get $2 discount, Buy 6 or more, get $3 discount](http://docs.flycart.org/woocommerce-discount-rules/fixed-price-discount-examples/buy-1-to-5-quantity-with-2-discount-buy-6-and-more-with-3-discount-bulk-quantity-discounts)
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 1.6.5 - 12/06/18 =
|
312 |
+
* Removed the improvement - Display sale tag, if any rule available for that product
|
313 |
+
|
314 |
= 1.6.4 - 12/06/18 =
|
315 |
* Improvement - Display table any one of variant attribute/products rule matches
|
316 |
* Improvement - Display sale tag, if any rule available for that product
|
woo-discount-rules.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Simple Discount Rules for WooCommerce.
|
6 |
* Author: Flycart Technologies LLP
|
7 |
* Author URI: https://www.flycart.org
|
8 |
-
* Version: 1.6.
|
9 |
* Slug: woo-discount-rules
|
10 |
* Text Domain: woo-discount-rules
|
11 |
* Domain Path: /i18n/languages/
|
5 |
* Description: Simple Discount Rules for WooCommerce.
|
6 |
* Author: Flycart Technologies LLP
|
7 |
* Author URI: https://www.flycart.org
|
8 |
+
* Version: 1.6.5
|
9 |
* Slug: woo-discount-rules
|
10 |
* Text Domain: woo-discount-rules
|
11 |
* Domain Path: /i18n/languages/
|