Print Page | Close Window

Customer Info and Extra Checkout Fields

Printed From: RomanCart.com Forum
Category: RomanCart
Forum Name: Integration
Forum Description: If you need help using RomanCart in your own website, post here.
URL: http://forums.romancart.com/forum_posts.asp?TID=12261
Printed Date: 03 July 2020 at 3:46pm


Topic: Customer Info and Extra Checkout Fields
Posted By: cjdalio
Subject: Customer Info and Extra Checkout Fields
Date Posted: 27 February 2012 at 7:55pm
I am having trouble autofilling extra checkout fields.. What field names are they assigned?



Replies:
Posted By: cjdalio
Date Posted: 27 February 2012 at 8:55pm
Also, None of the fields seem to work unless I send ALL the fields with data in them... And when I do, the user cannot modify it. So if they use a family member or spouses credit card and the info does not match my registration info they cannot change it..
So my questions are:
1. Is there a way to post values so they can still be edited in the cart?
2. If not, can I post info to only a few fields rather than ALL?
3. If so, what field name do you use for any "Additional Checkout Fields" I have added?


Posted By: Support James
Date Posted: 28 February 2012 at 11:30am
Hi,

You cant post data to the extra checkout fields from your website. You can only do this with the default checkout fields.

Once the data has been posted it cant be edited. You don't have to post to all fields, the only field you must post to is Address1.

Thanks

James (Support)


Posted By: cjdalio
Date Posted: 28 February 2012 at 3:54pm
It locks all the fields even if I only post to address 1.. It seems stupid to lock it in that way.. I am having information sent back to my site to verify payment and proceed with course enrollment and I do not want to add a member to the roster until I recieve payment. I need a reliable field to use to match up thier entry in my database. Thier email is thier user name which would be best, but I dont want to lock people out of changing the billing address in case they use a different one than what they registered with on the school site. If I am forced to post address in order to post email, and they cannot edit the info later it does me no good. I can insert username into the product name, but it clutters the description in the cart and makes extracting the user name more difficult since I already post addition item names for location and date..
What is your reccomendation for this? I cannot prohibit billing info entry or editing, and lots of our students use a parents card to pay, so I cannot rely on our Student Registration matching the Billing Info.


Posted By: Support
Date Posted: 28 February 2012 at 3:56pm
Hi,
Toggle this at 'tools'/'options'/'checkout'/'Passed in details are Read Only'
Many Thanks
Support


Posted By: cjdalio
Date Posted: 28 February 2012 at 7:10pm
That was well hidden... Thank you so much!!!


Posted By: cjdalio
Date Posted: 28 February 2012 at 8:46pm
Ok.. One more question, although I believe I know the answer already.. If I post customer info with the box unchecked so the fields can be edited, is there a way to lock only one field?


Posted By: Support
Date Posted: 28 February 2012 at 10:17pm
Hi,
Unfortunately not.
Thanks
Support


Posted By: coffeefirst
Date Posted: 11 May 2020 at 8:26pm
Can you please provide a sample of how to post customer values to the default checkout fields?


Posted By: Support
Date Posted: 11 May 2020 at 8:46pm
Hi,
For examples please go to RomanCart.com
Click on the 'how it works' tab.
Then click the link for complex buttons.
It shows all the fields you can send to the cart with examples.
Thanks
Support


Posted By: coffeefirst
Date Posted: 12 May 2020 at 9:32am
I tried using some of the fields but it doesn't seem to work. For instance, I'm trying to send "maxquantity" as a field to send to the cart.

Along with my <form> tag, I'm sending:
<input type="hidden" name="maxquantity" value="15">

But it doesn't seem to send the value to the cart. I'm confused and have been trying to figure this out for the past week.

Any other example or a small tip would be of really great help and will be very much appreciated. Thank you very much once again!


Posted By: Support
Date Posted: 12 May 2020 at 9:42am
Hi,
For maxquantity....
go to 'manage'/'products'
Click on the 'configure' link.
Make sure the 'Override product properties stored in the product manager with parameters posted to the cart.'
option is ticked, otherwise that param would be ignored.
Many Thanks
Support


Posted By: coffeefirst
Date Posted: 12 May 2020 at 10:19am
ok let me try it and get back to you. thank you very very much!


Posted By: Support
Date Posted: 12 May 2020 at 1:08pm
Hi,
It's like your minquantity example.

e.g.
<input type name='firstname' value='dave'>

Just add the fields to your add to cart button.

Many Thanks
Support


Posted By: coffeefirst
Date Posted: 13 May 2020 at 11:25pm
Hi,

Thank you for getting back to me.

I tried sending the "Firstname" field and it worked like a charm.

However, I'm trying to post current logged in user's first name from wordpress and I'm running into an error.

Here's what I'm trying:
<input type="hidden" name="Firstname" value="<?php global $current_user; wp_get_current_user();?>
<?php echo $current_user->first_name;
?>">

And this is the error I'm running into:
Screenshot[URL= https://prnt.sc/sgbgsa" rel="nofollow - https://prnt.sc/sgbgsa ][/URL]

Can you please suggest tips to debug this?

Thank you very much!



Posted By: Support
Date Posted: 14 May 2020 at 6:09am
Hi,
Please post or email us the URL of the WordPress page with your button on and we'll take a look.
Thanks
Support



Print Page | Close Window