RomanCart.com Forum Homepage
Forum Home Forum Home > RomanCart > Integration
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Customer Info and Extra Checkout Fields

 Post Reply Post Reply Page  <12
Author
Message
coffeefirst View Drop Down
Newbie
Newbie


Joined: 06 May 2020
Location: Norway
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote coffeefirst Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Support View Drop Down
RomanCart Team
RomanCart Team


Joined: 16 March 2004
Location: United Kingdom
Status: Offline
Points: 10695
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
coffeefirst View Drop Down
Newbie
Newbie


Joined: 06 May 2020
Location: Norway
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote coffeefirst Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2020 at 10:19am
ok let me try it and get back to you. thank you very very much!
Back to Top
Support View Drop Down
RomanCart Team
RomanCart Team


Joined: 16 March 2004
Location: United Kingdom
Status: Offline
Points: 10695
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
coffeefirst View Drop Down
Newbie
Newbie


Joined: 06 May 2020
Location: Norway
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote coffeefirst Quote  Post ReplyReply Direct Link To This Post 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 ][/URL]

Can you please suggest tips to debug this?

Thank you very much!

Back to Top
Support View Drop Down
RomanCart Team
RomanCart Team


Joined: 16 March 2004
Location: United Kingdom
Status: Offline
Points: 10695
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.