Please follow below steps to assign order item value from the quote item.
step 1) Create a di.xml under app/code/Vendor/Module/etc/di.xml
1 2 3 4 5 6 |
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Quote\Model\Quote\Item\ToOrderItem"> <plugin name="vendor_mymodule_sales_quote_item_order_item" type="Vendor\Module\Plugin\SetOrderItemValue" /> </type> </config> |
step 2) Create the plugin file app/code/Vendor/Module/Plugin/SetOrderItemValue.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php namespace Vendor\Module\Plugin; use Magento\Framework\Serialize\SerializerInterface; class SetOrderItemValue { public function aroundConvert(\Magento\Quote\Model\Quote\Item\ToOrderItem $subject, callable $proceed, $quoteItem, $data) { $orderItem = $proceed($quoteItem, $data); $quotecustomattribute = $quoteItem->getMyCustomAttribite(); $orderItem->setMyCustomAttribite($quotecustomattribute); return $orderItem; } } |
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-62845fa5ba4a2374586867/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...