Configure Add-to-Cart Button from Form

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
amy
 
 
Posts: 4
Joined: Tue Jul 09, 2013 8:33 pm

Configure Add-to-Cart Button from Form

Post by amy » Wed Jul 23, 2014 1:55 am

I am trying to create a form with an Add-to-Cart Button for golfers to register for our annual Lions Club Golf Tournament. I used the Form Wizard with the Add-to-Cart-Option in WYSIWYG Web Builder 9.4.3.
I created options forMembers and Non-Members of the Country Club.
1-Member -$50
2-Members - $100
3-Members -$150
4 Members - $200
1-Non-Member- $70
2-Non-Members-$140
3-Non-Members - $210
4-Non-Members - $280

I made it so multiple selections could be made. And asked that the team leader select up to 4 options, for the foursome.
When I click on the Add-to-Cart Button, There is no way that I can see that I can configure the button to go to PayPal.

What am I doing or not doing?

Thanks in advance :D

User avatar
Pablo
 
Posts: 18820
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Configure Add-to-Cart Button from Form

Post by Pablo » Wed Jul 23, 2014 6:51 am

What is the URL of the page so we can see what you have done?

However I'm not sure if PayPal supports multiple selections. You will have to ask the PayPal support team.

amy
 
 
Posts: 4
Joined: Tue Jul 09, 2013 8:33 pm

Re: Configure Add-to-Cart Button from Form

Post by amy » Wed Jul 23, 2014 1:43 pm

the page is not posted yet but here is the html:

