VAT ID if salution is not "company"
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
VAT ID if salution is not "company"
I am wondering why this code is in aimeos.js ?
It makes no sense, since company can be sole trader and use only name and surname in EU.
It makes no sense, since company can be sole trader and use only name and surname in EU.
Code: Select all
/* Initial state: Hide VAT ID if salution is not "company" */
$(".checkout-standard-address .form-list .salutation select").each(function(idx, elem) {
if($(elem).val() !== "company") {
$(this).parents(".form-list").find(".company,.vatid").hide();
}
});
Re: VAT ID if salution is not "company"
Usually, only companies have VAT IDs and even single persons need a business to get a VAT ID. Thus, it's hidden if the salutation is for a person to keep the address form small. You can overwrite the JS easily if you have different requirements.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star