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
/** | |
* @package Gravity XL Live Html Preview | |
* @version 1.0 | |
* @name gravity -gravity_xl-live-html-preview | |
* @author Gravity XL | |
*/ | |
/** | |
* Make html field show live calculations and totals embedded | |
* | |
*/ |
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 below code in theme functions.php file to change days, hrs, mins seconds like hard text | |
**/ | |
add_filter('wcst_modify_hard_values', 'wcst_modify_hard_values', 10, 1); | |
function wcst_modify_hard_values($array) { | |
$array['others'] = 'andre'; | |
$array['other'] = 'annen'; | |
$array['from'] = 'fra '; | |
$array['in'] = 'i'; | |
$array['&'] = '& '; |
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 to alter woocommerce native positions | |
* | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
if (class_exists('WCST_Core')) { | |
$wcst_plugin_instance = WCST_Core::get_instance(); | |
// removing all positions based action hooks | |
remove_action('woocommerce_single_product_summary', array($wcst_plugin_instance, 'wcst_position_above_title'), 2.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
/** | |
* Modify best seller badge HTML contact to reorder Elements | |
*/ | |
add_filter('wcst_best_seller_badge_display_content', 'wcst_best_seller_badge_display_content_modify', 10, 6); | |
/** | |
* @hooked into `wcst_best_seller_badge_display_content` | |
* Reorder HTML elements for Xl sales triggers's best seller badge |
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/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 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 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 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 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 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/float-minimalist-ecommerce-theme/19868208 | |
* XL WooCommerce Sales Trigger Class Instance | |
*/ | |
add_action('wp', 'float_wcct_modify_positions', 99); | |
function float_wcct_modify_positions() { | |
if (class_exists('WCST_Core')) { |
OlderNewer