Shipping Line Discounted Price

Glenn08
New Member
1 0 0

Hi, I would like to know when will a discounted_price (under shipping lines) has value and has'nt? Because based on my understanding it will have a value when a shipping discount is applied. But checking on our dev store. There are orders that has free shipping. But the discounted_price is zero. And I also check a order that does'nt have free shipping but its discounted_price has value. Im a bit confused. w/o Free Shippingw/o Free Shipping

 

w/ Free Shippingw/ Free Shipping

 

 

0 Likes
GrahamS
Shopify Staff
Shopify Staff
65 11 6

Hey @Glenn08 !

Regarding: "There are orders that has free shipping. But the discounted_price is zero" - That is the expected outcome. The discounted_price parameter reflects the cost of shipping post-discount application, so it would return $0 because that is the cost of shipping after code application. If the default shipping cost is $97 and no discounts have been applied, then discounted_price would return the whole value without any deductions.

Graham S | API Support @ 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 Shopify.dev or the Shopify Web Design and Development Blog

0 Likes