Skip to content

addtocart

Auto Added by WPeMatico

Get Custom Data in the observer to set in the quote

This is my custom controller : <?php namespace VednorModuleControllerCustomer; use MagentoFrameworkControllerResultFactory; use PsrLogLoggerInterface; class Addtocart extends MagentoFrameworkAppActionAction { protected $logger; /** * @var MagentoCheckoutModelCart */ protected $cart; /** * @var MagentoCatalogModelProduct */ protected $product; /** * @var MagentoFrameworkObjectManagerInterface */ protected… Read More »Get Custom Data in the observer to set in the quote

Set Custom Field Data in the Order

I created a observer : <?php namespace VendorModuleObserver; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MagentoFrameworkAppRequestInterface; use PsrLogLoggerInterface; class SaveRefToQuote implements ObserverInterface { protected $logger; protected $request; /** * Constructor * * @param LoggerInterface $logger * @param RequestInterface $request */ public function… Read More »Set Custom Field Data in the Order