Posts

How to add product attribute value in minicart magento 2

How to add product attribute value in minicart magento 2? First need to do is create a plugin so add plugin at di.xml at first. di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nonamespaceschemalocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Checkout\CustomerData\DefaultItem"> <plugin disabled="false" name="AddAttPlug" sortorder="10" type="Your\Module\Plugin\DefaultItem"> </plugin></type> </config> Now create a plugin class and below line of code.   Default.php <?php namespace Your\Module\Plugin; use Magento\Quote\Model\Quote\Item; class DefaultItem { public function aroundGetItemData($subject, \Closure $proceed, Item $item) { $data = $proceed($item); $product = $item->getProduct(); $atts = [ "product_weight" => $product->ge...

How to create a order from quote?

How to create a order from quote in magento 2? Find full answer below. We will load one product than we will create a quote for it and than we will convert that quote into an order. <?php use Magento\Framework\App\Action\Action; class OrderCreateTest extends Action {     protected $_quoteFactory;     protected $_orderModel;     protected $_productModel;     protected $_customerRepository;     protected $_quoteManagementModel;          public function __construct(\Magento\Quote\Model\QuoteFactory $quoteFactory, \Magento\Sales\Model\Order $orderModel, \Magento\Catalog\Model\Product $productModel, \Magento\Framework\App\Action\Context $context, \Magento\Quote\Model\QuoteManagement $quoteManagementModel, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository)     {         $this->_quoteFactory         = $...

Understand Magento type node and how to use for own benefits.

Hey folks, Today we will going to learn fundamental of < type /> node which used in di.xml. So let's start without time waste let's talk about <type />  node. To understand this concept we will use an example for that we will create sample module. So let's do this together.  If you already know how to create a module you can skip this intro. To create a module there is two files are required. registration.php module.xml So let's create a registration.php path :  app/code/Extrembler/Base \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Extrembler_Base', __DIR__ ); Second we need to create module.xml path : app/code/Extrembler/Base/etc <?xml version="1.0"?> <!-- /** * @category Extrembler * @package Extrembler_Base * @author Extrembler <gaurangpadhiyar1993@gmail.com> */ --> <config xmlns:xsi="http://www...

Magento Currency Symbol

Image
Magento Currency Symbol Do want to change look of currency or fronted display symbol or do not want a symbol at all? If yes, you landed at correct place to while searching for a solutions. We are bringing a extension solution for you guys so without help of developer you can change look of currency symbol. Extension which we have developed. Currency Symbol - By Extrembler Features Easily enable/disable functionality Simply set currency symbol from pre-defined options Multi-store compatibility Enable/disable module store wise Change behaviours of currency symbol store wise Remove Currency Symbol using option no symbol Comes With Free Lifetime Updates 100% Open Source Multi-Store Supported Support If you have any questions about this extension, you can  Contact Us . If like efforts, Please share, comment and subscribe for future posts and inspire more.

Magento 2.3.3 Realease Notes - Features and Enhancement

Image
New release include 170 functional fixed by Magento team and community contributors in core product. A major change regarding security enhancement made in Magento 2.3.3. As per official statement from Magento release notes 75 security enhancements made. There are several changes so let's categories them and go on trip of Magento 2.3.3. Security enhancements Platform upgrades Infrastructure improvements Inventory Management enhancements Vendor-developed extension enhancements Magento Shipping Performance boosts Merchant tool enhancements GraphQL PWA Studio Google Shopping ads Channel Backward-incompatible Changes Security enhancements Improvements in core payment methods which are now compliant with PSD2 regulations. PSD = Payment Services Directive. A major PSD2 change is in Braintree payment. Now Magento version 2.3.3 can verfiy Braintree payment transactions by native Braintree 3D Secure 2.0 service. Authorize.net introduced "c...

Magento 2.3.2 - Export Error

Image
Have you just upgraded to Magento version 2.3.2? Have an error on export? Than you are at right place for a solution. So without wasting time , let's roll the camera. Error: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : CData section too big found in vendor/magento/framework/View/TemplateEngine/Xhtml/Template.php on line 60 Preconditions (*) Magento version 2.3.2 Too big files and number of files more (around > 20000) Steps to reproduce (*) Login Admin panel Go to System -> Export Expected result (*) 1) 2) Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : CData section too big found in vendor/magento/framework/View/TemplateEngine/Xhtml/Template.php on line 60 You have error as described than below solution for your store. 1)  export_grid.xml      vendor/magento/module-import-export/view/adminhtml/ui_component/export_grid.xml <?xml versi...

Magento 2 Import Scripts

Magento 2 Import Scripts Simple and faster way to import data scripts for magento 2. https://github.com/Extrembler/Magento-2-Import-Scripts Keep your self updated by subscribing our website so whenever we update with new import scripts we can inform you. #import #importmagento2 #magento2 #simpleimport  If like efforts, Please share, comment and subscribe for future posts and inspire more.