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.
If you want to print your code log in the custom log file, then use the below mention code to print the log in the custom log file. $StringVar = 'Magemonkeys'; $ArrayVar = array('Magemonkeys', 'Abbacus'); $writer = new ZendLogWriterStream(BP . '/var/log/CustomFileName.log'); $logger…
READ MOREMagento is not any new or naive technology. It's an advanced level technology that has complex to code, but a powerful result-oriented eCommerce solution. If you're having an eCommerce store with Magento 1 or 2, then it's always recommended to get your…
READ MOREeCommerce world is changing day-by-day. eStores are adopting the latest trends & technologies. Some of your competitors are having an edge over your business because they are leveraging technological benefits & improving the performance of their stores. Performance optimization is nothing but…
READ MOREDisplay the new message and clear the previous messages on every page using Message Manager. Create the event.xml in your module and add the below code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="layout_render_before"> <observer name="success_message" instance="VendorModuleObserverMessageObserver" shared="false" /> </event> </config> Create the…
READ MOREUse Factory, MagentoNewsletterModelSubscriberFactory Using isSubscribed() method. You can check the user is a subscriber to the newsletter or not. <?php namespace MagemonkeySubscriberModel; use MagentoFrameworkExceptionLocalizedException; use MagentoNewsletterModelSubscriberFactory; class IsSubscribed { /** * @var SubscriberFactory */ private $subscriberFactory; /** * @param SubscriberFactory $subscriberFactory */…
READ MOREThe newsletter subscription module in Magento has only one field (email) by default. If you want to add an extra field to the form (like the name), perform the following steps: Magemonkeys/Newsletter/registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Magemonkeys_Newsletter', __DIR__ ); Magemonkeys/Newsletter/etc/module.xml <?xml version="1.0"?> <config…
READ MORELet's say if you need to get all the products through the collection with out-of-stock products and send it in JSON format then what will you do? Step 1: Create a front controller GetProducts.php file <?php namespace MagemonkeysCustomInventoryControllerInventory; use MagentoFrameworkAppActionContext; use MagemonkeysCustomInventoryHelperData;…
READ MOREYour eCommerce site is the main key to your business. It plays a major role in business revenue. In fact, many businesses have completely shifted from bricks to clicks model. So we can say that the eCommerce site is the most sensitive element in…
READ MOREYou can check the email id for a specific website by using the below code. <?php namespace VendorModuelModel; use MagentoCustomerApiAccountManagementInterface; use MagentoStoreModelStoreManagerInterface; class EmailExist { /** * @var AccountManagementInterface */ protected $customerManagement; /** * @var StoreManagerInterface */ protected $storeManager; /** * Data…
READ MOREYou may have face this problem where sometimes you failed to show special character(s) in mini-cart in product name. But what shall one do when he/she has to show special characters like single quote, double quote in product title in minicart. Well,…
READ MOREThe commercial vehicle components and spare parts industry has undergone...
The automotive aftermarket industry has undergone a massive transformation over...
The modern digital landscape has transformed how manufacturers, distributors, and...
The automotive parts and component industry has undergone a massive...
Understanding the Digital Transformation of the Industrial Supply Market The...