Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-21-2009, 06:17 AM   #1
Super Warrior
War Room Member
 
Matt D.'s Avatar
 
Join Date: Aug 2009
Posts: 89
Thanks: 7
Thanked 4 Times in 4 Posts
Default How to limit the number of downloads?

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

Get 12000 backlinks for $5, push your buffer sites.
Click Here
To Get 10 Limited High Quality PLR Articles In Evergreen Attract Women Niche For As Low As $9 Right Now. Hurry Up... The Price Will Go Up.

Click Here. Think&Grow Rich Audio Book PLR PLUS Massive PLR Bonuses In The Same Niche.
Matt D. is offline   Reply With Quote
Old 09-21-2009, 08:17 AM   #2
HyperActive Warrior
War Room Member
 
Patrice Le Vexier's Avatar
 
Join Date: Jun 2008
Posts: 300
Thanks: 67
Thanked 72 Times in 27 Posts
Contact Info
Send a message via MSN to Patrice Le Vexier
Default Re: How to limit the number of downloads?

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
Patrice Le Vexier is offline   Reply With Quote
Old 09-21-2009, 12:42 PM   #3
Warrior Member
War Room Member
 
Join Date: Jan 2009
Posts: 23
Thanks: 9
Thanked 0 Times in 0 Posts
Default Re: How to limit the number of downloads?

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

fifthnormal is offline   Reply With Quote
Old 09-21-2009, 02:42 PM   #4
Advanced Warrior
War Room Member
 
Ken Durham's Avatar
 
Join Date: Jun 2009
Location: Chesterton, IN
Posts: 923
Thanks: 129
Thanked 193 Times in 153 Posts
Default Re: How to limit the number of downloads?

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

Webmaster Services
List Your Wealth Building Systems and Services for Free

Insanity is doing the same thing over and over and expecting a different result ~ Einstein
Insanity is doing the same thing over and over and never getting the same results ~ Ken

Ken Durham is offline   Reply With Quote
Old 09-21-2009, 06:48 PM   #5
Active Warrior
War Room Member
 
willmartinapj's Avatar
 
Join Date: Jul 2009
Location: Atlanta,GA
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to willmartinapj
Default Re: How to limit the number of downloads?

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...

*WSO - ContentClocker - *WSO - Have a website? Marketing or not, this script is a must. Only $7
willmartinapj is offline   Reply With Quote
Old 09-21-2009, 08:09 PM   #6
Senior Warrior Member
War Room Member
 
Ron Killian's Avatar
 
Join Date: Jun 2007
Location: Arkansas, USA.
Posts: 1,493
Blog Entries: 17
Thanks: 84
Thanked 123 Times in 97 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via ICQ to Ron Killian Send a message via MSN to Ron Killian
Default Re: How to limit the number of downloads?

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.

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!
Ron Killian is offline   Reply With Quote
Old 09-22-2009, 05:31 AM   #7
Super Warrior
War Room Member
 
Matt D.'s Avatar
 
Join Date: Aug 2009
Posts: 89
Thanks: 7
Thanked 4 Times in 4 Posts
Default Re: How to limit the number of downloads?

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

Get 12000 backlinks for $5, push your buffer sites.
Click Here
To Get 10 Limited High Quality PLR Articles In Evergreen Attract Women Niche For As Low As $9 Right Now. Hurry Up... The Price Will Go Up.

Click Here. Think&Grow Rich Audio Book PLR PLUS Massive PLR Bonuses In The Same Niche.

Last edited by Matt D.; 09-22-2009 at 05:41 AM. Reason: wrong spelling
Matt D. is offline   Reply With Quote
Old 09-22-2009, 06:46 AM   #8
HyperActive Warrior
War Room Member
 
Join Date: May 2009
Posts: 175
Thanks: 18
Thanked 11 Times in 9 Posts
Default Re: How to limit the number of downloads?

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?
Marcel Hartmann is offline   Reply With Quote
Old 09-22-2009, 01:27 PM   #9
Advanced Warrior
War Room Member
 
warrich's Avatar
 
Join Date: Sep 2009
Posts: 653
Thanks: 2
Thanked 27 Times in 24 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to warrich Send a message via Skype™ to warrich
Default Re: How to limit the number of downloads?

you have to use db to count, or contact me i will make a custom script for this.

warrich is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
downloads, limit, number

Thread Tools

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



All times are GMT -6. The time now is 06:26 AM.