We sacrifice by not doing any other technology, so that you get the best of Magento.
We sacrifice by not doing any other technology, so that you get the best of Magento.
Some times we need to clear cache programmatically. You can do that by using the below code. <?php namespace MagemonkeysCacheBlock; class CacheClear extends MagentoFrameworkViewElementTemplate { public function __construct( MagentoFrameworkViewElementTemplateContext $context, MagentoFrameworkAppCacheFrontendPool $cacheFrontendPool, MagentoFrameworkAppCacheTypeListInterface $cacheTypeList, array $data = [] ) { $this->_cacheFrontendPool =…
READ MOREIf you need to set a CSS class on change checkout stepwise then follow the below instructions. You need to override progress-bar.js from vendor/magento/module-checkout/view/frontend/web/js/view to your current theme and replace the below js function. /** * @param {Object} item * @return {*|Boolean}…
READ MOREIn Magento 2 we can customize the order grid with adding column and filter as well. n today's tutorial, we'll add telephone no as a column in order grid. The next step is to create a new module. Here are the namespace and module…
READ MOREOverride custom option file in your theme app/design/frontend/namespace/themename/Magento_Catalog/templates/product/view/options/type/select.phtml <?php @var $this Mage_Catalog_Block_Product_View_Options_Type_Select ?> <?php $_option = $this->getOption() ?> <?php if ($_option->getTitle()=="testoption1") { ?> <div id="hingebox"> <?php } ?> <?php if ($_option->getTitle()=="testoption2") { ?> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#hingebox select').on('change', function() { if (jQuery('#hingebox…
READ MOREStep 1) Create di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"> <type name="MagentoCheckoutModelDefaultConfigProvider"> <plugin name="AddAttPlug" type="[vendor][module]ModelPluginDefaultConfigProvider" /> </type> </config> Step 2) create plugin file DefaultConfigProvider.php class DefaultConfigProvider { /** *@var checkoutSession */ protected $checkoutSession; /** *Constructor * @param CheckoutSession $checkoutSession */ public function __construct(CheckoutSession…
READ MOREFor this, we need to create a plugin to place the billing address section before the payment methods. create below file at the located place and paste the below code it Path: app/code/Magemonkeys/Babeforepayment/etc/frontend/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoCheckoutBlockCheckoutLayoutProcessor"> <plugin name="move_billingaddress" type="MagemonkeysBabeforepaymentPluginBlockCheckoutLayoutProcessor"/> </type> </config> Create…
READ MOREFollow below steps to copy data from quote item to order item in Magento 2 through the below plugin 1. Create an di.xml in : /app/code/Vendor/ModuleName/etc <type name="MagentoQuoteModelQuoteItemToOrderItem"> <plugin name="custom_field_to_order_item" type="VendorModuleNamePluginQuoteCustomFieldToOrderItem"/> </type> 2. Create an CustomFieldToOrderItem.php in : app/code/Vendor/ModuleName/Plugin/Quote <?php namespace VendorModuleNamePluginQuote; class…
READ MOREFor example, when we create a mobile number customer attribute in Magento 2, we need to create a module to add new customer attribute in Magento2. Create a registration.php file to the following path app/code/Magemonkeys/CustomerAttribute/registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Magemonkeys_CustomerAttribute', __DIR__ ); Create…
READ MOREB2B eCommerce consists of transactions between businesses via a website or a mobile app, oftentimes in which the purchase decision is significantly influenced by product research, reviews, and ratings. B2B eCommerce, when compared to the B2C industry, is projected to be two…
READ MOREWe had a client who hired us for Magento upgrade service. We migrated his store to Magento 2 & perform a Magento version upgrade. As a part of the maintenance service, we did Magento 2.3 upgrade for him & upgraded the store…
READ MOREArtificial Intelligence has evolved from a competitive advantage into a...
Digital commerce has undergone a remarkable transformation over the last...
The Rise of AI in Shopify Ecommerce The ecommerce industry...
(more…)
The rapid advancement of artificial intelligence has transformed the digital...