Hello!
I’ve implemented a Shopify cart transform function where if a customer has “prime” tag, the price of a product is reduced by 50% (e.g., from 10 to 5).
The function works fine.
but when creating an order, the backend is getting only a reduced price (e.g., 5). but no total_discount, the total_discount field inside the line items is showing as nil.
Shouldn’t it display the discount amount (in this case, 5) within the total_discount field for the line items?
Does anyone face a similar situation?