News:

AbanteCart v1.4.2.1 is released.

Main Menu

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Rey

#1
EDIT: Double post.
#2
Yes, apparently that is the only thing left to do. But the latest version supported by that extension is 1.2.8 and I am running 1.2.9, so I don't know..
#3
UPDATE: Nothing works. I have simply given up. Such small thing but obviously missing out on something. (That too when I am not new to programming)

Anyway, So now can you guys recommend some other ways to take some additional information from the customer, while making an order or after the checkout is successful?

Many thanks.
#4
You need to edit your header.tpl file to achieve this.
#5
Quote from: handoyo on January 30, 2017, 01:40:55 AM
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.

Thanks a ton for the tip.
Let me try doing this at once and will post the results.
Cheers.
#6
UPDATE: I am literally at my wits end on this one. There is absolutely nothing left that I haven't done to make this work.
Sure someone else must have done something like this? Kindly share your doings please.
#7
Quote from: maxter on January 28, 2017, 04:51:20 PM
For correct display for the fields you need to use right HTML structure of the bootstrap v3.

Try something like this:


<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

Thanks for the input. The thing is there is a comment field already on the page where I want to put new fields. I have followed exact details of how the comment field works, but still new fields are not working.

The new fields are exactly below comment field and between <form></form> tags, still not working.

Should I add the above code in the .tpl file?

Thank you.
#8
Go to your admin panel, in the top search bar type There are no products to list in this category, when the results appear, click on text_empty, modify the text as your wish.
Be warned that you cannot leave it completely empty, so just add a single space if you wish to not show anything.
#9
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.
#10
Opinions / Re: Hindi language
January 27, 2017, 12:13:05 PM
Quote from: abantecart on January 27, 2017, 11:28:55 AM
Quote from: Sam_78 on January 25, 2017, 04:47:11 PM
Quote from: Basara on March 21, 2016, 05:56:44 AM
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
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.

He meant that we here in India do not use translated text much, all apps, programs etc. are used in English only, so he says it is not of much use to translate AbanteCart in Hindi.
But maybe there are some users who prefer Hindi so its better to have Hindi translation, just in case.
#11
Quote from: Ollie on January 26, 2017, 12:54:01 PM
Quote from: Rey on January 26, 2017, 10:54:01 AM
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:

extension=php_openssl.dll
allow_url_fopen = On

Tell us the results.

Your code snippet did not work.

Those lines exist in your php.ini?
#12
Check your php.ini file and add these lines or un-comment them if they don't exist or are commented out:

extension=php_openssl.dll
allow_url_fopen = On


Tell us the results.
#13
Opinions / Re: I can't get into maintenance mode .
January 26, 2017, 03:13:37 AM
Quote from: Basara on January 26, 2017, 12:44:21 AM
Hi.

In bug tracker you can subscribe to receive notification when anything changed related to this issue
Will do that. Thanks :)

Quote from: overdale on January 25, 2017, 09:13:25 PM
thanks all

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
Yes, 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.
Its better this way.
#14
Opinions / Re: Hindi language
January 25, 2017, 01:37:14 PM
Quote from: abantecart on January 25, 2017, 12:30:40 PM
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?

If you have some already translated text, provide me that and I will correct it, if needed.
And the text which is yet un-translated, I can translate it directly.
#15
Opinions / Re: Hindi language
January 25, 2017, 09:25:12 AM
Is the Hindi help still needed? Native speaker here, can help.

Thanks.

Forum Rules Code of conduct
AbanteCart.com 2010 -