Skip to main content

Magento2

Power your online business with the most flexible and scalable ecommerce platform

Make the Tax ID mandatory in the checkout page

The easiest way to make the tax/vat id mandatory in the checkout page is to change the is_required in the eav_attribute table

 

you can use this Query to change the value from 0 => 1

 

UPDATE `eav_attribute` SET `is_required` = '1' WHERE `eav_attribute`.`attribute_code` = 'vat_id';

 

or you can use this code when you want to use a custom extesnion

 

$installer->updateAttribute('customer_address', 'vat_id', 'is_required', true);

 

How to apply the Magento 2 patches?

Most of Magento developer want to know exactly how they should apply the security patches on their websites

in this article we are going to talk about *.patch files

There are two ways to do this

1- using  git command

git apply patch_filename.patch

or

2- using patch command

patch -p1 < patch_filename.patch

 

I hope this will be useful for you