cuculetea wrote:Hello guys,
Any one have a .xml for vqmod to add fields on address table? And also to see on billing address (if they want to add a new one when they finish orders/and on account when try to modify address - not the personal information)) and also to see on admin area?
I understade how you make for personal information but for billing address i see is another table on DB, i thing i need to modify other files to have this working....
Also (but i belive i can do this) the email confirmation to have attach with a pdf of the pre-order(need it to can pay with bank)
Please if any one have it....
Or at least please tell me what files i need to modify for this
Thanks on advance,
Andrei
Hi, to get another field in the shipping and billing address you will need to edit a bunch of new files related to the address and order, and you will also need to add 3 or 4 new columns to your address and order table in your database.
Files=>
catalog/view/theme/default/template/checkout/address.tpl"
"catalog/view/theme/default/template/account/address_form.tpl
"catalog/controller/account/address.php"
"catalog/controller/checkout/address.php"
"catalog/model/account/address.php"
"catalog/controller/checkout/confirm.php"
"catalog/controller/account/order.php"
"catalog/model/account/order.php"
"catalog/model/checkout/order.php"
"admin/view/template/sale/order_info.tpl"
"admin/controller/sale/order.php"
"admin/model/sale/order.php"
"admin/view/template/sale/customer_form.tpl"
"admin/controller/sale/customer.php"
"admin/model/sale/customer.php"
"admin/language/english/sale/customer.php"
"admin/language/english/sale/order.php"
"catalog/language/english/account/register.php"
"catalog/language/english/account/address.php"
"catalog/language/english/checkout/checkout.php"
The files in bold face are not modified in any way by the vqmod I posted here, so you will have to add them to the xml file. You will also have to make changes to the other files, too. You can use my vqmod as a guide, but to achieve what you need you basically have to write a new one. I have one that does exactly this cuz I client had bought the commercial version and asked me for these changes. The vqmod is free as it is, for custom changes like yours I advice to try to guide yourself using the free vqmod, or buy the commercial version to support open cart and get support and other small modifications.
About the pdf file, I think I've seen that in the forum, but don't remember where, try to search it up.