Hello,
As this is my first post, let me start with a big THANK YOU for making Chronoforms available to the world. I've tried various form solutions and for me this is by far the best!
My question is on the Redirect Plugin that I use to get to PayPal. Most of it works fine, I get to the sandbox and can complete transactions and all. The one thing I can't get my head around is how to insert a variable in the plugin fields.
My site (transportation service) calculates a price based on the distance customers want to travel. So basically every order has a different price. When I put a fixed number at the amount field, everything works fine. But the business model is not flat fee🙂
I tried:
- in the Redirect plugin, extra fields, amount=$price.
- in the Redirect plugin, extra fields, amount=$_POST[price] as it does show up in the POST array of this form.
- in the Redirect plugin, extra fields, amount = <?php $price ?>.
- in the Redirect plugin, extra fields, amount = <?php $_POST[price] ?>
- in the form code as php, put a hidden field with name = "amount" and value = "$price"
- in the form code as plain html, put a hidden field with name = "amount" and value = "$price"
this last try worked, i.e. the Redirect plugin showed the 'amount' field in the list of form fields. However this is not very useful as in this mode I cannot use variables
- AS I read in a recent post here, tried playing with the order of things, before email and after email.
I'm probably overseeing something terribly obvious, but at this point a hint in the right direction would be very much appreciated!
Thanks in advance,
Wim
As this is my first post, let me start with a big THANK YOU for making Chronoforms available to the world. I've tried various form solutions and for me this is by far the best!
My question is on the Redirect Plugin that I use to get to PayPal. Most of it works fine, I get to the sandbox and can complete transactions and all. The one thing I can't get my head around is how to insert a variable in the plugin fields.
My site (transportation service) calculates a price based on the distance customers want to travel. So basically every order has a different price. When I put a fixed number at the amount field, everything works fine. But the business model is not flat fee🙂
I tried:
- in the Redirect plugin, extra fields, amount=$price.
- in the Redirect plugin, extra fields, amount=$_POST[price] as it does show up in the POST array of this form.
- in the Redirect plugin, extra fields, amount = <?php $price ?>.
- in the Redirect plugin, extra fields, amount = <?php $_POST[price] ?>
- in the form code as php, put a hidden field with name = "amount" and value = "$price"
- in the form code as plain html, put a hidden field with name = "amount" and value = "$price"
this last try worked, i.e. the Redirect plugin showed the 'amount' field in the list of form fields. However this is not very useful as in this mode I cannot use variables
- AS I read in a recent post here, tried playing with the order of things, before email and after email.
I'm probably overseeing something terribly obvious, but at this point a hint in the right direction would be very much appreciated!
Thanks in advance,
Wim