Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Set a limit on a paypal button.
Old 03-01-2007, 03:44 PM Set a limit on a paypal button.
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Is there a way to set a minimum order on a paypal button?

For instance, I want to offer a discounted price for anything over 26 pair.

If someone orders less than 26 pair, it would be regular price

If over 26 pair it would input a discounted price.


Any suggestions?
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
 
Register now for full access!
Old 03-01-2007, 03:53 PM Re: Set a limit on a paypal button.
liandra's Avatar
Experienced Talker

Posts: 35
Trades: 1
how about using a script (e.g : php or javascript (if the order amount and paypal button on the same page)), create 2 paypal button with 2 different prices.
the script will check how many order then will change/print out the right button
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
liandra is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 03:57 PM Re: Set a limit on a paypal button.
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Since I'm a novice coder. Could you explain how I could do this?
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 03-01-2007, 04:03 PM Re: Set a limit on a paypal button.
liandra's Avatar
Experienced Talker

Posts: 35
Trades: 1
Code:
<?php

if (!empty ($_POST))
{
 if ($_POST['ordertotal']>="26")
 {
  print "Paypal Button for order more than 26";

  } else
 {
  print "Paypal Button for order less than 26";

 }

}

?>

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Total Order : <input type="text" name="ordertotal" />
<br />
<input type="submit" value="Order!" />
</form>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by liandra; 03-01-2007 at 04:06 PM..
liandra is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Set a limit on a paypal button.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.70680 seconds with 12 queries