À Propos
Location
Basé en France
Newsletter
Inscrivez-vous !
if (function_exists('is_cart') && is_cart()) { $cart_amount = 0; try{ $cart_amount = WC().cart.get_cart_contents_total();} catch(Exception $e){} $cart_amount = max($cart_amount, 1); ?> }?> if (function_exists('is_order_received_page') && is_order_received_page()) { $order_id=0; if(isset($_GET['order-received'])) { $order_id = $_GET['order-received']; } else { wc_get_order_id_by_order_key( $_GET['key'] ); } $order = wc_get_order($order_id); $order_amount = 1; if (isset($order) && $order !== FALSE){ try{$order_amount = max($order.get_total(), 1);} catch (Exception $e) {} } ?> }} ?> if (function_exists('is_shop') && is_shop()) { ?> } ?> if (function_exists('is_product') && is_product()) { ?> } ?> if (function_exists('is_order_received_page') && is_order_received_page()) { if(!isset($order_amount)) $order_amount = 1; ?> } ?> if (function_exists('is_cart') && is_cart()) { if(!isset($cart_amount)) $cart_amount = 1; ?> } ?>