Is there any way to separate out the shipping costs from getCartItem(1) ?
We offer free delivery on orders over £50. In the website header, we show the customer the total value of their cart, along with the amount they need to spend to qualify for free delivery.
The issue at the moment is that this calculation uses getCartItem(1) to work out the current cart total. Which includes the shipping costs. So if a customer's purchases including shipping amount to £52, they are told that they qualify for free delivery, when in fact that cost is including the shipping charge.
Ideally I want to be able to display to them the cart total minus the shipping costs.
Is there either another call for the total of the shopping cart with the shipping costs subtracted, or a call that will let me get the shipping costs as a separate variable which can be subtracted from the total?
We offer free delivery on orders over £50. In the website header, we show the customer the total value of their cart, along with the amount they need to spend to qualify for free delivery.
The issue at the moment is that this calculation uses getCartItem(1) to work out the current cart total. Which includes the shipping costs. So if a customer's purchases including shipping amount to £52, they are told that they qualify for free delivery, when in fact that cost is including the shipping charge.
Ideally I want to be able to display to them the cart total minus the shipping costs.
Is there either another call for the total of the shopping cart with the shipping costs subtracted, or a call that will let me get the shipping costs as a separate variable which can be subtracted from the total?
Comment