Category

Magento

Category

Changing from the database is the best way to update the database even if you using multiple stores also. you can change the base URL just by using 2 commands. Step 1: Open your Phpmyadmin and login to using database user name and password. and if you forget what is your credentials you can check from .env file which is located in your folder app/etc/env.php file. For example: ‘dbname’ => ‘magento’, ‘username’ => ‘root’, ‘password’…

A valid $fileId[tmp_name] is expected” In Magento 2.3.6 Here I am using localhost, for the server you still use this path to the File directory. Step 2: Open Uploader.php. Open Uploader php filePlease note that this is the source directory of Magento 2, to edit it you must grant administrator privileges. Step 3: Scroll down to line 589. Comment line 589Replace $this->validateFileId($fileId); to //$this->validateFileId($fileId); Step 4: Save change. Run upgrade and compile command php -d…

MageSuite MagepackSetup and install Magepack for Magento 2.4.x Install node sudo apt update sudo apt install nodejs node -v sudo apt install npm magepack bundle magepack generate –cms-url=”https://websiteurl.com” –category-url=”hhttps://websiteurl.com/ta-cable-tie-mounts.html” –product-url=”https://websiteurl.com/662908-662908.html” sudo chmod -R 0777 var/ generated/ pub/static magepack bundle magepack generate –cms-url=”https://websiteurl.com” –category-url=”https://websiteurl.com/ta-cable-tie-mounts.html” –product-url=”https://websiteurl.com/cable-tie-mounts-766086b.html” bin/magento cache:clean php bin/magento indexer:reindex php bin/magento cache:clean Reference: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04 Reference: https://github.com/magesuite/magepackReference: https://developers.google.com/speed/pagespeed/module

You can check below Js code <script type=”text/javascript”> require([’jquery’], function($) { $(document).ready(function() { var ckbox = $(‘#checkout-order-approval-permission’); $(‘#checkout-order-approval-permission’).on(‘click’, function() { if (ckbox.is(‘:checked’)) { $(“#checkout-order-create-permission”).prop(‘required’, true); } else { $(‘#checkout-order-create-permission’).removeAttr(‘required’); } }); }); }); </script>

Example: After phasing this I searched multiple solution but finally this is working in my project. I saw the image has data-amsrc attribute. it is added by amasty “Google Page Speed Optimizer” module. There is config in admin to ignore images contain certain classes. Solution 1) in my case, this module also added style display:block to all images in my site. I change config Lazy Load Script => Native JavaScript Lazy Script fixed both issues…

https://www.youtube.com/watch?v=iojTx6u66Cs To enable Submission to Robots.txt in Magento 2, you need to follow these steps: Log in to your Admin Panel.Go to Stores > Settings > Configuration and choose XML Sitemap in the Catalog tab.Open the Search Engine Submission Settings tab and set Yes in the Enable Submission to Robots.txt dropdown.Click on the Save Conlig button. Robots.txt configuration in Magento 2Step 1Go to Content > Design> Configuration. Step 2In the opened grid, find the line…

If you are using Magento and getting ‘No alive nodes found in your cluster’ error while reindexing Please make sure you have install Elastic Search into your system. if you are using mac or ubuntu then please run following command sudo apt-get install elasticsearch Then Goto Admin -> Store -> configuration -> catalog -> catalog then configure as follow

Custom Mysql Query $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of object manager $resource = $objectManager->get(‘Magento\Framework\App\ResourceConnection’); $connection = $resource->getConnection(); $tableName = $resource->getTableName(’employee’); //gives table name with prefix //Select Data from table $sql = “Select * FROM ” . $tableName; $result = $connection->fetchAll($sql); // gives associated array, table fields as key in array. //Delete Data from table $sql = “Delete FROM ” . $tableName.” Where emp_id = 10″; $connection->query($sql); //Insert Data into table $sql = “Insert Into “…