Magento 2 Archives - Page 3 of 4 - Magesan

Category: Magento 2

How to write jquery in phtml file in magento 2

We need to write jquery sometimes in phtml file for special requirement. For that you need to define jquery in require function in script tag for using jquery within phtml file.Put below script in phtml file and replace console.log with your custom code.

How to create an extension or module in magento 2

Magento2 custom module creation allow to add new feature to your magento store. It will open all the resources for you to adding rich features to your ecommerce store beyond limits. For creating Extension in magento2 we need to create 2 mandatory files for recognizing magento2 as our extension.1) registration.php2) etc/module.xml Let’s give our extension

How to render a custom class in Ui component

Rendering a class in UI component is essential part in the magento 2 grid because, if you want to display the store view names instead of the store view ids then the solution is render a custom class and convert the store view ids as store view names. Let’s assume that you have already created

Create Helper in magento 2

Helpers are very useful and needful elements. And beside this you can inject any dependency and call it to anywhere you need. You can create Helpers like this….

How to find any word using CMD

Finding something is more headache now a days, because if we don’t know where the text is come from then we can’t customize or change it. So, we are came here with an important command which you can use it inside any terminal like CMD or using SSH for live server purposes. Enter this command

Create or update admin user in magento2 using CMD

Magento2 admin user are somewhat tricky things when you forgot their passwords or username while login. Following command allows you to create new user or if you know the username then update to that user’s password Creating new user using cmd 2. Updating an existing user using database.

Git commands

Git is an essential storage for storing large amount of projects. Following are the important commands for git Git command for adding or pushing changes to git When downloading latest changes from git branch When git don’t allow and warned you to avoid or stash you changes When cloning a whole project to your local

How to increase memory limit in php or composer

Memory limit issue can be raised often. And without solving it you can’t process further. You must have to solve this. Memory limit issue can be raised while installing large amount of software, extension and moreover. We have two scenarios where we find memory limit issue, While installing Magento2, It throws memory limit issue during