betterhosting Posted July 5, 2014 Share Posted July 5, 2014 I noticed there isn't an API for the internal system that would allow me to create a custom cart for the user. Normally the calculation would be done with some pretty basic math, but I'm hoping there is a function I can use to get the price after any promotional codes are used to make sure the math I am displaying to the user with my module and the actual price submitted to an order are the same. I'm looking for any level of technical solution for this. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 5, 2014 Share Posted July 5, 2014 quote or invoice should do all that for you. 0 Quote Link to comment Share on other sites More sharing options...
betterhosting Posted July 5, 2014 Author Share Posted July 5, 2014 quote or invoice should do all that for you. Neither one of these endpoints allow me to find the total by WHMCS products and promo codes. These are both line item totals and percentage based discounts. Thanks for help though. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 5, 2014 Share Posted July 5, 2014 If you need something down and dirty for one client, you could always run thru an order, take a snap shot of the cart view, that gives the grand total including any promos. You might be able to make it look nice. I also looked at https://www.whmcs.com/appstore and i didnt see anything for this. Are alot of your clients asking for this, most people know there will be variations with tax and extras at the time of purchase. 0 Quote Link to comment Share on other sites More sharing options...
betterhosting Posted July 5, 2014 Author Share Posted July 5, 2014 This isn't really a viable solution to my issue. I need a pragmatic way of getting these item lines so that I can add it into my module. This isn't about a customer feature or handling customers itself. It's a clogged part of my development in my module. 0 Quote Link to comment Share on other sites More sharing options...
betterhosting Posted July 14, 2014 Author Share Posted July 14, 2014 bump, any info would be great. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted July 14, 2014 Share Posted July 14, 2014 sounds like you need a hook, have you checked this out http://docs.whmcs.com/Hooks 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.