latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Selling individual downloads

Home Forums Community Forum Selling individual downloads

This topic contains 1 reply, has 2 voices. Last updated by  David Welch 4 years, 9 months ago.

Topic Author Topic
Posted: Sunday Mar 18th, 2012 at 6:33 pm #8504

I have a service that provides a service to members that results in producing a downloadable document as a final product. Each product is specifically for the individual subscriber that requested it and should not be available or viewable by any other subscriber.

I want to create a subdirectory in the protected file folder for each subscriber. I want to place all of the completed products for each subscriber in that subdirectory. Then I want to show a page with Buy buttons for each product to enable individual purchase by the subscriber.

I believe I understand how I can create custom download links for each download.
I’m not sure how to attach that file to a purchase button.
I’d also like some way to scan that directory and populate a page with a button for each available download.
Then, I’d need a way to either mark purchased items, or remove them from the purchase page.

Is any or all of that possible? I don’t mind getting my hands dirty with code.

Thanks,
Glenn

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Sunday Mar 18th, 2012 at 11:35 pm #8512
David Welch
Username: dwbiz05

My understanding, and again I’m not an employee of s2member, is that downloads are not sold on a per download basis, necessarily. You don’t attach them to a paypal button.

Typically, what you do is allow a certain number of downloads per membership level. I would suggest reading the information in the first 2 sections of the Download Options of your s2member plugin. This will explain a lot how it works.

Some Options:
1. Set your membership levels to match the number of downloads. Then use membership level filtering on your download page to show only the correct ones for that level.

2. You could get a little more complicated and filter your file download links by membership level AND custom capabilities. This would allow you to create more than one file option as well as mix and match file types when creating buttons.

It’s going to take some work either way and if you don’t mind getting your hands dirty, you should be fine. I would take a look at the Custom Capabilities videon on s2member website to see if that option could work for you. Without knowing all the ins and outs of your setup that’s my suggestion.

Listing files in a directory is a fairly simple php call, of course if you know how your script is saving it, you shouldn’t need to mess with calling all the files (imo):

$dir = "images/"; //change to the full path to your dir.
$files = scandir($dir);
foreach($files as $key => $value){
echo do_shortcode('[s2File download="'.$value.'" /]');

Hope that helps.

Dave

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.