I've managed to add a credit card number field along with a credit card expiration date field, but neither one posts any information to the confirmation page or the back end of the site. Both the confirmation page and the back end of the site have fields for this information, but it's not getting posted.
I've modified the following pages in OpenCart 3.x:
have you tried the aOrder[sCredit_card] in the orders_print.tpl template? Should work, as far as I know. Administration should also work if you edit templates/admin/orders.tpl, table in the block FORM_MAIN.
erika
2010-04-18 18:34
In the orders_print.tpl template I have the following:
please check if order ID 2 has cc number and cc expiry date filled correctly in file db/orders.php. If not then the problem is that order for doesn't save the order properly. If yes, then it's a matter of referencing the right order content in the template.
correction: If not then the problem is that order FORM doesn't save the order properly. If yes, then it's a matter of referencing the right order content in the template.
erika
2010-04-19 23:36
No cc number or exipry date for ID 2 in db/orders/php.
So did you actually implement it ok in db/orders.def.php to all of the $aFieldsNames, $aFieldsSort and function en_products()? Because if not, it could do this. Also, make sure the old orders actually contain additional $$ at the end. old orders = orders before you made this modification.
erika
2010-04-20 06:06
In db/orders.def.php I missed the "s" before credit_card and credit_expire. Small mistake, big problem. It seems to be working now. I owe you one, Beholder! Thanks so much for your help!
No problem, I thought it could be something like this since adding a new field is pretty straightforward. (Well, unless you want to do something with the value...)