I have Multi Website on my Magento 2.2.0
Configured Show VAT Number on Storefront(eav_attribute taxvat) Website level
attribute_id | website_id | is_visible | is_required | default_value | multiline_count |
+--------------+------------+------------+-------------+---------------+-----------------+
| 17 | 1 | 0 | 0 | NULL | NULL |
| 17 | 2 | 1 | 1 | NULL | NULL |
Expected output
Website One should be disabled VAT (is_visible => 0)
Website Two should have VAT (is_visible => 1)
My output
On the Development environment it’s working as expected
But on production mode websites Two VAT is not visible on the registration form.
So I debugged MagentoCustomerBlockWidgetTaxvat.php
to check the function and did a Print.
public function isEnabled(){
print_r($this->_getAttribute('taxvat'));
return $this->_getAttribute('taxvat') ? (bool)$this->_getAttribute('taxvat')->isVisible() : false;
}
Development: Website one is_visible returns false & Website Two is_visible returns True
Production: Website one is_visible returns false & Website Two is_visible returns false
Can anyone help me out of this, Don’t know why it’s not working in Production mode, It takes Website one values on Website Two.