War Room

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

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
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: 54
Thanks: 3
Thanked 2 Times in 2 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

Matt D. is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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: 282
Thanks: 62
Thanked 59 Times in 21 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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-21-2009, 02:42 PM   #4
HyperActive Warrior
War Room Member
 
HomeComputerGames's Avatar
 
Join Date: Jun 2009
Location: Chesterton, IN
Posts: 289
Thanks: 6
Thanked 39 Times in 35 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

HomeComputerGames is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-21-2009, 06:48 PM   #5
Warrior Member
War Room Member
 
willmartinapj's Avatar
 
Join Date: Jul 2009
Location: Atlanta,GA
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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...

XsiteProNicheTemplates.com - Niche XSite Pro Niche Templates Returning Soon!
willmartinapj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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,321
Blog Entries: 17
Thanks: 46
Thanked 83 Times in 58 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.

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!
Ron Killian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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: 54
Thanks: 3
Thanked 2 Times in 2 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


Last edited by Matt D.; 09-22-2009 at 05:41 AM. Reason: wrong spelling
Matt D. is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2009, 06:46 AM   #8
HyperActive Warrior
War Room Member
 
Join Date: May 2009
Location: Sydney, Australia
Posts: 159
Thanks: 16
Thanked 8 Times in 7 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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2009, 01:27 PM   #9
HyperActive Warrior
War Room Member
 
warrich's Avatar
 
Join Date: Sep 2009
Location: warrichpk@gmail.com
Posts: 171
Thanks: 0
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via MSN to warrich Send a message via Yahoo 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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 10:03 PM.