wyciovsky Posted October 15, 2014 Share Posted October 15, 2014 Hello, firstly, it's nice to meet all of you at this forum, i'm glad that i have an occasion to post with you. For my last two days i've been facing a problem that i can't solve, i hope that i will find here somebody who knows the answer, namely... There are two addresses, delivery and billing address. What i'm willing to do is to make different requirements in two addresses validations. By default, firstname and lastname are required in both, delivery and billing address and I need to leave it required only in delivery address. If company name is given i need to 'unrequire' firstname and lastname in billing address, that clients are let to leave it empty. I've been looking in address.php, address controllers, etc. and i have to admit that i can handle it. I'm using prestashop 1.5.4.1. I've attached a photo to help you understand. I have to let clients delete their name "Chris Chris" from billing address (which i cant do now - there is a requirement), because they are geting frustrated when they think that their name will be shown at the invoice. Thanks in advance for your help! Sincerely, Chris Link to comment Share on other sites More sharing options...
tuk66 Posted October 16, 2014 Share Posted October 16, 2014 The name is required, which is probably very good in more ways. Anyway, you can always add some condition to the invoice template to show the company name or last & first name, but not both. For example, I can do it in 5 minutes in a M4 PDF Extensions template. Link to comment Share on other sites More sharing options...
wyciovsky Posted October 16, 2014 Author Share Posted October 16, 2014 Hello tuk66, thanks for your fast reply. We make invoices using third-part software. I know there are plenty of reasons that it's better to leave firstname and lastname required for delivery address but for billing address it's usually useless because majority of our clients are companies where sales representatives are responsible for orders and we've got a lot of mails and calls that they won't have their names on invoices. They usually try to delete firstname and lastname from billing address but it stays required. Is it possible to change it? Sincerely, Chris Link to comment Share on other sites More sharing options...
wyciovsky Posted October 17, 2014 Author Share Posted October 17, 2014 bump. Link to comment Share on other sites More sharing options...
Recommended Posts