Technical Guidelines
Instructions and advice for developers and store owners in installing, configuring and customizing eCommerce websites and Magento 2 extensions.
-
How to configure Contact Us form & Contact Email in Magento 2
Introduction The Contact Us form provides an easy way for customers to keep in touch with your business. More importantly, Contact Us forms also help to reassure customers that there is someone listening to their queries, complaints, and feedback. So, in this blog, we show you how to configure Contact Us form in Magento 2 store. I.Enable the Contact Us... (More) -
How to get and set cookies in Magento 2
Cookies are a necessary part of the way the web works. Websites use cookies to keep track of users and enable user-specific features. So in this article, we will show you guys how to get and set the data from cookies in Magento 2. Create Class to manager cookie The first step is setting an ExampleCookie.php class in the app/code/Magenest/Helper... (More)0 Comment
-
What is SSL? How to setup SSL with Magento 2 with Apache or Nginx?
What is an SSL Certificate? SSL stands for Secure Sockets Layer and, in short, it's the standard technology for keeping an internet connection secure and safeguarding any sensitive data that is being sent between two systems, preventing criminals from reading and modifying any information transferred, including potential personal details. The two systems can be a server and a client (for... (More)0 Comment
-
How to check Magento 2 coding standard using code sniffer
Reading other people's code is not an uncommon task, and this becomes difficult when each person has a different habit of writing code, making it difficult for reading comprehension, as well as modifying and developing later. For that reason, rules need to be followed to define code standards and improve the readability of the source code. Coding Standard Coding Standard... (More)0 Comment
-
How to validate custom input fields in Magento 2
When working with forms, sometimes you need to make special requirements to validate the data that customers enter. In this topic, I will show you how to create custom rules in Magento 2. Magento form validation rules Magento has created a lot of useful rules and you can find them in vendor/magento/module-ui/view/base/web/js/lib/validation/rules.jsvendor/magento/module-review/view/frontend/web/js/validate-review.jsvendor/magento/module-payment/view/base/web/js/model/credit-card-validation/validator.js Below are a few commonly used rules: How... (More)0 Comment
-
The Complete Guide on How to Validate Forms in Magento 2
The Magento application provides various ways to validate your form inputs. In this article, I will show you how to validate forms in Magento 2, using javascript. To add validation to your form you need initiating validation There are several ways to initiate form validation:- Using the data-mage-init attribute <form id="my-form" data-mage-init='{"validation": {}}'> ... </form> - Using the text/x-magento-init script... (More)0 Comment
-
The best way to create date selection fields in Magento 2
The Date Selection Fields in Magento 2 is primarily needed when it comes to scheduling certain plans/actions. For Magento 2 users, it does not only reduces typing errors but also saves the admin a lot of time. With the standardized format, Magento 2 date picker helps enhance the user experience: Instead of using the keyboard, the user can simply click... (More)0 Comment
-
How to create a popup using Modal widget in Magento 2
When working with Magento 2, we try to take advantage of all the utilities that Magento has supported, to avoid having to rework the existing features, which causes time and effort. In this post, I am going to explain how to create and call modal popup widget in Magento 2. First, we have a button. Clicking it will display a... (More)0 Comment
-
How to Create Swatches Properties in Magento 2
In this article, we will go through the steps to create swatches for products on Magento 2 using a built-in product attribute management system. Magento supports color swatches and text-based swatches. Options not available for selection are either crossed out or blurred. Magento 2 swatches: Color and text-based swatches Configure swatches in Magento 2 To create swatches, go to Admin... (More)0 Comment
-
How to show loader on AJAX call in Magento 2
When using AJAX in Magento 2, it takes a little time to get new content from the server based on its execution time. When the AJAX is processing, developers could show a loader to let users know or prevent users from doing any action before the AJAX is done. In this article, we will guide you on how to show... (More)0 Comment
0 Comment