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..
CSS – Deal with divs that only contain float divs
Situation:
You have a container with two or more elements with a class of box floated inside it.
Problem:
container height is 0, ..
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:..
Magento 2.x – Add custom attribute to customer model and show on admin panel
You will need to perform some basic steps to create and set a new attribute on the customer model.
- Create a new module, with a setup ..
Magento 2.x – Validate if a customer is logged in or not
To check if customer is loged in or not you can call Magento\Customer\Model\Session::isLoggedIn() method.
If you want to do that proper..
Magento 2.x: How to fix “Uncaught ReferenceError: jQuery is not defined(anonymous function)” javascript message
Sometimes when developing js inside a module, you will see the following message:
Uncaught ReferenceError: jQuery is not defined(anonym..
Magento 2.x – How to get and access custom attributes on “getLoadedProductCollection()” iteration
If you are modifying Magento_Catalog/templates/product/list.phtml and you are trying to access to a custom attribute <attr_id> inside the ..
Magento 2.x – fix “Import failed: Unable to unserialize value, string is corrupted.” when app:config:import
If you are trying to import the configuration of your store withing the CLI interface with the app:config:import command, and you are faci..