Hello.
I need a variable that will give back the order summary without tax, shipping price and tax for shipping. For example here it would be 428.00-80.03=347.97. How to define it in code?
Thanks in advance.
Hello.
I need a variable that will give back the order summary without tax, shipping price and tax for shipping. For example here it would be 428.00-80.03=347.97. How to define it in code?
Thanks in advance.
Hi, @asd123 .
Thanks for your question.
What you are looking to define here is referred to as the order.subtotal_price in code.
This value returns the subtotal price of all the items in the order after both line-item and cart discounts have been applied. The subtotal doesn’t include taxes (unless taxes are included in the prices), shipping costs, or tips.
The Shopify Dev Docs have well documented objects and liquid references that you can use to access or pull information via code.
I trust you will find this information helpful, but let me know if I have missed or misunderstood anything and I’d be glad to chat further.
Warm regards,
I’m facing the same issue, but this solution doesn’t work because VAT is included in the prices.
Is there a variable that would return the subtotal without taxes, shipping costs, discounts and tips?
Hi, @jonni1 !
Our dev docs have been updated since my last reply, so I think that the variable
Order.subtotalPrice should work for you. This is the price of the order before shipping and taxes.
The equivalent to the variable in my original reply would be Order.currentSubtotalPrice.
Let me know if that works,