Jump to content
  • Welcome to WHMCS.community

    Hello and welcome to the WHMCS.community we're glad to see you've stopped by! We'd love to have you join our community please take a moment to register and join in on the conversation.


  1. The Latest from the WHMCS Team

    1. News & Announcements

      Announcements and mailings we send out will be posted here

  2. WHMCS.Community

    1. Community Announcements

      Our WHMCS Community Announcements with everything from our community rules to updates on making our community more awesome

    2. Introduce Yourself

      Introduce yourself here and be sure to come back to welcome others.

  3. Using WHMCS

    1. Pre-Sales Questions

      Considering purchasing WHMCS but have some questions? Ask them here.

    2. Admin & Configuration Questions

      This is your space for any questions about WHMCS configuration settings.

    3. Installation, Upgrade, and Import Support

      Get help from the community with installing, upgrading and migrating to WHMCS here

    4. Using WHMCS

      Have a question about how something works or need help configuring and using WHMCS? Here's the place to do it.

    5. Troubleshooting Issues

      Use this board to discuss any issues or problems you are encountering. If you think you've found a bug, please report it here

    6. Vendor Discussions

      Discuss Control panels, payment gateways and domain registrars here

  4. WHMCS Showcase

    1. Showcase Your Site

      Customized and integrated WHMCS in some way? Show the WHMCS Community here!

    2. Share Your Best Practices & Tips

      Share your tips and advice to the rest of the WHMCS community.

  5. Developing & Extending WHMCS

    1. Third Party Add-ons

      A place to discuss third party modules, add-ons and extensions for the WHMCS platform.


    2. Service Offers & Requests

      A place to post offers & requests for services related to WHMCS. Rules apply.

    3. Developer Corner

      Integration, customization and module development, if you have questions, ask them here.

    4. Building Modules

      Need help while building an extension? Ask your questions here.

    5. Share Ideas for WHMCS Modules

      Looking for an extension that doesn't exist? Share your ideas and vote on others.

  6. Community Competitions

    1. Competitions

      From time to time we run community competitions this is the place you'll find them

      • No posts here yet
  7. General Discussions

    1. General Discussion

      Board for general conversation, share interests, discuss industry related news, etc...

  8. General Feedback & Assistance

    1. WHMCS.Community Tips & Tricks

      This board provides an overview of some features and functionality that WHMCS.Community provides.  We add new content from time to time.

  • Popular Contributors

  • Our picks

  • Topics

  • Posts

    • Thank you Brian! It works fine now...
    • you should just need to change... {$producttotals.pricing.recurringexcltax.{$producttotals.billingcyclefriendly}} to... {$producttotals.pricing.recurring.{$producttotals.billingcyclefriendly}}  
    • you could edit the clientsummary.tpl template and add the payment method for products/addons (but not domains)... e.g for products... <div class="tablebg"> <table class="datatable filterable" width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <th width="20"><input type="checkbox" id="prodsall" /></th> <th>{$_ADMINLANG.fields.id}</th> <th>{$_ADMINLANG.fields.product}</th> <th>{$_ADMINLANG.fields.amount}</th> <th>{$_ADMINLANG.fields.billingcycle}</th> <th>{$_ADMINLANG.fields.signupdate}</th> <th>{$_ADMINLANG.fields.nextduedate}</th> <th>{$_ADMINLANG.fields.paymentmethod}</th> <th>{$_ADMINLANG.fields.status}</th> <th width="20"></th> </tr> {foreach key=num from=$productsummary item=product} <tr> <td><input type="checkbox" name="selproducts[]" value="{$product.id}" class="checkprods" /></td> <td><a href="clientsservices.php?userid={$clientsdetails.userid}&id={$product.id}">{$product.idshort}</a></td> <td style="padding-left:5px;padding-right:5px">{$product.dpackage} - <a href="http://{$product.domain}" target="_blank">{$product.domain}</a></td> <td>{$product.amount}</td> <td>{$product.dbillingcycle}</td> <td>{$product.regdate}</td> <td>{$product.nextduedate}</td> <td>{$product.dpaymentmethod}</td> <td class="status" data-filter-value="{$product.domainoriginalstatus}">{$product.domainstatus}</td> <td><a href="clientsservices.php?userid={$clientsdetails.userid}&id={$product.id}"><img src="images/edit.gif" width="16" height="16" border="0" alt="Edit"></a></td> </tr> {foreachelse} <tr> <td colspan="9">{$_ADMINLANG.global.norecordsfound}</td> </tr> {/foreach} </table> </div> for domains, you'd need to use an action hook to adjust the array to include the payment method.
    • Hi Alex, not easily. if you didn't want to send any PDF invoices (both unpaid and paid), then you could simply disable the feature. https://docs.whmcs.com/Invoice_Tab#Enable_PDF_Invoices but to enable in one, but not the other would be difficult. you could certainly edit the invoicepdf.tpl template and make it blank for paid invoices - you'd just need to wrap it in an if statement... <?php if ($status != 'Paid') { *** rest of invoicepdf.tpl } so the PDF invoice attachment will be blank for Paid invoices, all other statuses would be as normal. invoicepdf.tpl
    • anything is possible... {if $registerdomainenabled} <div class="option"> <label> <input type="radio" name="domainoption" value="register" id="selregister"{if $domainoption eq "register"} checked{/if} />{$LANG.cartregisterdomainchoice|sprintf2:$companyname} </label> <div class="domain-input-group clearfix" id="domainregister"> <div class="row"> <div class="col-sm-8 col-sm-offset-1"> <div class="row domains-row"> <div class="col-xs-12"> <div class="input-group"> <span class="input-group-addon">{$LANG.orderForm.www}</span> <input type="text" id="registersld" value="{$sld}" class="form-control" autocapitalize="none" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{lang key='orderForm.enterDomain'}" /> <input type="hidden" id="registertld" value="com" class="form-control" /> </div> </div> </div> </div> <div class="col-sm-2"> <button type="submit" class="btn btn-primary btn-block"> {$LANG.orderForm.check} </button> </div> </div> </div> </div> {/if} that's the configureproductdomain.tpl template changed, but it isn't enough.... you need to alter the js - i'll tell you how to do it, and i'll include a modified /templates/orderforms/standard_cart/js/scripts.min.js to download... but you're probably going to have to do this after every WHMCS update. so in scripts.js (not used by WHMCS, but easier to read), you just change domain: sld + tld to just domain: sld (~line 1388)... if (domainoption == 'register') { jQuery('.suggested-domains').hide().removeClass('hidden').fadeIn('fast'); spotlightTlds.hide().removeClass('hidden').fadeIn('fast'); jQuery('#resultDomainOption').val(domainoption); var lookup = jQuery.post( 'cart.php', { token: csrfToken, a: 'checkDomain', type: 'domain', domain: sld }, 'json' ), spotlight = jQuery.post( 'cart.php', { token: csrfToken, a: 'checkDomain', type: 'spotlight', domain: sld }, 'json' ), suggestion = jQuery.post( 'cart.php', { token: csrfToken, a: 'checkDomain', type: 'suggestions', domain: sld }, 'json' ); and then you minify it and replace the existing /templates/orderforms/standard_cart/js/scripts.min.js with it. as you can see from the template code, i'm passing the TLD as a hidden field (currently com, but could be anything - it won't be used)... if a user doesn't enter a TLD, then it won't use com (necessarily), it will just try the first TLD in your domain pricing with pricing set (in the case of my v7.4.2 dev, it's .co.uk)...     scripts.min.js
    • changing the value won't change existing orders/invoices (you can edit them manually), but for new orders, it will use the value in the settings....
    • I'd recommend opening a ticket for the team to look into this further.
    • Thanks Chris, appreciate that - I've been making progress on Hooks and think thats the quickest and easiest direct.
    • Yes they did. I will upload it here later in the day.
    • Hi @tkalfaoglu Thanks for your reply, Have you tried moving them from one package to another?

Important Information

By using this site, you agree to our Terms of Use & Guidelines