![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Super Warrior
War Room Member
Join Date: Aug 2009
Posts: 54
Thanks: 3
Thanked 2 Times in 2 Posts
|
Hi,
I'm a "do it yourself" person. I'm an amateur at website programming. I'm selling a limited product. I have set the download website and the download is working fine. My problem is that I don't how I will control the number of downloads. Let's say I have a product limited to 100 customers, how can I change the download page to "sold out" page exactly when 100 people buy without me always checking? It's probably very obvious to you, buy I googled many different keywords and found nothing on that subject. Do you have any simple solution for this? Thank you |
|
|
|
|
|
|
|
|
#2 |
|
HyperActive Warrior
War Room Member
Join Date: Jun 2008
Posts: 282
Thanks: 62
Thanked 59 Times in 21 Posts
|
If every time you get a sale you store the transaction into a database, just count the number of transactions recorded at loading time and "close the store" when that number reaches 100.
Hope it helps. Patrice |
|
|
|
|
|
#3 |
|
Warrior Member
War Room Member
Join Date: Jan 2009
Posts: 23
Thanks: 9
Thanked 0 Times in 0 Posts
|
You could do something simpler, like having a PHP script write to a file on the server that stores the counter. That way you wouldn't need to have a database for it. It's a pretty simple job for someone who knows PHP.
Daniel |
|
|
|
|
|
|
|
|
#4 |
|
HyperActive Warrior
War Room Member
Join Date: Jun 2009
Location: Chesterton, IN
Posts: 289
Thanks: 6
Thanked 39 Times in 35 Posts
|
Either way will work.
Once you have the number of downloads in a variable a simple if statement will take care of the rest: if($mycount>=100){ $myMessage='Sold Out'; }else{ $myMessage='<a href="yourdownload">'; / could redirect to a thank you page before recording the count in case they do not download once on the page $mycount++; //update your counter document or field } PHP: file_get_contents - Manual PHP: fwrite - Manual |
|
|
|
|
|
|
|
|
#5 |
|
Warrior Member
War Room Member
Join Date: Jul 2009
Location: Atlanta,GA
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
that above option is flawed being that if they just refreshed the page you would lose your total sells. so regardless of which data storage option you decide to make sure you assign the user a special id.
then if the id exist the data isn't updated. i would also add an option to limit the number of times the buyer can access the dl link as well |
|
ButterflyMarketingPlus.com - Butterfly Marketing scripts and tips...
XsiteProNicheTemplates.com - Niche XSite Pro Niche Templates Returning Soon! |
|
|
|
|
|
|
#6 |
|
Senior Warrior Member
War Room Member
Join Date: Jun 2007
Location: Arkansas, USA.
Posts: 1,321
Blog Entries: 17
Thanks: 46
Thanked 83 Times in 58 Posts
|
It would help to know what you are using to sell the product in the first place. Is it a pre-made script, or your own? What language?
One option, the 7dollarscrets script can limit downloads and it's very inexpensive. I use to be hands on myself for many years, till I learned I can save ALL kinds of time and frustration by buying something that is ready to go. Not to mention, I don't have much hair left to pull out ![]() Just a thought. |
|
Resveratrol PLR Articles - $40+ CPA Offers - Weight Loss - Metabolism - Anti Aging - Fresh & Unique! WSO Special.
Largest Selection of PLR Articles on the Planet! Also Audio, PLR Ebooks, Graphics, PLR Video, Templates, PLR Websites and more with Private Label Rights. Discover Big Profits with the FREE PLR Newsletter! |
|
|
|
|
|
|
#7 |
|
Super Warrior
War Room Member
Join Date: Aug 2009
Posts: 54
Thanks: 3
Thanked 2 Times in 2 Posts
|
I use paydotcom.com Paypal based. I have no idea what they use. I know very little of programming language.
Actually what would also do, is that when I'd reach 100 buyers, my link would change, so instead of going to the sales page it would go to "sold out" sales page or just not be linkable. If I bought the scripts I probably wouldn't know how to implement them. Thank you |
|
Last edited by Matt D.; 09-22-2009 at 05:41 AM. Reason: wrong spelling |
|
|
|
|
|
|
#8 |
|
HyperActive Warrior
War Room Member
Join Date: May 2009
Location: Sydney, Australia
Posts: 159
Thanks: 16
Thanked 8 Times in 7 Posts
|
If you're using PayPal, you'd have to code a script with their API in mind. with merchants as well. Pay somebody $30 on RentACoder to do this for you. It wouldn't be too hard (you can use URL properties and a PHP referrer check on the confirmation page to aggregate a number up to the point where it's 100, at which point the sales page would change), but is $30 really worth 10 hours of headaches?
|
|
|
|
|
|
#9 |
|
HyperActive Warrior
War Room Member
Join Date: Sep 2009
Location: warrichpk@gmail.com
Posts: 171
Thanks: 0
Thanked 2 Times in 2 Posts
|
you have to use db to count, or contact me i will make a custom script for this.
|
|
|
|
|
|
|
![]() |
|
| Tags |
| downloads, limit, number |
| Thread Tools | |
|
|
![]() |