Discounts posting as adjustments
-
Discounts are not being placed in the Order Post Meta field _cart_discount, but instead are being placed in the Order Items Post Meta as line items and treated as Rounding Adjustments.
Sample Meta follows:
Order Post Meta
_order_key wc_order_589e905a188f7
_order_currency USD
_prices_include_tax no
_customer_ip_address 72.132.16.161
_customer_user_agent Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36
Edge/14.14393
_customer_user 3
_created_via checkout
_cart_hash 4aa590125a5093668c9bfdabfbb6123d
_order_version 2.6.14
_order_shipping 0
_billing_first_name Joey
_billing_last_name Riso
_billing_company RisoSystems
_shipping_company RisoSystems
_shipping_address_1
_shipping_address_2
_shipping_city
_payment_method cod
_payment_method_title House Account Charge
_cart_discount 0
_cart_discount_tax 0
_order_tax 0
_order_shipping_tax 0
_order_total 262.50
deceased Rena Sappington Reynolds
delivery_date Fri 02/17/2017
delivery_time 08:00 AM
_download_permissions_granted 1
_xero_invoice_id ecebdb0a-96b9-4207-8ff4-b30a768ea084
_xero_currencyrate 1.000000
_recorded_sales yes
_ga_tracked 1
_edit_lock 1486840855:1Order Items Post Meta
T236-1A Peace Eternal Wreath line_item
» _line_subtotal 350
» _line_subtotal_tax 0
» _line_tax 0
» _line_tax_data a:2:{s:5:”total”;a:0:{}s:8:”subtotal”;a:0:{}}
» _line_total 350
» _product_id 4295
» _qty 1
» _tax_class
» _variation_id 0
Discount for House Account Charge fee
» _line_tax 0
» _line_tax_data a:1:{s:5:”total”;a:0:{}}
» _line_total -87.5
» _tax_class
Free Shipping shipping
» cost 0.00
» Items T236-1A Peace Eternal Wreath × 1
» method_id free_shipping:8
» taxes a:0:{}
The topic ‘Discounts posting as adjustments’ is closed to new replies.