Jump to content

ccdave

Member
  • Posts

    39
  • Joined

  • Last visited

About ccdave

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ccdave's Achievements

Member

Member (2/3)

0

Reputation

  1. Hi When I click the transfer button I get the error: An Error Occurred 2410: No such contact found No documentation on it anywhere!? Help! Dave
  2. Thanks. I am retrieving items from my database OK as I have echo'd those but I will try this today. Thank you for your suggestion.
  3. Does anyone know if there is a way to add billable items to the client area? We use it to bill for support per month (for general network support not for products sold) and clients would like to see it.
  4. anyone? Don't seem to get many replies in these forums...
  5. Can anyone help with this please? I just get a response: The following error occured: With no error. I have replaced the sensitive parts for obvious reasons. <?php // error_reporting(E_ALL); // ini_set('display_errors', 1); $url = "http://mywhmcsurl/includes/api.php"; # URL to WHMCS API file $username = "myadminuser"; # Admin username goes here $password = "myadminpassword"; # Admin password goes here $db = mysqli_connect("localhost", "dbname", "dbpass", "dbtable"); $strSQL = "select * from tbl_contract"; $query = mysqli_query($db, $strSQL); while($row = mysqli_fetch_array($query)) { $postfields["username"] = $username; $postfields["password"] = md5($password); $postfields["action"] = "createinvoice"; $postfields["userid"] = $row["bcid"]; $postfields["date"] = "20110901"; $postfields["duedate"] = "20110901"; $postfields["paymentmethod"] = "banktransfer"; $postfields["sendinvoice"] = false; $postfields["itemdescription1"] = $row["contract_type"]; $postfields["itemamount1"] = $row["amount"]; $postfields["itemtaxed1"] = 1; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = explode(";",$data); foreach ($data AS $temp) { $temp = explode("=",$temp); $results[$temp[0]] = $temp[1]; } if ($results["result"]=="success") { # Result was OK! } else { # An error occured echo "The following error occured: ".$results["message"]; } } // CLOSE CONNECTION mysqli_close($db); ?>
  6. Hi All I have to import invoices from bespoke system into WHMCS. I started my WHMCS invoice number at 15000 and the bespoke system are numbers lower than this. I have seen using the API I cannot specify the invoiceid! So I am asking if I can just enter these direct into the database without using the API? I know you shouldn't do this but I don't think I have a choice. Opinions please Dave
  7. I don't think you can have quantity on addons only configurable options? Also someone may sign up for web hosting in January but then add the premium mailbox in say June. Configurable options nly allow you to match the billing cycle. I think??
  8. Hi I am reselling hosting via Heart Internet. The hosing package comes with unlimited mailboxes which are 400mb each. Via my reseller control panel I can add premium mailboxes which are 2GB each. I want to sell these in WHMCS. Which is the best way to do this? I know the setup will be manual but as they can purchase more than one premium mailbox I am assuming this cannot be done via an addon and needs to be a base product? Or can you buy multiple addon items? Thanks
  9. Thanks That doesn't make sense though? On the admin side when placing an order it says X to be paid now and X annually. That client has since paid and the next date now does say next year so I will have to see what happens. I am hoping John is wrong as I have added about 300 orders from the admin side!
  10. Anyone?****It seems to only happen to someone who has paid annually.
  11. Ok I have that thanks but surely I only get that screen after I have added the product and the invoice is produced? Newbie help required!
  12. I am probably being blind but I cannot see the first payment amount field?!
  13. Hi Quick generic question! I am migrating over from another billing system and we have always invoiced on the 1st of each month. I have added the product and enabled prorata, great. However I was so busy on the 1st I didnt get a change to add all of the orders so now it is the 4th and it has of course removed 3 days as expected. If I use the price override to put in the cost for a full month will this affect next months? Or will it be OK. For example the product is £1.43. I am entering it now and it is saying it is £1.29. If I manual override to £1.43 will next months be £1.43 or will it be £1.43 plus a few days? Or is there any way to change the system date quickly then change it back? Thanks Dave
  14. To expand on this I backed up the db and set the invoice before due date back to 30 and it did create another invoice for someone who has already paid a year. Can anyone help as to why?
×
×
  • 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