This file contains hidden or 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/shopkeeper-ecommerce-wp-theme-for-woocommerce/9553045 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'shokeeper_wcst_modify_positions', 99); | |
function shokeeper_wcst_modify_positions() { | |
if (class_exists('WCST_Core')) { | |
$wcst_plugin_instance = WCST_Core::get_instance(); |
This file contains hidden or 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/uncode-creative-multiuse-wordpress-theme/13373220 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'uncode_wcst_modify_positions', 99); | |
if (!function_exists('uncode_wcst_modify_positions')) { | |
function uncode_wcst_modify_positions() { | |
if (class_exists('WCST_Core')) { |
This file contains hidden or 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
/** | |
* Customize and show countdown timer on grid | |
*/ | |
add_filter("wcct_add_timer_to_grid", "custom_wcct_add_timer_to_grid"); | |
function custom_wcct_add_timer_to_grid($config) { | |
$config = array( | |
'skin' => 'round_fill', // you can use following values (default | square_ghost | square_fill | round_ghost | round_fill | highlight_1) | |
'bg_color' => '#666667', | |
'label_color' => '#ffffff', |
This file contains hidden or 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
/** | |
* Customize and show inventory bar on grid | |
*/ | |
add_filter("wcct_add_bar_to_grid", "custom_wcct_add_bar_to_grid"); | |
function custom_wcct_add_bar_to_grid($config) | |
{ | |
$config = array( | |
'skin' => 'stripe_animate', | |
'edge' => 'smooth', |
This file contains hidden or 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 'shop loop' position | |
* Finale WooCommerce Sales Trigger | |
* https://xlplugins.com/finale-woocommerce-sales-countdown-timer-discount-plugin/ | |
*/ | |
add_action('wp', 'theme_slug_wcct_modify_positions', 99); | |
if (!function_exists('theme_slug_wcct_modify_positions')) { | |
function theme_slug_wcct_modify_positions() { | |
if (function_exists('WCCT_Core')) { |
This file contains hidden or 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 | |
/** | |
* Change positions against woocommerce native positions. | |
* Code to be placed inside child theme's functions.php file | |
*/ | |
add_action('woocommerce_before_template_part', 'wcst_theme_helper_float_before_template_part', 99); | |
function wcst_theme_helper_float_before_template_part($template_name = '', $template_path = '', $located = '', $args = array()) { | |
This file contains hidden or 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 hidden or 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 your custom order statuses to sales snippet or count triggers | |
*/ | |
if ( ! function_exists( 'theme_modify_wcst_custom_wc_order_states' ) ) { | |
add_filter( 'wcst_modify_wc_order_states', 'theme_modify_wcst_custom_wc_order_states', 90 ); | |
/** | |
* Hooked into `wcst_modify_wc_order_states` |
This file contains hidden or 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 hidden or 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')) { |