Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. Hi all, I've been searching for this question/answer for a while but I can't find it anywhere. Maybe someone can point me in the right direction? Essentially I need to add some extra information in the .AU domain registration fields as my customers are becoming confused when entering their Registrant Name and Registrant ID fields. So I need to know which file to edit so I can add some instructions. Eg where it says Registrant Name I would like to add in brackets (Your Name/Business/Company) and where it says Registrant ID I would like to add in brackets (Your matching ABN/ACN/Business Number) This way they are clear as to what to enter in these fields. I thank any/all in advance with any assistance you can offer. cheers james
  3. Welcome to WHMCS.Community 1geekhosting! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  4. brian!

    Client area Template Files are not Working Properly

    Hi Nyirenda, i'm seeing what they're seeing - the site seemed to be working fine and was able to search for domains without issue or errors - but I can't post a screenshot, as your site is now unavailable.
  5. Yesterday
  6. Welcome to WHMCS.Community Gustavo Fracaro! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  7. @brian! Thank you.
  8. Version 2.2.62 released few minutes. It brings 3 long-awaited features. 1. WebService There's a new plugin named WebService (preview) that is a must-have in case next year you have to comply to electronic invoicing. Here is the documentation. With this guy you can connect to BX via API and get all you need to integrate your WHMCS with E-Invoicing of any country or accounting software. It has been designed to look exactly like External API of WHMCS (It's NOT WHMCS API). <? /* [... cut ...] */ $postData['action'] = 'Get'; $postData['start'] = 'Month to date'; // Supports dates (2019-06-10), integers (5 = last five days) and keywords (yesterday, last 7 days, last week, year to date, previous month...) //$postData['end'] = '2019-06-15'; // Used to filter by range of dates //$postData['invoicenum'] = '2019-150'; // Search by Invoice Number //$postData['invoiceid'] = '10'; // Search by Invoice ID //$postData['doctype'] = 'Invoices'; // "Invoice" returns invoices, "CreditNotes" returns credit notes, "All" or empty returns both $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $URL . 'modules/addons/BillingExtension/core/BillingExtension_Admin/resources/einvoice/einvoice.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData)); $postDataresponse = curl_exec($ch); In the response there's everything (snapshots, VIES, MOSS, EU-stuff, invoices, clientdata, items...). If you need more data just tell us. 2. Clients page 23 columns & filters +2 in case you're using Italian Electronic Invoicing plugin. The page also allows you to perform "massive" actions (Send Email, Turn on/off OneInvoice and OnePayment). I wanted to add more actions but I didn't manage to find cool ideas. The small button on the right can be used to Login as Client. Guess what? The table uses SorTables therefore you can add, move, remove, compress and export columns on XLS or CSV... I can't remember. 3. Custom Billing mode for each clients Till now it was possible to use OneInvoice and OnePayment globally on all the registered customers but now both features can be enabled on specific customers. This way you can finally use manual invoicing for your best customers using the existing Billing page. Next thing.... Electronic Invoicing for Slovenia 😭 Thanks.
  9. I have the following use case for WHMCS. This is not for a hosting product, but rather for an internet service provision product, let's say fibre. 1. Client orders product on the 4th of the month. 2. Service only arrives on the 17th of the month. I'm unsure how to set my ordering up. A. I don't want to confuse the client by issuing a pro-rata invoice on the 4th. B. On the 17th, when the actual service is installed on their premises, I want to activate the order. I'm struggling to get my head around this problem. What do I do on the 4th? Sign up a customer, without any products? That would be weird. On the 4th, the customer knew exactly what they wanted. I can try and strip the heart out of WHMCS, but it feels wrong. Perhaps stop all ordering emails? Then do manipulation of the product using the API? Goodness where do I even start... Surely someone (or the community) must have had this situation before... Please assist. Eugene https://vander.host
  10. DennisMidjord

    Custom form in WHMCS

    Thanks again, @brian! Great. I read about 'whereIn', but I did '->whereIn('packageid', ('60, 61')' instead and couldn't get it working. I'll update my code to match yours 🙂
  11. DennisMidjord

    Custom form in WHMCS

    Send me your details (PayPal or something like that), and I'll send a few bucks for the help 🙂 I went with the following code: contactphone.tpl: {if $sent} {include file="$template/includes/alert.tpl" type="success" msg=$LANG.phoneSupportRequest.sent textcenter=true} {/if} {if $errormessage} {include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage} {/if} <div class="container"> <div class="row"> {if !$sent} <form action="contactphone.php" method="post" enctype="multipart/form-data" role="form"> <input type="hidden" name="action" value="send" /> <div class="form-group"> <label for="inputName" class="col-sm-3 control-label">{$LANG.contactemail}</label> <div class="col-sm-7"> <input type="text" name="email" value="{$name}" class="form-control" id="inputName" /> </div> </div> <div class="form-group"> <div class="text-center"> <button type="submit" class="btn btn-primary">{$LANG.contactsend}</button> </div> </div> </form> {/if} </div> </div> contactphone.php <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->initPage(); $contactFormSent = false; $email = $_POST["email"]; $phonenumber = Capsule::table('tblclients') ->where('email', '=', $email)->value('phonenumber'); $clientid = Capsule::table('tblclients') ->where('email', '=', $email)->value('id'); // Check if client has an active Phone Support product (id 92) $hasPhoneSupport = Capsule::table('tblhosting') ->where('userid', '=', $clientid) ->where('packageid', '=', '92') ->where('domainstatus', '=', 'Active') ->count(); // Check if client has an active VPS (either ID 60 or 61) $hasVPS = Capsule::table('tblhosting') ->where('userid', '=', $clientid) ->where('packageid', '61') ->where('domainstatus', '=', 'Active') ->orWhere('userid', '=', $clientid) ->where('packageid', '60') ->where('domainstatus', '=', 'Active') ->count(); if( $action == "send" ) { if(!$phonenumber){ $ca->assign(errormessage, "No phone number has been set for you account"); } elseif($hasVPS == 0 AND $hasPhoneSupport == 0) { $ca->assign(errormessage, "You have no phone support subscription"); } else { $command = 'OpenTicket'; $postData = array( 'deptid' => '2', 'name' => "Replace with client's username", 'email' => "Replace with client's email", 'subject' => "Phone Support Request", 'message' => $phonenumber, 'priority' => 'Medium', 'useMarkdown' => 'true', ); $adminUsername = 'Admin'; $results = localAPI($command, $postData, $adminUsername); $ca->assign("sent", true); } } $ca->setTemplate('contactphone'); $ca->output(); If a client has no valid subscription: If the message was sent successfully:
  12. brian!

    Custom form in WHMCS

    a couple of things with those capsule queries... 1. you don't need '=' with where statements - nothing wrong with them being there, but if you don't add them, it assumes you are checking for equality anyway. 2. that $hasVPS query could be trimmed to... $hasVPS = Capsule::table('tblhosting') ->where('userid',$clientid) ->whereIn('packageid',['60','61']) ->where('domainstatus','Active') ->count(); I see you've fixed it. a cup of tea will do. ☕
  13. DennisMidjord

    Custom form in WHMCS

    Nevermind, managed to fix it 😄 It had to use the following: $ca->assign(errormessage, "No phone number has been set for you account"); Thanks for all your help @brian! Please let me buy you a cup of coffee 😄
  14. Hello members, I purchased WHMCS system and did the installation but the issue is that when clients are off-line they can search for domain names and find them once they create accounts and log in the system can not connect to the domain server. I wrote to the providers of the domain names and the bellow messages is what they sent to me please help. Hi Nyirenda,It has nothing to do with our module. It looks like your client area template files are not working properly You can ask your web developer to have a look and fix this bug on client area. I have checked again and your site's domain search function is working fine. If you need any further assistance or have any other questions reply here.Thank you. __________________________________________________________________________ Hi Nyirenda,I have tested from our end and found no issue. I have also tested your provided URL and its working fine there too. Can you please try again and let us know if there is any issue?Thank you.--RegardsHasanAffordable Domains Support Team
  15. DennisMidjord

    Custom form in WHMCS

    Thanks for all your help @brian! - I'm really glad. You've helped me so much with various problems 🙂 It's going to be a custom page or embedded into the current 'submitticket.php' website. I haven't decided yet - but I know how to do both. I'm just not strong in PHP. I also know about the Open Ticket API as I've used it for various WHMCS Hooks 🙂 I've managed to achieve what I want by doing this: <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $ca->initPage(); $email = $_POST["email"]; $phonenumber = Capsule::table('tblclients') ->where('email', '=', $email)->value('phonenumber'); $clientid = Capsule::table('tblclients') ->where('email', '=', $email)->value('id'); // Check if client has an active Phone Support product (id 92) $hasPhoneSupport = Capsule::table('tblhosting') ->where('userid', '=', $clientid) ->where('packageid', '=', '92') ->where('domainstatus', '=', 'Active') ->count(); // Check if client has an active VPS (either ID 60 or 61) $hasVPS = Capsule::table('tblhosting') ->where('userid', '=', $clientid) ->where('packageid', '61') ->where('domainstatus', '=', 'Active') ->orWhere('userid', '=', $clientid) ->where('packageid', '60') ->where('domainstatus', '=', 'Active') ->count(); if(!$phonenumber){ $errormessage = "No phone number has been set for you account"; } elseif($hasVPS == 0 AND $hasPhoneSupport == 0) { $errormessage = "You have no phone support subscription"; } else { $command = 'OpenTicket'; $postData = array( 'deptid' => '2', 'name' => "Dennis", 'email' => "test@test.com", 'subject' => "Phone Support Request", 'message' => $phonenumber, 'priority' => 'Medium', 'useMarkdown' => 'true', ); $adminUsername = 'Admin'; $results = localAPI($command, $postData, $adminUsername); $successMessage = "A supporter will contact to you soon"; } $ca->setTemplate('contactphone'); $ca->output(); And then a simple template file with the following: {if $errormessage} {include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage} {/if} <div class="container"> <div class="row"> <form action="contactphone.php" method="post" enctype="multipart/form-data" role="form"> <input type="text" name="email" placeholder="Email" /> <input type="submit" name="submit" /> </form> </div> </div> We don't do phone support, except if the client purchases a specific product (either a product called Phone Support or a VPS). When the client wants to talk to us, they should input his email in a form (not logged in necessarily), and the code should check whether there's a phone number assigned to the user, and if he qualifies for phone support. How would I go about showing the errors or a success message?
  16. Hello members, I purchased WHMCS system and did the installation but the issue is that when clients are off-line they can search for domain names and find them once they create accounts and log in the system can not connect to the domain server. I wrote to the providers of the domain names and the bellow messages is what they sent to me please help. Hi Nyirenda,It has nothing to do with our module. It looks like your client area template files are not working properly You can ask your web developer to have a look and fix this bug on client area. I have checked again and your site's domain search function is working fine. If you need any further assistance or have any other questions reply here.Thank you. __________________________________________________________________________ Hi Nyirenda,I have tested from our end and found no issue. I have also tested your provided URL and its working fine there too. Can you please try again and let us know if there is any issue?Thank you.--RegardsHasanAffordable Domains Support Team
  17. Welcome to WHMCS.Community Nyirenda Shadreck! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  18. Hi everybody, I've just installed a fresh WHMCS version 7.7 on a server based on centos7 . note : this server does not have direct internet access. I'm having problems cause the license verification fails; the server can reach internet trough a proxy, but it seems that the software is not aware of the proxy setup in /etc/environment, the error on the admin part is : LICENSING ERROR Unable to perform license validation due to the following local server configuration issue: CURL Error: Connection timed out after 30001 milliseconds - Code 28 did someone faced a similar situation ? thank you M.
  19. Welcome to WHMCS.Community Shert! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  20. brian!

    Corrections on the registration form

    Hi Elias, generally it's either via admin settings, template edits or action hooks. 🙂 that's either a template edit making those fields "required", or using an action hook similar to the one I posted in the thread below... in that case, it made tax id and country mandatory, but you should just need to change country to companyname in the hook code and you're good to go. 🙂 that will just need a Custom Client Field... in your case, just ensure that you tick the "Required Field" and "Show on Order Form" checkboxes and it will be shown at checkout or when registering. if you ever needed to edit the checkout page, that should be checkout.tpl in your active orderform template folder... for registrations, it would be clientregister.tpl - though ideally if possible, try to use hooks as they should continue working after a WHMCS update, template edits may be lost.
  21. It seems you won't see this module in the marketplace because they require screenshots and more elaborate descriptions. Since this is such a simple module (overall) and because it displays sensitive data (our entire list of name servers), we would need to A) write a ton of marketing spin to make it sound fancy (not our thing: we like to tell it as it is), and B) take screenshots and blur the whole thing out, which is kind of useless anyway. It's also not worth our while to populate our test install of WHMCS with servers and dummy name servers purely for this purpose, when it's a free module. (If anyone from WHMCS sees this, you may wish to relax your requirements for free, or at least open source modules). But you can all enjoy it via GitHub!
  22. Hello, I want to make some corrections on the registration form, but i can't find where to start. We only sell B2B, that's why i want to modify the registration form so that the company name and tax ID is mandatory (instead of optional) Also i want to add a mandatory field where the customer can add their number of chambre of commerce. Can anyone point me to the right direction? where to start or which file a need to modify to make this happen. Thanks, Elias
  23. brian!

    Custom form in WHMCS

    in two parts really - firstly, it's either going to be a html form embedded into an existing page/template, or it's going to be a custom page... i'm assuming that you know how to do either of these? the second part is the PHP side, which basically accepts the data posted to it by the above form, does your checks and opens a ticket if conditions are applicable... that check is basically going to be a query to the database (via capsule, models or whatever) that sees if the email submitted exists - if it does, then sees if there's a phone number assigned to that client and if so, runs the Open Ticket API to generate the ticket. you might find this video interesting as a basic walk-though to most of what you're trying to do - specifically the API side of things... it's not mine, but thought it would be quicker than posting a long explanation myself. 🙂 when the client submits this email address, are they already logged in ? if so, you will already have access to that email address from existing available template variables - you'd also have access to their phone number (if they have one), so you could generate a hypertext link to submit a ticket in those circumstances without the need of a custom form. {if $clientsdetails.phonenumber}<a href="submitticket.php?step=2&deptid=1&subject={$clientsdetails.phonenumber}">{$LANG.navopenticket}</a>{/if} although maybe i'm missing the point of why you're trying to do this?
  24. Welcome to the entire WHMCS community! We are bringing even more great news today. We have compiled a short list of modules for WHMCS that we would like to develop in the near future. All of them are equally important to us so we thought you might help us with deciding on their release order. Be sure to stop by our Forums and vote for your favorite options! The poll is open to everyone and no account is required to join in. But of course, we will be delighted to have you in our ranks!
  25. BigGainz

    Email Form issue

    You are right! I saw No-Reply and assumed it was in fact no reply and did not have their email address. Thank you
  26. Hi @Rhysweb by using Language Overrides, you can create new, or edit existing, language strings - in this case, the language string below contains the current link to the cart... $_LANG['clientHomePanels']['activeProductsServicesNone'] = "It appears you do not have any products/services with us yet. <a href=\"cart.php\">Place an order to get started</a>."; the docs page above will walk you through it, but basically you create an "overrides" folder within the /lang folder, and then create a new language .php file (if it doesn't already exist) for each language that your site uses, e.g English, French etc - do not edit the existing original language files as any changes you make will get overwritten during a WHMCS update.
  27. Welcome to WHMCS.Community mariahernandez789! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

  1. Load more activity
×

Important Information

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