970b4319 by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 4fc316cf
......@@ -423,4 +423,24 @@ function display_custom_meta_data_in_backend_orders( $order ){
}
add_action('wp_ajax_ajax_apply_coupon', 'ajax_apply_coupon');
add_action('wp_ajax_nopriv_ajax_apply_coupon', 'ajax_apply_coupon');
\ No newline at end of file
add_action('wp_ajax_nopriv_ajax_apply_coupon', 'ajax_apply_coupon');
/**
* Add a standard $ value surcharge to all transactions in cart / checkout
*/
add_action( 'woocommerce_cart_calculate_fees','wc_add_surcharge' );
function wc_add_surcharge() {
global $woocommerce;
if ( is_admin() && ! defined( 'DOING_AJAX' ) )
return;
$county = array('CAN');
// change the $fee to set the surcharge to a value to suit
$fee = 1.00;
$woocommerce->cart->add_fee( 'Processing Fees', $fee, true, 'standard' );
}
\ No newline at end of file
......