DaveK Posted July 8, 2009 Share Posted July 8, 2009 (edited) I'm trying to create an import script for a proprietary system, which has each order listed as an individual package. I was wondering how to automatically add a product, and set it's recurring payment to a unique amount per product, per client (clients registered at different times have different prices due to promotions) Edit: It seems like the sql table "tblhosting" has most of this info, however I was unsure how to link this to an orderid. Edited July 8, 2009 by DaveK more info added 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted August 11, 2009 WHMCS CEO Share Posted August 11, 2009 Hi, You will need to add your clients to the tblclients table, and their services to tblhosting where the relations are tblhosting.userid=tblhosting.id and tblhosting.packageid=tblproducts.id. You can set the tblhosting.amount field on a per user basis to overide the product default and don't need to worry about creating order entries for the items you manually add. Matt 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.