1
Customization help / Re: Adding new fields on checkout pages
« on: February 03, 2017, 12:41:01 AM »
EDIT: Double post.
Hi,
Since you are going to add the data into orders table, you need to alter the lib/order.php first. Otherwise the data won't be stored. As for confirm.tpl, you need to fetch the data from database and pass it from checkout/confirm.php. Hope it helps.
For correct display for the fields you need to use right HTML structure of the bootstrap v3.
Try something like this:Code: [Select]<div class="form-group <?php if (${'error_'.$field_name}) echo 'has-error'; ?>">
<label class="control-label col-md-5"><?php echo ${'entry_'.$field_name}; ?></label>
<div class="input-group col-md-7">
<?php echo $form[$field_id]; ?>
</div>
<span class="help-block"><?php echo ${'error_'.$field_name}; ?></span>
</div>
The rest of your steps are correct.
If you do not see data saved in the order, please double check that your fields are located between <form></form> tags.
Check what data is posted into the controller on the submit.
Thank you for sharing these in details
?rt=checkout/payment
page, to take important information needed for the services I provide via my store.\storefront\controller\pages\checkout\payment.php
like this - \storefront\model\checkout\order.php
to modify the SQL, like this -\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 - ?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.:- I do not follow you. You do not need to use google translate. We will do that. We will need your help to correct machine translation to human.We are consider to create Hindi language for the Indian market. Please help understand if it necessary for our users
Other suggestion are welcome
Indian user: As far as I know we barely use google translate here in INDIA so if you guys are considering machine translator then I think it's not much needed here in INDIA
#JustASuggestion
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:Code: [Select]extension=php_openssl.dll
Tell us the results.
allow_url_fopen = On
Your code snippet did not work.
extension=php_openssl.dll
allow_url_fopen = On
Hi.Will do that. Thanks
In bug tracker you can subscribe to receive notification when anything changed related to this issue
thanks allYes, thats what I do. Do trial and error on localhost(I use WAMP), make note of what files to edit and then make changes on the live site.
i have uploaded abantecart on a localhost and will do the bulk of the work there,
make some notes, then on to the the live store
Thank you for the offer. Are you able to translate the text? What is better for you, if we provide machine translation and you correct the text or you translate directly from English?