In today blog post, we will show you three easy-to-follow steps to add a custom validate field in your Magento 2 form. Let’s get started! Step 1: Add Custom Validate Method First, in the data-mage-init attribute, you must add a custom method named tigrenValidateMethod. <form class=”form contact” action=”<?= $block->escapeUrl($block->getFormAction()) ?>” id=”contact-form” method=”post” data-hasrequired=”<?= $block->escapeHtmlAttr(__(‘* Required
April LeeHow To Add Custom Validate Field In Magento 2 Form?
In this Magento 2 tutorial, we will show you five simple steps to add a contact form to your CMS page (e.g.: Contact us page) in Magento 2. Let’s get started! Step 1: Add new CMS Page Open your Magento 2 admin panel, navigate to CONTENT, select Pages (under Element), then click on Add New Page
TobyHow To Add Contact Form To CMS Page In Magento 2?
There are six simple steps to add the extension attribute to order in Magento 2: Step 1: Let’s create the extension_attributes.xml file First and foremost, you need to declare your extension attributes in one XML file: <!– etc/extension_attributes.xml –> <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”Magento\Sales\Api\Data\OrderInterface”> <attribute code=”tigren_attribute” type=”Tigren\Example\Api\Data\TigrenAttributeInterface” /> </extension_attributes> </config> By this way, you are
TobyHow To Add Extension Attribute To Order In Magento 2?
If you are a Magento store owner/ developer, we guess that you have already known about the Simple Mail Transfer Protocol (SMTP) and how it works. Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic e-mail transmission. In this tutorial, we will show you 3 simple steps to configure the default SMTP mode on Magento 2 backend.
April LeeHow To Configure SMTP In Magento 2? [5 minutes]
There are a large number of Magento e-commerce stores are providing the cash on delivery payment method. As you might know, Magento 2 cash on delivery function is very basic, which allows us to create a COD option in the checkout process. However, many store owners now want more than that, for example, they might want
April LeeHow To Set Up Multi Magento 2 Cash On Delivery Options?
To begin with, it’s fundamental to know how to upload as well as optimize images and videos for products in Magento 2. Most of Magento 2 stores have a wide range of products and related images and videos; if they don’t know how to use their resources effectively, the site performance will be negatively affected. As
April LeeHow To Upload And Optimize Images And Videos In Magento 2?
As you might know, providing discount and promotions are immensely effective for boosting sales in Magento ecommerce stores. Fortunately, Magento 2 allows us to easily set the sale price/ special price for any products from the backend. In this tutorial, we will show you 5 simple steps to add and apply discount price for your items.
April LeeHow To Add Sale Price for Products In Magento 2? (5 minutes)
For a Magento 2 website, the homepage plays a crucial role in creating the first good impression for visitors as well as encourage them to discover other pages on the store. Moreover, one of the most effective ways to make a nice Magento 2 homepage is using the banner slider. By displaying eye-catching banners in
April LeeHow To Add Banner Slider In Magento 2 Homepage? (10 minutes)
In Magento 2 e-commerce websites, the “404 Page Not Found” page (or the “404 Page” in short) will appear when you try to reach a specific webpage but it cannot be found (being moved or eliminated). From our experience, almost all of the Magento 2 e-commerce websites will have to face the 404 error. However, the ways they prepare
April LeeHow To Create Effective 404 Page In Magento 2 E-commerce Websites?