<?php
function ValidateEmail($email)
{
$pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i';
return preg_match($pattern, $email);
}
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['formid'] == 'form1')
{
$mailto = 'newvision@swva.net';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$subject = 'Golfer';
$message = 'Values submitted from web site form:';
$success_url = '';
$error_url = '';
$error = '';
$eol = "\n";
$max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000;
$boundary = md5(uniqid(time()));

$header = 'From: '.$mailfrom.$eol;
$header .= 'Reply-To: '.$mailfrom.$eol;
$header .= 'MIME-Version: 1.0'.$eol;
$header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol;
$header .= 'X-Mailer: PHP v'.phpversion().$eol;
if (!ValidateEmail($mailfrom))
{
$error .= "The specified email address is invalid!\n<br>";
}

if (!empty($error))
{
$errorcode = file_get_contents($error_url);
$replace = "##error##";
$errorcode = str_replace($replace, $error, $errorcode);
echo $errorcode;
exit;
}

$internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field");
$message .= $eol;
$message .= "IP Address : ";
$message .= $_SERVER['REMOTE_ADDR'];
$message .= $eol;
foreach ($_POST as $key => $value)
{
if (!in_array(strtolower($key), $internalfields))
{
if (!is_array($value))
{
$message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol;
}
else
{
$message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol;
}
}
}

$body = 'This is a multi-part message in MIME format.'.$eol.$eol;
$body .= '--'.$boundary.$eol;
$body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol;
$body .= 'Content-Transfer-Encoding: 8bit'.$eol;
$body .= $eol.stripslashes($message).$eol;
if (!empty($_FILES))
{
foreach ($_FILES as $key => $value)
{
if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize)
{
$body .= '--'.$boundary.$eol;
$body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
$body .= 'Content-Transfer-Encoding: base64'.$eol;
$body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
$body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
}
}
}
$body .= '--'.$boundary.'--'.$eol;
if ($mailto != '')
{
mail($mailto, $subject, $body, $header);
}
header('Location: '.$success_url);
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>golfers</title>
<meta name="generator" content="WYSIWYG Web Builder 9 - http://www.wysiwygwebbuilder.com">
<style type="text/css">
div#container
{
width: 970px;
position: relative;
margin: 0 auto 0 auto;
text-align: left;
}
body
{
background-color: #FFFFFF;
color: #000000;
font-family: Arial;
font-size: 13px;
margin: 0;
text-align: center;
}
</style>
<style type="text/css">
a
{
color: #0000FF;
text-decoration: underline;
}
a:visited
{
color: #800080;
}
a:active
{
color: #FF0000;
}
a:hover
{
color: #0000FF;
text-decoration: underline;
}
</style>
<style type="text/css">
#wb_Form1
{
background-color: #FAFAFA;
border: 0px #000000 solid;
}
#wb_Text1
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text1 div
{
text-align: left;
}
#wb_Text2
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text2 div
{
text-align: left;
}
#Editbox1
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text3
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text3 div
{
text-align: left;
}
#Editbox2
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text4
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text4 div
{
text-align: left;
}
#Editbox3
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text5
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text5 div
{
text-align: left;
}
#Editbox4
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text6
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text6 div
{
text-align: left;
}
#Editbox5
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text7
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text7 div
{
text-align: left;
}
#wb_Text8
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text8 div
{
text-align: left;
}
#wb_Text9
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text9 div
{
text-align: left;
}
#wb_Text10
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text10 div
{
text-align: left;
}
#Editbox6
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text11
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text11 div
{
text-align: left;
}
#Editbox7
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text12
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text12 div
{
text-align: left;
}
#Editbox8
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text13
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text13 div
{
text-align: left;
}
#Editbox9
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text14
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text14 div
{
text-align: left;
}
#Editbox10
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text15
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text15 div
{
text-align: left;
}
#wb_Text16
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text16 div
{
text-align: left;
}
#wb_Text17
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text17 div
{
text-align: left;
}
#wb_Text18
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text18 div
{
text-align: left;
}
#Editbox11
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text19
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text19 div
{
text-align: left;
}
#Editbox12
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text20
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text20 div
{
text-align: left;
}
#Editbox13
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text21
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text21 div
{
text-align: left;
}
#Editbox14
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text22
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text22 div
{
text-align: left;
}
#Editbox15
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text23
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text23 div
{
text-align: left;
}
#wb_Text24
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text24 div
{
text-align: left;
}
#wb_Text25
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text25 div
{
text-align: left;
}
#wb_Text26
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text26 div
{
text-align: left;
}
#Editbox16
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text27
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text27 div
{
text-align: left;
}
#Editbox17
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text28
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text28 div
{
text-align: left;
}
#Editbox18
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text29
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text29 div
{
text-align: left;
}
#Editbox19
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text30
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text30 div
{
text-align: left;
}
#Editbox20
{
border: 1px #A9A9A9 solid;
background-color: #FFFFFF;
color :#000000;
font-family: Arial;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
#wb_Text31
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text31 div
{
text-align: left;
}
#wb_Text32
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text32 div
{
text-align: left;
}
#Button1
{
border: 1px #A9A9A9 solid;
background-color: #F0F0F0;
color: #000000;
font-family: Arial;
font-size: 13px;
}
#Button2
{
border: 1px #A9A9A9 solid;
background-color: #F0F0F0;
color: #000000;
font-family: Arial;
font-size: 13px;
}
#wb_Text33
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: center;
}
#wb_Text33 div
{
text-align: center;
}
#wb_Form2
{
background-color: #FAFAFA;
border: 0px #000000 solid;
}
#wb_Form4
{
background-color: #FAFAFA;
border: 0px #000000 solid;
}
#wb_Form3
{
background-color: #FAFAFA;
border: 0px #000000 solid;
}
#wb_Text34
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text34 div
{
text-align: left;
}
#Combobox1
{
border: 1px #A9A9A9 solid;
background-color: #D3D3D3;
color: #000000;
font-family: Arial;
font-size: 13px;
}
#Button3
{
border: 1px #A9A9A9 solid;
background-color: #F0F0F0;
color: #000000;
font-family: Arial;
font-size: 13px;
}
#wb_Text35
{
background-color: transparent;
border: 0px #000000 solid;
padding: 0;
text-align: left;
}
#wb_Text35 div
{
text-align: left;
}
</style>
</head>
<body>
<div id="container">
<div id="wb_Form1" style="position:absolute;left:99px;top:167px;width:371px;height:990px;z-index:64;">
<form name="golfers" method="post" action="<?php echo basename(__FILE__); ?>" enctype="multipart/form-data" id="Form1">
<input type="hidden" name="formid" value="form1">
<div id="wb_Text1" style="position:absolute;left:10px;top:15px;width:57px;height:16px;z-index:0;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Player 1:</span></div>
<div id="wb_Text2" style="position:absolute;left:10px;top:40px;width:79px;height:16px;z-index:1;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Name:</span></div>
<input type="text" id="Editbox1" style="position:absolute;left:99px;top:40px;width:198px;height:23px;line-height:23px;z-index:2;" name="Editbox1" value="">
<div id="wb_Text3" style="position:absolute;left:10px;top:70px;width:79px;height:16px;z-index:3;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Address:</span></div>
<input type="text" id="Editbox2" style="position:absolute;left:99px;top:70px;width:198px;height:23px;line-height:23px;z-index:4;" name="Editbox2" value="">
<div id="wb_Text4" style="position:absolute;left:10px;top:100px;width:79px;height:16px;z-index:5;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Email:</span></div>
<input type="text" id="Editbox3" style="position:absolute;left:99px;top:100px;width:198px;height:23px;line-height:23px;z-index:6;" name="Editbox3" value="">
<div id="wb_Text5" style="position:absolute;left:10px;top:130px;width:79px;height:16px;z-index:7;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Phone:</span></div>
<input type="text" id="Editbox4" style="position:absolute;left:99px;top:130px;width:198px;height:23px;line-height:23px;z-index:8;" name="Editbox4" value="">
<div id="wb_Text6" style="position:absolute;left:10px;top:160px;width:79px;height:16px;z-index:9;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Handicap:</span></div>
<input type="text" id="Editbox5" style="position:absolute;left:99px;top:160px;width:198px;height:23px;line-height:23px;z-index:10;" name="Editbox5" value="">
<div id="wb_Text7" style="position:absolute;left:10px;top:190px;width:79px;height:16px;z-index:11;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Member</span></div>
<input type="checkbox" id="Checkbox1" name="" value="on" style="position:absolute;left:99px;top:190px;z-index:12;">
<div id="wb_Text8" style="position:absolute;left:139px;top:190px;width:79px;height:16px;z-index:13;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Non-Member</span></div>
<input type="checkbox" id="Checkbox2" name="" value="on" style="position:absolute;left:226px;top:190px;z-index:14;">
<div id="wb_Text9" style="position:absolute;left:10px;top:240px;width:57px;height:16px;z-index:15;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Player 2:</span></div>
<div id="wb_Text10" style="position:absolute;left:10px;top:265px;width:79px;height:16px;z-index:16;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Name:</span></div>
<input type="text" id="Editbox6" style="position:absolute;left:99px;top:265px;width:198px;height:23px;line-height:23px;z-index:17;" name="Editbox6" value="">
<div id="wb_Text11" style="position:absolute;left:10px;top:295px;width:79px;height:16px;z-index:18;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Address:</span></div>
<input type="text" id="Editbox7" style="position:absolute;left:99px;top:295px;width:198px;height:23px;line-height:23px;z-index:19;" name="Editbox7" value="">
<div id="wb_Text12" style="position:absolute;left:10px;top:325px;width:79px;height:16px;z-index:20;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Email:</span></div>
<input type="text" id="Editbox8" style="position:absolute;left:99px;top:325px;width:198px;height:23px;line-height:23px;z-index:21;" name="Editbox8" value="">
<div id="wb_Text13" style="position:absolute;left:10px;top:355px;width:79px;height:16px;z-index:22;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Phone:</span></div>
<input type="text" id="Editbox9" style="position:absolute;left:99px;top:355px;width:198px;height:23px;line-height:23px;z-index:23;" name="Editbox9" value="">
<div id="wb_Text14" style="position:absolute;left:10px;top:385px;width:79px;height:16px;z-index:24;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Handicap:</span></div>
<input type="text" id="Editbox10" style="position:absolute;left:99px;top:385px;width:198px;height:23px;line-height:23px;z-index:25;" name="Editbox10" value="">
<div id="wb_Text15" style="position:absolute;left:10px;top:415px;width:79px;height:16px;z-index:26;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Member</span></div>
<input type="checkbox" id="Checkbox3" name="" value="on" style="position:absolute;left:99px;top:415px;z-index:27;">
<div id="wb_Text16" style="position:absolute;left:137px;top:415px;width:79px;height:16px;z-index:28;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Non-Member</span></div>
<input type="checkbox" id="Checkbox4" name="" value="on" style="position:absolute;left:225px;top:415px;z-index:29;">
<div id="wb_Text17" style="position:absolute;left:10px;top:465px;width:57px;height:16px;z-index:30;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Player 3:</span></div>
<div id="wb_Text18" style="position:absolute;left:10px;top:490px;width:79px;height:16px;z-index:31;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Name:</span></div>
<input type="text" id="Editbox11" style="position:absolute;left:99px;top:490px;width:198px;height:23px;line-height:23px;z-index:32;" name="Editbox11" value="">
<div id="wb_Text19" style="position:absolute;left:10px;top:520px;width:79px;height:16px;z-index:33;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Address:</span></div>
<input type="text" id="Editbox12" style="position:absolute;left:99px;top:520px;width:198px;height:23px;line-height:23px;z-index:34;" name="Editbox12" value="">
<div id="wb_Text20" style="position:absolute;left:10px;top:550px;width:79px;height:16px;z-index:35;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Email:</span></div>
<input type="text" id="Editbox13" style="position:absolute;left:99px;top:550px;width:198px;height:23px;line-height:23px;z-index:36;" name="Editbox13" value="">
<div id="wb_Text21" style="position:absolute;left:10px;top:580px;width:79px;height:16px;z-index:37;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Phone:</span></div>
<input type="text" id="Editbox14" style="position:absolute;left:99px;top:580px;width:198px;height:23px;line-height:23px;z-index:38;" name="Editbox14" value="">
<div id="wb_Text22" style="position:absolute;left:10px;top:610px;width:79px;height:16px;z-index:39;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Handicap:</span></div>
<input type="text" id="Editbox15" style="position:absolute;left:99px;top:610px;width:198px;height:23px;line-height:23px;z-index:40;" name="Editbox15" value="">
<div id="wb_Text23" style="position:absolute;left:10px;top:640px;width:79px;height:16px;z-index:41;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Member</span></div>
<input type="checkbox" id="Checkbox5" name="" value="on" style="position:absolute;left:99px;top:640px;z-index:42;">
<div id="wb_Text24" style="position:absolute;left:137px;top:642px;width:79px;height:16px;z-index:43;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Non-Member</span></div>
<input type="checkbox" id="Checkbox6" name="" value="on" style="position:absolute;left:224px;top:642px;z-index:44;">
<div id="wb_Text25" style="position:absolute;left:10px;top:690px;width:57px;height:16px;z-index:45;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Player 4:</span></div>
<div id="wb_Text26" style="position:absolute;left:10px;top:715px;width:79px;height:16px;z-index:46;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Name:</span></div>
<input type="text" id="Editbox16" style="position:absolute;left:99px;top:715px;width:198px;height:23px;line-height:23px;z-index:47;" name="Editbox16" value="">
<div id="wb_Text27" style="position:absolute;left:10px;top:745px;width:79px;height:16px;z-index:48;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Address:</span></div>
<input type="text" id="Editbox17" style="position:absolute;left:99px;top:745px;width:198px;height:23px;line-height:23px;z-index:49;" name="Editbox17" value="">
<div id="wb_Text28" style="position:absolute;left:10px;top:775px;width:79px;height:16px;z-index:50;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Email:</span></div>
<input type="text" id="Editbox18" style="position:absolute;left:99px;top:775px;width:198px;height:23px;line-height:23px;z-index:51;" name="Editbox18" value="">
<div id="wb_Text29" style="position:absolute;left:10px;top:805px;width:79px;height:16px;z-index:52;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Phone:</span></div>
<input type="text" id="Editbox19" style="position:absolute;left:99px;top:805px;width:198px;height:23px;line-height:23px;z-index:53;" name="Editbox19" value="">
<div id="wb_Text30" style="position:absolute;left:10px;top:835px;width:79px;height:16px;z-index:54;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Handicap:</span></div>
<input type="text" id="Editbox20" style="position:absolute;left:99px;top:835px;width:198px;height:23px;line-height:23px;z-index:55;" name="Editbox20" value="">
<div id="wb_Text31" style="position:absolute;left:10px;top:865px;width:79px;height:16px;z-index:56;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Member</span></div>
<input type="checkbox" id="Checkbox7" name="" value="on" style="position:absolute;left:99px;top:865px;z-index:57;">
<div id="wb_Text32" style="position:absolute;left:137px;top:868px;width:79px;height:16px;z-index:58;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Non-Member</span></div>
<input type="checkbox" id="Checkbox8" name="" value="on" style="position:absolute;left:226px;top:867px;z-index:59;">
<input type="submit" id="Button1" name="" value="Submit" style="position:absolute;left:99px;top:915px;width:96px;height:25px;z-index:60;">
<input type="reset" id="Button2" name="" value="Reset" style="position:absolute;left:99px;top:945px;width:96px;height:25px;z-index:61;">
</form>
</div>
<div id="wb_Text33" style="position:absolute;left:3px;top:23px;width:668px;height:130px;text-align:center;z-index:65;">
<span style="color:#4B0082;font-family:Arial;font-size:24px;">14th Annual Floyd County Lions Club<br>Golf Tournament - Application<br><br>September&nbsp; 19, 2014 - Shotgun Start&nbsp; 1PM<br></span><span style="color:#4B0082;font-family:Arial;font-size:19px;">at Great Oaks Country Club - Floyd, VA</span></div>
<div id="wb_Form2" style="position:absolute;left:509px;top:206px;width:316px;height:207px;z-index:66;">
<form name="Form2" method="post" action="mailto:yourname@yourdomain.com" enctype="text/plain" id="Form2">
</form>
</div>
<div id="wb_Form4" style="position:absolute;left:458px;top:215px;width:342px;height:336px;z-index:67;">
<form name="addtocart" method="post" action="https://www.paypal.com/cgi-bin/webscr" id="Form4">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="youremail@youremail.com">
<input type="hidden" name="item_name" value="T-Shirt">
<input type="hidden" name="item_number" value="ITEM1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="return" value="http://www.yourwebsite.com/successful.html">
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="on0" value="Size">
<input type="hidden" name="on1" value="Color">
</form>
</div>
<div id="wb_Form3" style="position:absolute;left:527px;top:218px;width:291px;height:557px;z-index:68;">
<form name="priceoption" method="post" action="https://www.paypal.com/cgi-bin/webscr" id="Form3">
<input type="hidden" name="1-member @ $50" value="50">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="youremail@youremail.com">
<input type="hidden" name="item_name" value="T-Shirt">
<input type="hidden" name="item_number" value="ITEM1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://www.yourwebsite.com/successful.html">
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="on0" value="Add your item description">
<input type="hidden" name="os0" value="Item Details or Name">
<input type="submit" id="Button3" name="submit" value="Add to Cart" style="position:absolute;left:37px;top:302px;width:96px;height:22px;z-index:62;">
<select name="teamfees" multiple size="1" id="Combobox1" style="position:absolute;left:33px;top:33px;width:200px;height:255px;z-index:63;" title="Team fees">
<option value="Select Number of players (Member or Non-Member)">Select Up to 4 Total Players</option>
<option value="50">1 Member @ $50</option>
<option value="100">2 Members @ $100</option>
<option value="150">3 Members @ $150</option>
<option value="200">4 Members @ $200</option>
<option value="70">1 Non-Member @ $70</option>
<option value="140">2 Non- Members @ $140</option>
<option value="210">3 Non- Members @ $210</option>
<option value="280">4 Non- Members @ $280</option>
</select>
</form>
</div>
<div id="wb_Text34" style="position:absolute;left:464px;top:214px;width:61px;height:48px;z-index:69;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Number of Players</span></div>
<div id="wb_Text35" style="position:absolute;left:570px;top:578px;width:191px;height:160px;z-index:70;text-align:left;">
<span style="color:#000000;font-family:Arial;font-size:13px;">Example: If you have 1 Member and 3 Non Members, scroll to 1 Member $50 and hit the space bar; then scroll to 3 Non-Members $210 and hit the space bar. Finally, hit the Add to Cart button. This will take you to PayPal where you can login to your PayPal account or pay by credit card. </span></div>
</div>
</body>
</html>

User avatar
Pablo
 
Posts: 18820
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Configure Add-to-Cart Button from Form

Post by Pablo » Wed Jul 23, 2014 2:32 pm

What you are trying to do it not correct.
You have enabled the built-in form processor, this will disable the PayPal form processor and therefor nothing will be send to PayPal.
You either use the built-in form processor or an external script (like PayPal)

amy
 
 
Posts: 4
Joined: Tue Jul 09, 2013 8:33 pm

Re: Configure Add-to-Cart Button from Form

Post by amy » Wed Jul 23, 2014 4:37 pm

Ok. I will give PayPal a try.

Thanks!

amy
 
 
Posts: 4
Joined: Tue Jul 09, 2013 8:33 pm

Re: Configure Add-to-Cart Button from Form

Post by amy » Wed Jul 23, 2014 7:37 pm

How do I link the form of players to the PayPal?

Here is the link to the page: http://flocolions.org/golfers-registration.php

Thanks.

User avatar
Pablo
 
Posts: 18820
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Configure Add-to-Cart Button from Form

Post by Pablo » Wed Jul 23, 2014 8:44 pm

There is no easy solution for that, this is very specific.
This requires custom programming.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest