Guest Posted June 2, 2006 Share Posted June 2, 2006 Hi everybody. One of my clients is after something that I have seen requested a massive number of times, so I have taken it on myself to tackle it once and for all. Subscriptions. Yes, I know there is a module which will pass through to PayPal subscriptions, but what this in effect does is bypass the shopping cart and just add in a paypal link to the product info page. I want to devise a system whereby people can use their shopping basket to add in subscription items, have this info stored and then complete their order. It is imperitave that this work for subscription AND non-subscription items. So, in addition to the current product price, it needs to carry a product_subscription amount through, total it and present this in the checkout pages ready for passing to the payment processor. So far, I have added in an extra field to the admin panel under price (gross) called subscription_amount. I have got this to display correctly in the catalog, with the price being a setup fee and the subscription showing as ?x.xx per month as defined in admin. I have also got this to NOT show if no subscription proce has been set in admin, so the product displays as normal. I have even plugged into the paypal module so that it goes into paypal subscriptions direct (the only weakpoint being this has no basket function and just shows one total - this is a weakness with paypal and cant see any way around it). Now to the bit I'm stuck on, and for somebody who has been working with osc for 3 or 4 years this is a tad embarassing to admit, but I cant for the life of me figure how to add a susbcsriptions field into the cart and order_total functions. I have no doubt that this will mean tinkering with a large amount of files, but I'm quite happy to put the work in if someone can be kind enough to point me in the right direction. Obviously once I have a fully functioning version working I will be releasing as a contrib...any help appreciated! Also, I would like to create a direct debit payment module using the same info to create a printable page with my clients bank details and the amounts already filled in dynamically, along with a unique identifier (order number would do for this) Anyone want to look at what Ive managed to complete so far, please get in touch and I'll send you a zip file. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.