1
Customization help / Adding new fields on checkout pages
« on: January 27, 2017, 01:29:47 PM »
Hello, I need to add three text fields on
I have taken following steps: -
1. I have added the required fields in this page -
2. Have modified the database and created the required fields and edited this file -
3. Have modified these two template files -
payment.tpl: -
confirm.tpl: -
The textboxes are shown on
Textboxes are shown: (Not able to correctly position the Red required asterisk as well)
Values are not shown on checkout/confirm page:
Please advise whether I have done it correctly or have missed or overlooked something?
Many thanks.
P.S. I do not want to use any extension from the marketplace.
Code: [Select]
?rt=checkout/payment
page, to take important information needed for the services I provide via my store.I have taken following steps: -
1. I have added the required fields in this page -
Code: [Select]
\storefront\controller\pages\checkout\payment.php
like this - 2. Have modified the database and created the required fields and edited this file -
Code: [Select]
\storefront\model\checkout\order.php
to modify the SQL, like this -3. Have modified these two template files -
Code: [Select]
\storefront\view\default\template\pages\checkout\payment.tpl
and Code: [Select]
\storefront\view\default\template\pages\checkout\confirm.tpl
, to add the textboxes on Code: [Select]
?rt=checkout/payment
page and show the entered values on the Code: [Select]
?rt=checkout/confirm
page. Have edited templates like this - payment.tpl: -
confirm.tpl: -
The textboxes are shown on
Code: [Select]
?rt=checkout/payment
page but the values are not shown on Code: [Select]
?rt=checkout/confirm
page, neither are they geting inserted in the database. e.g.:- Textboxes are shown: (Not able to correctly position the Red required asterisk as well)
Values are not shown on checkout/confirm page:
Please advise whether I have done it correctly or have missed or overlooked something?
Many thanks.
P.S. I do not want to use any extension from the marketplace.