Model
ToOrderItem
Magento\Quote\Model\Quote\Item\ToOrderItem
What it does
This class converts quote items (shopping cart items) into order items during the checkout process when a quote is transformed into an actual order.
Developers use this when they need to customize how product data, pricing, discounts, and options are transferred from the cart to the order, such as adding custom attributes or modifying the conversion logic during order placement.
Public Methods
- convert()