How I can set shipping amount for each order items. In my cart, I set for each cart item one shipment but I don't know how I can save it and which model or table saved it?


If you talking about Magento cart items shipping amount for each order items, then take a look on database table quote_shipping_rate and quote_address.

Magento2 does not save each item shipping price at any database table. On the fly means at code level depend on Shipping address/billing address total Shipping rate calculate and it sum save at quote_shipping_rate and `quote_address.

| improve this answer | |
  • so if I save shipment amount on quote item database ... can I save shipment for each items ? can you help me for coding this – gh darvishani Dec 8 '18 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.