Browsed by
Tag: Magento2

AJAX form submit with magento2 default form Validation

AJAX form submit with magento2 default form Validation

Hey guys, I have returned back to you with another simple yet used in day to day magento 2 development task i.e submitting the forms using AJAX with default magento 2 form validation. Actually achieving both individually i.e either normal AJAX form submission or using default form validation provided by magento2 is quite easy. You can refer validating a custom form in Magento2, to see how validation works in magento2. But there are many times down the road, you may…

Read More Read More

How do we get default placeholder image url in template file in magento 2

How do we get default placeholder image url in template file in magento 2

Hi guys, Today we are going to see how we can get the default placeholder image url in magento 2. There comes many situation where we need to get the default placeholder image of the product. So below is how we can achieve that. If you check your store settings you will find option of Product Image place holders, you can change your default placeholder from there. Stores > Configuration > Catalog > Catalog > Product Image Placeholders The better…

Read More Read More