Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 07/04/2019 in all areas

  1. 2 points
    by making the other fields optional from the settings... https://docs.whmcs.com/Other_Tab#Optional_Client_Profile_Fields with all those fields optional, then only email address and password should be required to complete the order... any required custom client fields, security questions and TOS would be too if they were enabled, but if you're trying to keep the checkout/registration pages to a minimum, I doubt that you would enable them. ๐Ÿ™‚ then just commenting out the blocks of code in clientregister.tpl should be all that's needed - if WHMCS used properly coded CSS IDs or names in their templates, you should be able to do it that way, but until that glorious day arrives, editing the template would be easier. probably a variation of the ClientAreaPage hooks I used in the threads below... what both of those hooks do is redirect the logged in user to a specific page if certain conditions aren't met - in the case of the latter, it's the client not having previously added an answer to a security question - the hook means that until they do that, they ain't going anywhere in WHMCS - not to the cart, the kb, the clientarea homepage... they will keep getting redirected to the page until they meet the conditions. in your case, I suppose that's going to be choosing a field (or fields) that you need to be completed, e.g firstname and lastname and adjusting the hook code accordingly... once they're updated, the client can go wherever he wants within WHMCS. ๐Ÿ™‚
  2. 1 point
    Don't know if this is the right category to post this in, but I thought I wanted to share this. It's a very small hook that cancels an invoice once the product gets terminated. //<?php use WHMCS\Database\Capsule; add_hook('PreModuleTerminate', 1, function($vars) { $invoiceid = Capsule::table('tblinvoiceitems') ->where('relid', '=', $vars['params']['serviceid']) ->orderBy('duedate', 'desc') ->first(); Capsule::table('tblinvoices') ->where('id', '=', $invoiceid->invoiceid) ->update(['Status' => 'Cancelled']); }); Any feedback is much appreciated.
  3. 1 point
    Hi all just wondering if there is anything we need to do whmcs side of things when stripe introduce the sca in September? my site is set up not to store any information in terms of payment details only the payment method. thanks
  4. 1 point
    the first hook you quoted does - never tried the second... effectively, you can't turn "Hide Inactive" on with this hook running, so hidden clients are shown on the Client List page... it will have no impact on whether a hidden client is listed in the dropdown - they still won't be. if this is "fixed" in v7.8, it will only have taken them the best part of 6 months. ๐Ÿ™„
  5. 1 point
    the blog entry below may be of some limited help to your situation... https://blog.whmcs.com/112975/customising-templates-the-easy-way
  6. 1 point
    Hi @chaphugnes1321 Thanks for your post, you'd need to work with your host to get your FTP login credentials then connect using an FTP client such as CyberDuck to upload the files to the /templates directory of your WHMCS installation.
  7. 1 point
    Open your english.php file, read this and look for the following strings: $_LANG['tax']['taxLabel'] = "Tax ID"; $_LANG['tax']['vatLabel'] = "VAT Number"; Anyway think twice. Are you 100% sure that you really want customers to use the same field for both VAT numbers and Tax ID? For a million of reasons you'll probably need both values and not just one at a time.
  8. 1 point
    We're now at 2.2.70 and here is the usual recap: Tax Stamp on Invoices The "Tax Stamp" plugin included in BX has been updated in compliance with the latest ยซI'm the Revenue Agency obey to me!ยป regulations. Now there's an option that applies Tax Stamp when the sum of VAT-exempt items is greater than or equal to the minimum amount requested by Renevue Agency. What's next? ๐Ÿ˜ก Tax rate based on blood groups? Additional fee based on body fat percentage? Pffffff.... Apart from that, there are no major changes. In the meantime we made BX compatible with the template made by @SwiftModders LLC I still don't know why I keep supporting all templates of the universe ๐Ÿ˜ญ six, five, default, portal, classic, lara, swiftmodders, metro, WHMCS v5, v6, v7... ๐Ÿ˜ช Next project (no ETA available) is the integration with Australian ABN Lookup for VAT Numbers and RCTI support (Recipient Created Tax Invoice) so that in BX you will manage: Proformas to receive money Invoices to keep you out of jail Credit Notes to refund customers and reverse invoices RCTI (temporary name) to payout affiliate commissions Indulgence to reduce the amount of punishment one has to undergo for sins * Letter of marque to attack French ships with your vessel * * It's a joke ๐Ÿ˜Œ
  9. 1 point
    @Mark Coates as indicated by @brian! This is forming part of WHMCS v7.8 which will be made available as a beta soon, I don't have an exact date just yet.
  10. 1 point
    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.
  11. 1 point
    I suggest you use a test domain name or a sub-domain to develop/test your WHMCS installation/website than hosting locally.
×

Important Information

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