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 | |
/** | |
** Allow Best seller badge to show wihout processing orders | |
**/ | |
add_filter('wcst_show_static_best_seller_badge', 'wcst_static_best_seller_badge',10,3); | |
/** | |
* Hooked intp 'wcst_show_static_best_seller_badge' | |
* Decide whether to show static content or not by checking merge tagv precense in the content |
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 | |
/** | |
* Show number of people viewing this product by modifying existing trigger content | |
*/ | |
add_filter('wcst_guarantee_display_content', 'wcst_guarantee_display_content_modify', 10, 5); | |
/** | |
* Modifies and HTML for a existing trigger to show number of people viewing this product | |
* @hooked over `wcst_guarantee_display_content` | |
* @param string $gurantee_html Existing Guarantee HTML |
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 | |
add_action('wp', 'wcst_theme_helper_wowmall', 99); | |
function wcst_theme_helper_wowmall() { | |
$wcst_core = WCST_Core::get_instance(); | |
remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_add_cart'), 39.2); | |
add_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_add_cart'), 39); | |
remove_action( 'woocommerce_single_product_summary', 'wowmall_wc_single_btns_wrapper_end', 39 ); | |
add_action( 'woocommerce_single_product_summary', 'wowmall_wc_single_btns_wrapper_end', 38 ); |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce shop loop native position | |
* Theme: X Store https://themeforest.net/item/xstore-responsive-woocommerce-theme/15780546 | |
* Plugin: Finale - WooCommerce Sales Countdown Timer & Discount Plugin | |
*/ | |
add_action('wp', 'wcct_xstore_modify_positions', 99); | |
if (!function_exists('wcct_xstore_modify_positions')) { |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/eva-responsive-woocommerce-theme/19331563 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'eva_wcst_modify_positions', 90); | |
if (!function_exists('eva_wcst_modify_positions')) { |
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
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'betheme_wcst_modify_positions', 90); | |
if (!function_exists('betheme_wcst_modify_positions')) { | |
function betheme_wcst_modify_positions() { | |
if (class_exists('WCST_Core')) { |
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 | |
/** | |
* Adding hook to hide coupon's success message by finale plugin | |
*/ | |
add_action('plugins_loaded', 'wcct_hide_coupon_success',2); | |
if(!function_exists('wcct_hide_coupon_success')) { | |
/** | |
* hooked over `plugins_loaded` |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: https://themeforest.net/item/merchandiser-ecommerce-wordpress-theme-for-woocommerce/15791151 | |
* Finale: WooCommerce Sales Countdown Timer & Discount Plugin | |
*/ | |
add_action('wp', 'merchandiser_wcct_modify_positions', 90); | |
if (!function_exists('merchandiser_wcct_modify_positions')) { |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Theme: Oxygen https://themeforest.net/item/oxygen-woocommerce-wordpress-theme/7851484 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'oxygen_wcst_modify_positions', 90); | |
if (!function_exists('oxygen_wcst_modify_positions')) { |
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 | |
/** | |
* Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions | |
* Site: nutrabay.com | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'theme_wcst_modify_positions', 90); | |
if (!function_exists('theme_wcst_modify_positions')) { | |
function theme_wcst_modify_positions() { |