Commit b4f86ab2 by Pham Huy

update checkout fee

parent c96ba560
...@@ -5,7 +5,7 @@ class WPS_EXT_CST_Frontend ...@@ -5,7 +5,7 @@ class WPS_EXT_CST_Frontend
{ {
$ext_cst_status = (get_option('ext_cst_status')) ? get_option('ext_cst_status') : 'enable'; $ext_cst_status = (get_option('ext_cst_status')) ? get_option('ext_cst_status') : 'enable';
if($ext_cst_status == 'enable' && !is_admin()){ if($ext_cst_status == 'enable' && !is_admin()){
add_action( 'woocommerce_after_order_notes', array($this,'add_option_to_checkout' )); add_action( 'woocommerce_before_checkout_billing_form', array($this,'add_option_to_checkout' ));
add_action( 'wp_footer', array($this,'add_script_on_checkout' )); add_action( 'wp_footer', array($this,'add_script_on_checkout' ));
add_action( 'woocommerce_cart_calculate_fees', array($this,'calculate_cost' )); add_action( 'woocommerce_cart_calculate_fees', array($this,'calculate_cost' ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment