Magento 2.x
CategoryMagento 2.3.x – Fix “Stock item was unable to be saved” when save products on admin
If you are getting the following error message, when trying to save an existing product, or creating a new one:
you have to do the..
Magento 2.3x – Configure declarative schema
Before Magento 2.3, every developer needs to write PHP scripts like InstallData / UpgradeData / Recurring, to interact with database, whic..
Magento 2.x – Using Confirmation and Alert Jquery Widget popups
In some cases you will need to show a confirmation modal popup, or an alert. To make it Magento way, i will show you some pretty usefull j..
Magento 2.x – How to create a frontend modal popup from scratch
A Modal Window helps with this by making the whole page darker and highlighting the modal window in the center.
You can perform the fol..
Magento 2.x – How to override a template file in a module
If you are creating a new module, where you want to override an existing and used template, you can perform the following and easy step:
..
Magento 2.x – How to easily join tables or models.
With the following snippet, you will be able to join as many tables or models as you want. Bear in mind, that if you are working with a cu..
Magento 2.x – How to add jQuery calendar to custom frontend form as datepicker
If you need to add a datepicker in a custom frontend form, i’m going to show you the easiest way i found with 2 basic steps.
First, add..
Magento 2.x – How to add a customer myaccount link and its corresponding page
So, in some cases we will need to add a link in the customer my account frontend section. To do so, we should perform the following basic ..
Magento 2.x – Add a custom customer attribute on his dashboard page.
In addition of a previous comment where we added a new attribute to the customer (https://www.offset101.com/magento-2-x-add-custom-attrib..
Magento 2.x – Fix error “cannot read property ‘section loadurl’ of undefined in customer-data.js”
The data which code references to sectionLoadUrl is usually set in the following snippet that (should) be on every Magento front-end page:..