What is a variable for total order summary without taxes and shipping price?

asd123
Tourist
11 0 3

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?

luxuria_0-1632126239885.png

Thanks in advance.

0 Likes
Olivia
Shopify Staff
Shopify Staff
729 71 133

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,

Olivia | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes