Created
July 13, 2017 15:09
-
-
Save xlplugins/99efd6f4aacfe137b2fbbd0edbd3cc84 to your computer and use it in GitHub Desktop.
Change WooCommerce single product positions in WOWMALL theme for XL WooCommerce Sales Trigger Plugin
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 ); | |
remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_price'), 17.2); | |
add_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_price'), 27); | |
remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_review'), 11); | |
add_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_review'), 27); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment