Contributions
Subscription Downloads Mod
Title : Subscription Downloads Mod 1.0
Author : Mark Bowen
What the contribution does :
This contribution is very very simple and is my first contribution so please go steady on me if it is not exactly what you are after!
This will simply patch the main 'product_info.php' file so that registered users will be able to see the whole of a products description whereas non registered or non logged in users will see a shorter description.
This could be very useful for if you want to create a site with downloads and you want people to pay a monthly / yearly fee or whatever you wish and then if they are a registered user and log in then they will be able to see the whole product description and all the download links.
At the moment all you need to do is when you enter your products into the database is provide the information in the following format :
------------------------------------------------------------------------------
This is the text that will show for non - registered users.
^
This text will also show for registered users!!
------------------------------------------------------------------------------
The '^' character is used as a placeholder whereby any text placed beneath it will only be shown to registered users and any non - registered users will just see the text above the character. You could use any text string here that you like instead of the '^' symbol but you must make sure that in the code you will install that you remember to change the $break_character variable to reflect this.
Hope it is of some help to people somewhere as this is something that I needed for a site but couldn't really find anything out there that would do what I needed as easily or cheaply!!!
Regards,
Mark Bowen
Expand All / Collapse All
Basically the same as V1.1, but have altered the code slightly to allow admins to set the break character in Configuration > Product Listing and to make it work even if there isn’t a break character in the description (I had a problem where if the character wasn’t in there none of the description displayed)
Also included, changed product_info.php from a clean install of OSC2.2MS2
Instructions included in Acrobat format (PDF), Rich Text Format (RTF) and Text format (TXT)
Full credit to Mark for a cool contrib
Fixed the text instructions for ya, as some people, like me can't be bothered installing Acrobat ;-)
As with Mark's cool contrib...
NO ACTUAL CHANGES TO CORE CODE!
Zip file contains instructions in Acrobat (PDF), Rich Text Format (RTF) and Text format (TXT)
The RTF file is Mark's original text file
This package replaces the original. All that is different is I have taken out the .txt file as on some systems it was showing as garbled text. Instead I have just left the PDF file in for people to view.
NO ACTUAL CHANGES TO CORE CODE THOUGH!
Regards,
Mark Bowen
<!-- NO ATTACHMENT IN THIS PACKAGE -->
Just a quick message to say a massive thankyou to a couple of the users on the osCommerce forums for their help with this project.
Amanda - http://forums.oscommerce.com/index.php?showuser=37332
and
Emmett - http://forums.oscommerce.com/index.php?showuser=25885
Thanks to them I was able to create my first modification to the cart which allowed me to get something I was after very quickly indeed.
Thanks again to both of you.
Regards,
Mark Bowen
Title : Subscription Downloads Mod 1.0
Author : Mark Bowen
http://www.something2ad.com
info@something2ad.com
What the contribution does :
This contribution is very very simple and is my first contribution so please go steady on me if it is not exactly what you are after!
This will simply patch the main 'product_info.php' file so that registered users will be able to see the whole of a products description whereas non registered or non logged in users will see a shorter description.
This could be very useful for if you want to create a site with downloads and you want people to pay a monthly / yearly fee or whatever you wish and then if they are a registered user and log in then they will be able to see the whole product description and all the download links.
At the moment all you need to do is when you enter your products into the database is provide the information in the following format :
------------------------------------------------------------------------------
This is the text that will show for non - registered users.
^
This text will also show for registered users!!
------------------------------------------------------------------------------
The '^' character is used as a placeholder whereby any text placed beneath it will only be shown to registered users and any non - registered users will just see the text above the character. You could use any text string here that you like instead of the '^' symbol but you must make sure that in the code you will install that you remember to change the $break_character variable to reflect this.
Hope it is of some help to people somewhere as this is something that I needed for a site but couldn't really find anything out there that would do what I needed as easily or cheaply!!!
Regards,
Mark Bowen
Note: Contributions are used at own risk.