Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
thewildsalmonco-com
this is my store
I'm used order api.
but Discount not applied properly.
https://i.imgur.com/tSmJyrP.png
https://i.imgur.com/xc6bSrv.png
https://i.imgur.com/igm9uwy.png
Pass on gift discount but it's not applicable properly.
i'm use shopify order api
and it's not proper work.
https://i.imgur.com/igm9uwy.png
This api pass data
but discount amount is $77 means it's line_item amount
I was pass line_item = 77 shipping = 99 + 100 = 199 gift certificate discount (with shipping_line type) = 100
but shopify consider line_item = 0 shipping = 199 discount = -77
My data pass on order api:
Array ( [browser_ip] => 98.202.208.166 [billing_address] => Array ( [company] => [first_name] => Janet [last_name] => Nelson [address1] => 3581 E COVE POINT DR [address2] => [city] => MILLCREEK [province] => Utah [zip] => 84109 [country] => United States [phone] => 8015609044 ) [shipping_address] => Array ( [company] => [first_name] => Janet [last_name] => Nelson [address1] => 3581 E COVE POINT DR [address2] => [city] => MILLCREEK [province] => Utah [zip] => 84109 [country] => United States [phone] => 8015609044 ) [shipping_lines] => Array ( [0] => Array ( [title] => 2 day Fedex Express (up to 23 lbs) [price] => 199 ) ) [line_items] => Array ( [0] => Array ( [variant_id] => 40452404445350 [quantity] => 4 [price] => 11.0000 ) [1] => Array ( [variant_id] => 40452491706534 [quantity] => 3 [price] => 11.0000 ) ) [discount_codes] => Array ( [0] => Array ( [code] => Gift certificates [amount] => 100.0000 [type] => fixed_amount ) ) [discount_applications] => Array ( [0] => Array ( [type] => discount_code [code] => Gift certificates [value] => 100.0000 [value_type] => fixed_amount [allocation_method] => one [target_selection] => explicit [target_type] => shipping_line ) ) [customer] => Array ( [id] => 5428584382630 ) [processing_method] => Credit Card [payment_gateway_names] => Array ( [0] => Credit Card ) [name] => #12221 [note] => #12221 [note_attributes] => Array ( [0] => Array ( [name] => buying_club_shipping [value] => Ship Order 2020 ) [1] => Array ( [name] => payment_gateway_names [value] => Credit Card ) [2] => Array ( [name] => payment_provider_id [value] => 62754574234 ) ) [subtotal_price] => 77 [processed_at] => 2020-12-26 07:00:52 AM -0130 [status] => closed [fulfillment_status] => fulfilled [financial_status] => paid )
User | RANK |
---|---|
6 | |
5 | |
5 | |
4 | |
4 |