So basically I added a custom select address attribute. This selection has 2 available values. If value A is selected the required validation of the form for firstname and lastname is removed and making the company input required. If value B is selected it will be vice versa. The saving and backend validation is already done. The remaining work is the frontend validation for Customer Account Address and Checkout Address.
You may also like
I’m trying to develop a new plugin for Magento2. I have tried to follow this article in order to install Magento on […]
I ended up converting my SSD to dynamic instead of my HDD. Is there any non-destructive way to restore it to basic. […]
I have a Macro that takes text entered into a textbox and posts it to the next empty row. This simulates a […]
submitted by /u/geerlingguy [link] [comments]