How to change a word for an entire project in magento

First of all we need to create a a file named en_Us.csv in the following path. /var/www/html/nb/app/design/frontend/JJ/Theme/i18n/en_US.csv The file we created is a csv file in the csv file we can add appropriate word we want to replace as shown in the below screenshot. The order should be first we should add the world to… Continue reading How to change a word for an entire project in magento

Published
Categorized as Magento

How to set timer for an disabled button tp be enabled using js.

Here first of all we need to open a <script> tag and add the folllowing code <script type=”text/x-magento-init”> { “#country”: { “regionUpdater”: { “optionalRegionAllowed”: <?= /* @noEscape */ $displayAll ? ‘true’ : ‘false’ ?>, “regionListId”: “#region_id”, “regionInputId”: “#region”, “postcodeId”: “#zip”, “form”: “#form-validate”, “regionJson”: {$regionJson}, “defaultRegion”: “{$regionId}”, “countriesWithOptionalZip”: {$countriesWithOptionalZip} } } } </script> Then you nee… Continue reading How to set timer for an disabled button tp be enabled using js.

How to override a Magento sign in page

First of all we need to go to /var/www/html/nb/vendor/magento/module-customer and we need to override 2 files namely var/www/html/nb/vendor/magento/module-customer/view/frontend/layout/customer_account_create.xml and /var/www/html/nb/vendor/magento/module-customer/view/frontend/templates/form/register.phtml file to the template and layout files of var/www/html/nb/app/design/frontend/JJ/Theme/Magento_Customer. And then we will get a standard signin page that is provided by magento and using css styling we can make it according to our design… Continue reading How to override a Magento sign in page

Published
Categorized as Magento

How to implement slick slider in Magento

first of all, we need to add slick.js, slick-theme.min.css, slick.min.css in the CSS and js folders of Magento _ui respectively. Then create a custom js file and add the following js code for now I named it sliders.js define([ ‘jquery’, ‘slick’ ],function ($, slick){ $(document).ready(function(){ $(‘.marquee’).slick({ infinite: true, slidesToShow: 3, slidesToScroll: 3, responsive: [ {… Continue reading How to implement slick slider in Magento

Published
Categorized as Magento

How to use magento by using filezilla in case we have lost magento files in system.

First of all, install FileZilla in your system after installation open filezilla click on icon belo file menu and give connect click on the right side section and select the file of the below path /applications/psdbdsecye/public_html/app/design/frontend/JJ/Theme 3. select the files you needed from the app/design /theme and right-click and select edit and view and save… Continue reading How to use magento by using filezilla in case we have lost magento files in system.

Published
Categorized as Magento

How to add new blocks to a page in magento

First of all, write the code in the respective phtml file and then copy the content to the backend by creating a block in CONTENT-> BLOCK -> NEW BLOCK then call the block in the respective HTML file using the following code <?php echo $this->getLayout() ->createBlock(‘Magento\Cms\Block\Block’) ->setBlockId(‘nb_about_us’) ->toHtml(); ?>

Published
Categorized as Magento

How to add new blocks to a page

First of all, write the code in the respective phtml file and then copy the content to the backend by creating a block in CONTENT-> BLOCK -> NEW BLOCK then call the block in the respective HTML file using the following code <?php echo $this->getLayout() ->createBlock(‘Magento\Cms\Block\Block’) ->setBlockId(‘block name’) ->toHtml(); ?>

Published
Categorized as Magento

Magento Installation on linux mint

The following diagram showa the overview of installing the Magento software: And before the installation always check the official site ” https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html ” for knowing the versions of required software that is needed for magento installation. Before you install Magento, you must do all of the following: update and upgrade your operating system software sudo… Continue reading Magento Installation on linux mint

Published
Categorized as Magento

lost Project files for the magento project during an system restart

Copied the project file from a colleague an pasted it in the location “/var/www/html”. Also copied the database from them and pasted it in the same location an created a database with the following commands mysql> CREATE DATABASE DatabaseName; mysql> CREATE USER ‘DatabaseUser’@’localhost’ IDENTIFIED BY ‘password’; mysql> GRANT ALL ON DatabaseName.* TO ‘DatabaseUser’@”localhost”; mysql> FLUSH… Continue reading lost Project files for the magento project during an system restart

Published
Categorized as Magento