Adding 2 fields to Address (including checkout)
Posted: Sat Jul 26, 2014 1:20 am
Hello,
I need to add two varchar fields to che checkout, those fields are an extension to the customer address record. I expect to have to modify the oc_order and oc_address tables at a minimum.
Now, despite I think adding such fields is a common need in OpenCart, I haven't found a single howto or tutorial that is either complete or relatively recent (OpenCart 1.5.6+). I am not talking about adding a "Mr/Mrs" field in the customer or contact info (some tutorials about that are out there) but to adding to address and thus checkout.
I know there is at least 1 commercial mod to do that, but I have to perform so many convoluted operations it'd be hard to explain anyone the hundred or so company-imposed rules I had to code in the current OpenCart website. Furthermore the website has to interface with a proprietary CRM.
So I have to do it by myself.
I have found a 2012 discussion that mentions this task and then another that seems more recent.
All what I ask is: are the lists of files to edit, mentioned in those posts, complete and correct? Since they are different, which one is closest to being right?
Thanks in advance.
I need to add two varchar fields to che checkout, those fields are an extension to the customer address record. I expect to have to modify the oc_order and oc_address tables at a minimum.
Now, despite I think adding such fields is a common need in OpenCart, I haven't found a single howto or tutorial that is either complete or relatively recent (OpenCart 1.5.6+). I am not talking about adding a "Mr/Mrs" field in the customer or contact info (some tutorials about that are out there) but to adding to address and thus checkout.
I know there is at least 1 commercial mod to do that, but I have to perform so many convoluted operations it'd be hard to explain anyone the hundred or so company-imposed rules I had to code in the current OpenCart website. Furthermore the website has to interface with a proprietary CRM.
So I have to do it by myself.
I have found a 2012 discussion that mentions this task and then another that seems more recent.
All what I ask is: are the lists of files to edit, mentioned in those posts, complete and correct? Since they are different, which one is closest to being right?
Thanks in advance.