nonce_url( 'cart', add_query_arg('remove_item', $cart_item_key, get_permalink($cart_page_id))); } /** Sees if we need a shipping address */ function ship_to_billing_address() { $ship_to_billing_address_only = get_option('apptivo_ecommerce_ship_to_billing_address_only'); if ($ship_to_billing_address_only=='yes') return true; return false; } /** looks at the totals to see if payment is actually required */ function needs_payment() { $Cart_Lines = get_baginfo()->shoppingCartLines; //Select shopping cart Lines for update cart. $CartLines = app_convertObjectToArray($Cart_Lines); if(!empty($CartLines[0])) return true; return false; } /** clears the cart/coupon data and re-calcs totals */ function clear_cache() { unset( $_SESSION['cart'] ); unset( $_SESSION['coupons'] ); } }