Jump to content

pRieStaKos

Member
  • Posts

    739
  • Joined

  • Last visited

  • Days Won

    24

pRieStaKos last won the day on October 2 2023

pRieStaKos had the most liked content!

3 Followers

About pRieStaKos

Recent Profile Visitors

4520 profile views

pRieStaKos's Achievements

Senior Member

Senior Member (3/3)

  • Great Support Rare
  • Helpful Rare

Recent Badges

48

Reputation

8

Community Answers

  1. BS is old fashion...It's hilarious that WHMCS is still using 3.4.1
  2. Maybe because you have access to testing.whmcs.community.
  3. \WHMCS\Database\Capsule::table("tblhosting") ->join("tblclients", "tblhosting.userid", "=", "tblclients.id") ->join("tblproducts", "tblhosting.packageid", "=", "tblproducts.id") ->select("tblclients.email", "tblclients.phonenumber") ->whereIn("tblhosting.domainstatus", ["Cancelled", "Terminated"]) ->where("tblhosting.domain", "<>", "") ->whereIn("tblproducts.gid", [1, 2]) # Add product group id here ->get(); SELECT `tblclients`.`email`, `tblclients`.`phonenumber`, `tblproducts`.`name` FROM `tblhosting` INNER JOIN `tblclients` ON `tblhosting`.`userid` = `tblclients`.`id` INNER JOIN `tblproducts` ON `tblhosting`.`packageid` = `tblproducts`.`id` WHERE `tblhosting`.`domainstatus` ON ("Cancelled", "Terminated") AND `tblhosting`.`domain` <> "" AND `tblproducts`.`gid` in (1, 2) # Add product group id here You can always modify it, as your desire.
  4. AND `tblhosting`.`id` IN (2, 3) # Add here your service ids Replace `tblhosting`.`packageid` with `tblhosting`.`id`
  5. \WHMCS\Database\Capsule::table("tblhosting") ->join("tblclients", "tblhosting.userid", "=", "tblclients.id") ->select("tblclients.email", "tblclients.phonenumber") ->whereIn("tblhosting.domainstatus", ["Cancelled", "Terminated"]) ->where("tblhosting.domain", "<>", "") ->whereIn("tblhosting.packageid", [2, 3]) # Add here your product ids ->get(); # The above is actually this query SELECT `tblclients`.`email`, `tblclients`.`phonenumber` FROM `tblhosting` INNER JOIN `tblclients` ON `tblhosting`.`userid` = `tblclients`.`id` WHERE `tblhosting`.`domainstatus` IN ("Cancelled", "Terminated") AND `tblhosting`.`domain` <> "" AND `tblhosting`.`packageid` IN (2, 3) # Add here your product ids
  6. Check an email if it contains "value=". Or your check will fall to else. Query is OK. You message content you need to check.
  7. You have to use one of there hook indexes and you have invoiceid in both. Then you can call GetInvoice API for all invoice information.
  8. You need a hook to set `ordernum` on every new (or old) order. https://developers.whmcs.com/hooks-reference/shopping-cart/#overrideordernumbergeneration
  9. You need to use GetUsers. I you see the example results, you get his clients.
  10. Prices up, actual needed features down...
  11. I hope this was made on a staging/development environment...
×
×
  • 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