Autocomplete jQuery using tokeninput
Tokeninput is a jQuery plugin that allows users to select multiple items from a predefined list or database via AJAX.Using autocompletion as they type to find each item.You may have seen a similar type of text entry when filling in the. Features Intuitive UI for selecting multiple items from a large list Easy to skin/style […]
Integrate Magepack with Magento/Adobe commerce
Integrate Magepack with Magento/Adobe Commerce to increase the speed of the store front.Advanced JavaScript bundling to provide the fast performance as never before. Advanced JavaScript bundling Advanced JavaScript bundling using Magepack is easy to integrate. Steps Github url : https://github.com/magesuite/magepack 1. install Node node -v 16.15.1 2. install magepack module Command: php composer require creativestyle/magesuite-magepack […]
Get app passwords from Gmail
Today we explain how to get app passwords from Gmail or generate app passwords in Gmail for your connected email clients.An app password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account.App passwords can only be used with accounts that have 2-Step Verification turned on. Create […]
Inventory Management System in PHP
Inventory is the goods or materials a business intends to sell to customers or users for making a profit. An inventory management system is the process by which you track your goods throughout your entire supply chain, from purchasing to production to end sales. The goal of inventory management system is to have the right […]
Steps for the upgrade Magento2 version
Today we share steps for the upgrade Magento2 version.It is an easy way to upgrade your Magento version.In this example, we will upgrade the Magento version from 2.4.0 to 2.4.2 Please follow these steps Step 1. Download ver:2.4.2 composer.json by following command in other temp directory. composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.2 . Step 2. Take backup […]
Magento 2 Redirect disabled product to other URL
Magento 2 Redirect Disabled Product To Other URL, You can achieve this functionality using override Magento\Cms\Controller\Noroute\Index controller Create di.xml filePath: app/code/VenderName/ModuleName/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”Magento\Cms\Controller\Noroute\Index” type=”VenderName\ModuleName\Rewrite\Controller\Noroute\Index” /> </config> Create Index.php filePath: app/code/VenderName/ModuleName/Rewrite/Controller/Noroute/Index.php <?php /** * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace VenderName\ModuleName\Rewrite\Controller\Noroute; […]
Magento 2 allow Country on checkout
today we discuss about the, Magento 2 allow Country on checkout.This article helps to store owners to restrict countries to place order by the customer is restricted in some countries.Display only the countries you ship to on checkout in magento2. Method 1 Log in to the Magento admin panel and navigate to Stores > Configuration […]
Magento 2 customer data in CSV using script
Magento 2 customer data in CSV using root script, or get customer data in a CSV file from MySQL Create “myscript.php” file on Magento root or pub directory and add below code.Execute this file from terminal like “php myscript.php“ or hit the URL like “example.com/myscript.php“You can find the CSV file in pub/media/ folder. use Magento\Framework\App\Bootstrap; […]
Image preview before upload using jQuery
Image preview before upload using jQuery. Show the image before uploading it on the server using jQuery, This article explains how to preview an image before uploading. Allowed File Extensions while image upload using “allowedFileExtensions“ HTML code <input type=”file” class=”form-control” id=”file_attache” placeholder=”file attache” name=”file_attache”> jQuery code $(“#file_attache”).fileinput({ overwriteInitial: true, maxFileSize: 2500, showClose: false, showCaption: false, […]
Magento 2 save data in custom table
Today we discuss the Magento 2 save data in the custom table. How to insert data into a custom table using the model.And update data into database by sending id of the data.You can send data clicking on button and reload the page.If you do not want refresh or reload the page during the insert […]
Magento 2 create category attribute using upgradeData
Today we discuss about the Magento 2 create category attribute using upgradeData using the script. We are creating a select box category attribute using the below steps. Increase the module version from 1.0.0 to 1.0.1 in module.xml filePath: app/code/Custom/CategoryAttribute/etc/module.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Custom_CategoryAttribute” setup_version=”1.0.1″> <sequence> <module name=”Magento_Catalog”/> </sequence> </module> </config> Create […]
Print HTML Content using JavaScript
Today we discuss about the Print HTML Content using JavaScript.To print the content page or page with dynamic html.The document.write() method is used to write data to the tag of your HTML document. JavaScript code example var mywindow = window.open(”, ‘Printing example’, ‘height=400,width=600’); mywindow.document.write(‘<html><head><title>Print demo</title>’); /*optional stylesheet*/ //mywindow.document.write(‘<link rel=”stylesheet” href=”main.css” type=”text/css” />’); mywindow.document.write(‘</head><body>’); mywindow.document.write(‘<div>I am […]