Hello, I need to add three text fields on
?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 -
\storefront\controller\pages\checkout\payment.php
like this -
2. Have modified the database and created the required fields and edited this file -
\storefront\model\checkout\order.php
to modify the SQL, like this -
3. Have modified these two template files -
\storefront\view\default\template\pages\checkout\payment.tpl
and
\storefront\view\default\template\pages\checkout\confirm.tpl
, to add the textboxes on
?rt=checkout/payment
page and show the entered values on the
?rt=checkout/confirm
page. Have edited templates like this -
payment.tpl: -
confirm.tpl: -
The textboxes are shown on
?rt=checkout/payment
page but the values are not shown on
?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.