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
function ezep_cart_order_total_action(WC_Cart $cart){ | |
global $woocommerce, $post; | |
$order = new WC_Order($post->ID); | |
$order_items = $woocommerce->cart->get_cart(); | |
$discount = 0; | |
$discount_name = "Descuento por pago en efectivo"; | |
$payment_method = ""; | |
$payment_method_desired = "cod"; |