| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
A Digital Subscription Module is born | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
A Digital Subscription Module is born
In case anyone is interested, I have nearly completed my DigitalSubscription module for X-Cart. It works almost identically to the regular subscription module, but it allows you to specify a protected directory which users can gain access to after they pay for the specific product to which the subscription is attached via the x-cart admin area. The users are then able to broswe their DigitalSubscriptions via their user profile area. The actually directory protection is handled via a script that modifies .htaccess files (Apache servers only) in the specified directories when users purchase a subscription.
I will probably only make the files available by request because creating this module required modifying many x-cart files and I'm not about to bug test them myself for everyone's various x-cart installs. Suffice it to say, I had to modify all of the following files:
It was a lot of work. In retrospect I'm not sure if x-cart "modules" actually qualify as what I've always considered to be modules. They are definitely not plug-in type modules and are not particularly easy to figure out or to code. The last thing I need to do before the module is ready for prime-time is to add the .htaccess delete routines for when a user unsubscribes or his subscription expires. Hopefully the site will actually be live in another week so interested parties can see it in action. I'm not even sure why I'm telling everyone except that I was so excited about figuring this out that I had to tell SOMEONE. I think the file list above might be helpful for anyone else trying to write a module. You've got to modify more files than you might think.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#2
|
|||||||
|
|||||||
Price change
Question: with your subscription mod. If the price of a subsciption changes does an existing user price change as well. I'm looking to have the subscription that a user is paying to stay at the price they paid for even if the product subscription goes up or down.
|
|||||||
#3
|
|||||||||
|
|||||||||
nope..
My module doesn't have that feature. Sorry. I guess you'll need to save the product price info with the subscription info so you can keep a record of the specific customer's price. You could probably add a "renewal_cost" column to your "digital_subscription_customers" table to provide that info. If you need any advice as you work on your module, feel free to ask more questions under this topic. If you start another topic and you want my input, just send me a personal message with the URL for the topic.
Regards, minorgod.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#4
|
|||||||
|
|||||||
Subscription
After paying the xteam for this mod the option to globally or individually change a subscription is now available in xcart 3.3.1 ... well at least it is included in the tables. The xcart_tables.sql has been altered the same way my custom one was via the table xcart customer subscription table. However it may not be completely active, due to a missing php file.
My cart can now alow for individual customer subscription changes and global changes. If someone needs the ability to Change subscription fee globally etc. for existing customers let me know. :P |
|||||||
#5
|
|||||||||
|
|||||||||
I'd love to get some info on this. How far along is it, has it been completed?
|
|||||||||
#6
|
|||||||||
|
|||||||||
I'd love to get some info on this. How far along is it, has it been completed?
|
|||||||||
#7
|
|||||||||
|
|||||||||
grrrrrr
I'm working on upgrading my digital subscription module from 3.1.3a to 3.3.1 and it's a biotch! Everything works basically the same as the old version, but I'm trying to figure out how to do a "renew" feature for the customer interface, while still using the standard cart/checkout code so that I can allow customers to use all the payment methods. I've ended up basically trying to add another $mode to the cart code for renewals so that when $renewalmode=="true", then the cart won't recalculate and various other things happen instead. Anyway, just wanted to vent my frustration. I hate templates. I'm starting to wish this application were coded in straight PHP so I could understand it!
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#8
|
|||||||||
|
|||||||||
We're staying with 3.2.1
|
|||||||||
#9
|
|||||||
|
|||||||
This Module
Could this module be use for monthly billed web hosting? I would be interested in that feature.
Thanks John7 |
|||||||
#10
|
|||||||||
|
|||||||||
You could probably use the regular subscription module for that, if you're not tying it into an automated user management system like PLESK. If you did need to tie it into a user management system, it would be a bit trickier. You'd need to write a variation of the module for that purpose.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|