codemaster2008 Posted July 12, 2010 Share Posted July 12, 2010 We have an unusual situation here and I'd like to know if someone out there knows how to deal with it. I have this product, which has two payment terms: Monthly and Annually. If the customer picks the monthly plan everything will be "normal" and account created after payment. However the "Annually" term gets complicated. The user will pay 50% (half), get the account created and pay the other half 30 days latter. So, is it possible? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 12, 2010 WHMCS Support Manager Share Posted July 12, 2010 I'm afraid that isn't possible. 0 Quote Link to comment Share on other sites More sharing options...
codemaster2008 Posted July 12, 2010 Author Share Posted July 12, 2010 Hi John, it maybe sounds crazy but my idea is use action hooks to perform these tasks: - Identify the product - Automatically assign a 50% discount and a note to the order explaining it - Create a new invoice for the other 50% due on 30 days A lot of things going on under the hood but I believe will work. When the user pay the first invoice the product is activated and this invoice is now half of the price. I'm not a php programmer but after look at php documentation and the little documentation available for action hooks i can hook to the following events and test everything that i need: PreCalculateCartTotals AfterShoppingCartCheckout PreShoppingCartCheckout So my questions now are: How do i remove or add items to the order/invoice from these events? I'm planing to use use "PreCalculateCartTotals" for another thing but to the question here, If i'm not wrong i could: - Change the order on PreShoppingCartCheckout (Add discount) - Add a new invoice on AfterShoppingCartCheckout 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.