Technical Guidelines

Instructions and advice for developers and store owners in installing, configuring and customizing eCommerce websites and Magento 2 extensions.

  1. How to validate custom input fields in Magento 2
    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

    0 Stars

  2. How to validate forms in Magento 2
    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

    0 Stars

  3. How to create a date field in Magento 2
    How to create a date field in Magento 2
    Date fields are mainly needed when it is required to pick an unknown date in context for a specific event or schedule some plan. It doesn’t only reduce typing errors but also standardize the format. It also helps to improve the user experience by allowing users to simply select rather than inputting using the keyboard. In this article, we will... (More)

    0 Comment

    0 Stars

  4. The best way to create date selection fields in Magento 2
    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

    0 Stars

  5. How to create a popup using Modal widget in Magento 2
    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

    0 Stars

  6. How to create swatches properties in Magento 2
    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

    0 Stars

  7. How to show loader on AJAX call in Magento 2
    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 Stars

  8. How to set up reCAPTCHA in Magento 2
    How to set up reCAPTCHA in Magento 2
    According to Wikipedia, “reCAPTCHA is a CAPTCHA (Completely Automated Public Turning test to tell Computers and Humans Apart) system, which is a system that allows web hosts to distinguish between human and automated access to websites.” Google reCAPTCHA provides a shield to protect websites from fraud and abuse by using an advanced risk analysis engine and adaptive challenges to make... (More)

    0 Comment

    0 Stars

  9. How to Configure Multiple Shipping Addresses in Magento 2
    How to Configure Multiple Shipping Addresses in Magento 2
    A very practical situation is “ If you need your order shipping to 2 or more different addresses, you have to create different orders with different shipping addresses”. This solution causes an issue that if you have many shipping addresses, you must create a variety of orders, checkout many times... which causes inconvenience for the customer. Hence, Magento 2 has... (More)

    0 Comment

    0 Stars

  10. How to get Product Stock in Magento 2
    How to get Product Stock in Magento 2
    Inventory Management takes an integral part in Ecommerce Management. In some cases, we need to get stock information of products for many different reasons. For example, you need to check if a product is in stock to show it on the category page, or to prevent customers from adding an out-of-stock product to the shopping cart and many other cases. ... (More)

    0 Comment

    0 Stars

Items 1 to 10 of 85 total

Page