This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function woo_discount_rules_run_product_price_strikeout_method($run_strikeout, $product){ | |
if(class_exists('WCS_ATT_Product_Schemes')){ | |
if (WCS_ATT_Product_Schemes::has_subscription_schemes( $product ) ) { | |
return false; | |
} | |
} | |
return $run_strikeout; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Email Styles | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/emails/email-styles.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_has_price_override_method')){ | |
function woo_discount_rules_has_price_override_method($hasPriceOverride, $product){ | |
return true; | |
} | |
} | |
add_filter('woo_discount_rules_has_price_override', 'woo_discount_rules_has_price_override_method', 10, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_apply_style_for_zero_price_coupon_method')){ | |
function woo_discount_rules_apply_style_for_zero_price_coupon_method($style, $coupon){ | |
//Return the css as required based on $coupon | |
} | |
} | |
add_filter('woo_discount_rules_apply_style_for_zero_price_coupon', 'woo_discount_rules_apply_style_for_zero_price_coupon_method', 10, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @return boolean | |
* */ | |
function woo_discount_rules_rule_matches_to_display_in_table_method($matches, $product, $rule){ | |
//Check condition as required and return boolean value true/false | |
} | |
add_filter('woo_discount_rules_rule_matches_to_display_in_table', 'woo_discount_rules_rule_matches_to_display_in_table_method', 10, 3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_skip_discount_for_free_product_method')){ | |
function woo_discount_rules_skip_discount_for_free_product_method($skip_free_product, $cart_item){ | |
$_product = $cart_item['data']; | |
//Example | |
if(!empty($_product)){ | |
$price = $_product->get_price(); | |
if($price == 0){ | |
if(!empty($cart_item['thwepo_options'])) return true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_remove_event_woocommerce_before_calculate_totals_method')){ | |
function woo_discount_rules_remove_event_woocommerce_before_calculate_totals_method($remove_event){ | |
return true; | |
} | |
} | |
add_filter('woo_discount_rules_remove_event_woocommerce_before_calculate_totals', 'woo_discount_rules_remove_event_woocommerce_before_calculate_totals_method'); | |
if(!function_exists('woo_discount_rules_has_price_override_method')){ | |
function woo_discount_rules_has_price_override_method($hasPriceOverride, $product){ | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_price_rule_check_in_all_selected_attributes_method')){ | |
/** | |
* Rule based on all attributes | |
* | |
* @param boolean $in_all_attribute | |
* @param int $rule_order_id | |
* @return boolean | |
* */ | |
function woo_discount_rules_price_rule_check_in_all_selected_attributes_method($in_all_attribute, $rule_order_id){ | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('woo_discount_rules_run_variation_strikeout_through_ajax_method')){ | |
function woo_discount_rules_run_variation_strikeout_through_ajax_method($do_ajax){ | |
return false; | |
} | |
} | |
add_filter('woo_discount_rules_run_variation_strikeout_through_ajax', 'woo_discount_rules_run_variation_strikeout_through_ajax_method'); | |
if(!function_exists('woo_discount_rules_run_variation_strike_out_with_ajax_method')){ | |
/** |
OlderNewer