Jump to content

John182

Member
  • Posts

    9
  • Joined

  • Last visited

Everything posted by John182

  1. Senq - that seemed to have helped - thanks! The error code is much more detailed now: 02/03/2015 20:48 Module Change Package Successful - Service ID: 182 shopon 105.210.11.182 02/03/2015 20:48 Upgrade Error: Order Info Empty! Domain Info Empty! Getting Domain: SELECT * FROM `tbldomains` WHERE `orderid`='217' AND `domain`='' shopon 105.210.11.182 02/03/2015 20:48 Upgrade Error: Domain Not Found I don't quite understand though, because when I go and look in WHMCS (before the package is upgraded), the domain name is definitely there! Thanks so so much again for all of your time!
  2. Senq - thank you so much again! I updated the PHP code and simulated the condition, but once again it returned the error "Upgrade Error: Domain Not Found". I will look through the DBs like you had suggested in your earlier post and then ill get back to you thanks!!
  3. Sentq thanks very much ! Ill give it a bash and let you know! - - - Updated - - - The domain does get added to WHMCS in the trial version, btw. It just doesn't get registered....
  4. @sentq - thanks very much. This is the error I am getting now - "Upgrade Error: Domain Not Found" - any ideas now? Once again please forgive me in asking these rudimentary questions - I am new to this thanks
  5. @sentq - wow! thanks so much for your time! I used you code and tried to simulate the condition but the following error occurred (as seen in activity log) "Upgrade Error: No matching admin user found" Any ideas on how to solve this? Thanks again
  6. @sentq - thanks very much. would it be better if I use this action hook then: AfterModuleChangePackage ? It seems like it has domainid parsed to it which means I don't have to get it from the database? Im just not sure what to change in my code in order to get the domain register command to work? Any chance that you can lead me in the right direction with this one? Thanks!
  7. Klan thanks for your reply. I have added the print_r($results) to the end of my code but i still do not see any errors printed anywhere after i run the upgrade and make payment for the invoice - it's' like the action hook is not beeing "called" at all... Not sure how to confirm if domainid is null? Not sure how to confirm if "admin" is a valid admin user with API access - forgive me but i am new to this. thanks
  8. Hi All, When a user decides to upgrade from Trial Package to Paid Package, I am trying get WHMCS to register the domain (the action hook i am using is: AfterProductUpgrade). NOTE: I have configured WHMCs such that it does not register the domain on sign up of free package. i have created an action hook as per below but it is not working at all. Am i missing something obvious? Thanks!! <?php function register_domain_upgrade($vars) { $command = "domainregister"; $adminuser = "admin"; $values["domainid"] = "1"; $results = localAPI($command,$values,$adminuser); return $results; } add_hook("AfterProductUpgrade",1,"register_domain_upgrade");
  9. Hi all, I am in the process of setting up a new product with the following Setting enabled: Automatically setup the product as soon as the first payment is received. This can be set under Setup->Products/Services - > Products/Services->(select product) ->Module Settings. My question is as follows: Let's say the End User orders the product on the 5/08/14. Assume this is a reoccurring monthly package. Let's assume that I have set Due Payment to be 7 days after invoice date. This means that payment due is 12/08/14. So next invoice date is 5/09/14 and next due payment is 12/09/14. Now let's say the user only makes payment on the 29/08/14. So his/her product will only get created on the 29/08/14.... HOWEVER their next invoice date will be 5/09/14 ! So as one can imagine the adverse scenario of the User using his/her package for about 6 days before being asked for next payment! Is there a way to set WHMCS such that it will make next invoice due date from date OF PAYMENT? or how else can i prevent this scenario from happening? Any help would be greatly appreciated
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated