Quantcast
Channel: WHMCS Community Forums
Viewing all 13458 articles
Browse latest View live

formatCurrency

$
0
0
Hello,

I'm using the code below for multi currency:

Code:

$currencyData = $_SESSION["currency"];
$license["price"] = formatCurrency($license["price"],$currencyData);

The code works in the meaning that changed currency Prefix and currency Suffix but don't updates the number.
The price is MySQL format:
Code:

`price` DECIMAL(10,2) NOT NULL DEFAULT '0.00',
and in database appears correct.

Any idea on what's going wrong?

Thank you
Chris

- - - Updated - - -

......Addition......
I've a black thought that this function works only for whmcs products and the only work that it does is to change prefix, suffix and getting the price from the product database for that currency.

custom template password strength not works

$
0
0
custom template password strength not works . anyone can help me to solve this?in version 7.2

Administrator Login(s) Manager

$
0
0
All of us here at Affordable Domains Canada are excited to break into the WHMCS Module market! We have been busy, and our first modules release, I would like to present to you, Administrator Login(s) Manager - Allow Administrators/Staff To View And Manage 3rd party company Website Login Information.

With logins and passwords for dozens of websites, it can be a pain to keep track of them all. Well no more! We have created a way to manage these logins, and give access to these logins to other Administrators based on their Administrator Role.

Learn more about this module over at Affordable Domains Canada

How to find the Lang proper variable

$
0
0
I was wondering is there is a way to find the proper Lang variables for translating missing sections. The reason is because there are many sections that needs to be translated, but I am not able to find the correct variable in english.php file.

I am currently using this sample format on my override file:

$_LANG['accountNotifications'] = "Nuevo";

Here some screenshots of sections I need to translate:

https://gyazo.com/8acc0040551a34b2bd89ba976a7f3b1b
https://gyazo.com/ea528dfcd3b048085aa7649e4c1ecb66
https://gyazo.com/dbcd35887b2183a543a7e64c447ca495

Those sections I am showing in the screenshots are not in the english.php file. So technically I am not able to know which one is the variable.

I hope I am being clear.

Change payment section

$
0
0
Hello friends, I would like the payment section to be seen as in the attached image.
Can you help me, please.

pago.PNG

File: checkout.tpl

This is my code, approximate line 418:

<div class="panel-body">
{foreach key=num item=gateway from=$gateways}
<div class="alert alert-success" role="alert">
<input type="radio" name="paymentmethod" value="{$gateway.sysname}" class="payment-methods{if $gateway.type eq "CC"} is-credit-card{/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />
{$gateway.name}
</div>
{/foreach}
</div>


Thanks and regards,
Attached Images

Change Client Area Homepage Panel Colors

$
0
0
Hey guys,

I am trying to change the button and accent colors on the client area homepage panels (see image). I want them all to be the same color, but I can't seem to find the line(s) of code that need to be changed to achieve this. I am using the six theme. Any help would be much appreciated!
Selection_051.png
Attached Images

Problems with update 7.2.1 and ioncube 6 + php7

$
0
0
Hi!

I've just update to whmcs 7.2.1, and I am resolving manually all issues, but this is a problem that I can't to fix. Some admin areas needs to be executed with php 5.6 with ioncube 5, and I don't know why I can't use full php 7.0 + ioncube 6.

For example, I can go to admin/configregistrars.php and I see this message:


Code:

Oops!
Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

Whoops\Exception\ErrorException: The file /home/esquionet/public_html/clientes/modules/registrars/dottk/dottk.php was encoded by the ionCube Encoder for PHP 5.3 and cannot run under PHP 7.0.
Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 5.6. in Unknown:0
Stack trace:
#0 /home/esquionet/public_html/clientes/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError(16, 'The file /home/...', 'Unknown', 0)
#1 [internal function]: Whoops\Run->handleShutdown()
#2 {main}


You can say to me that I can remove dottk registrar if I don't use it, but I remove it and there are the same errors on at least 15 folders more. I can't remove all folders that aren't compatible with ioncube 6.

How can I get the files compiled for ioncube 6?

Domain renewals on payment no longer working since v7.2

$
0
0
Since upgrading to WHMCS 7.2.1 from 7.1.2, I noticed that when marking an invoice as paid, any contained domain renewals are not processed. The invoice is marked as paid, the other products in the invoice are renewed, but domains retain the old due date and the renewal command is not sent out to the registry module.
So I need to manually renew the domains (clicking on the "Renew" in the admin area works) and manually send out the renewal confirmations.
Has anyone else experienced these problems? Up until WHMCS 7.1.2 all was working fine...

7.2.1 CORE-11298 - Call to a member function isHidden() on null Error On Knowledgebase

$
0
0
An issue has been identified in the 7.2.1 release - published on 16th May, 2017 - that is affecting the ability to view knowledgebase articles via the client area when translations are present.

This manifests itself as an "Oops" page, and the following error:

Code:

exception 'Whoops\Exception\ErrorException' with message 'Call to a member function isHidden() on null' in /path/to/whmcs/vendor/whmcs/whmcs-foundation/lib/Knowledgebase/Article.php:0

Resolution
We are releasing a hot-fix patch which resolves the underlying issue.

Applying the HotFix
To apply the fix, download the zip file from the link below. Extract the contents and upload to your whmcs directory overwriting the existing files.

CORE-11298_prevent-inclusion-translated-kb-articles-mostviewed.zip


Note: This file is only applicable if you are running Version 7.2.1

Turn off Automatic Invoicing

$
0
0
Is there a way to turn off automatic invoicing?

Thanks!

Error 500 after 7.2.1 Upgrade

$
0
0
Hello,

after update to 7.2.1 we get a Error 500 on the frontend.
Backend is working well, but our frontend isn´t working...
Quote:

Error: exception 'Whoops\Exception\ErrorException' with message 'file(english.php): failed to open stream: No such file or directory' in /var/www/virtual/domain.tld/portal/htdocs/lang/langupdate.php:11 Stack trace: #0 [internal function]: Whoops\Run->handleError(2, 'file(english.ph...', '/var/www/virtua...', 11, Array) #1 /var/www/virtual/domain.tld/portal/htdocs/lang/langupdate.php(11): file('english.php') #2 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/Loader/WhmcsLoader.php(0): unknown() #3 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(416): WHMCS\Language\Loader\WhmcsLoader->load('/var/www/virtua...', 'langupdate', 'messages') #4 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(427): Symfony\Component\Translation\Translator->doLoadCatalogue('langupdate') #5 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(312): Symfony\Component\Translation\Translator->loadFallbackCatalogues('override_langup...') #6 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(292): Symfony\Component\Translation\Translator->initializeCatalogue('override_langup...') #7 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(248): Symfony\Component\Translation\Translator->loadCatalogue('override_langup...') #8 /var/www/virtual/domain.tld/portal/htdocs/vendor/symfony/translation/Translator.php(209): Symfony\Component\Translation\Translator->getCatalogue(NULL) #9 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/AbstractLanguage.php(0): Symfony\Component\Translation\Translator->trans() #10 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Language/AbstractLanguage.php(0): WHMCS\Language\AbstractLanguage->getLanguageLocale() #11 /var/www/virtual/domain.tld/portal/htdocs/vendor/illuminate/support/Facades/Facade.php(215): WHMCS\Language\AbstractLanguage::getLocales() #12 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): Illuminate\Support\Facades\Facade::__callStatic('g etLocales', Array) #13 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/ClientArea.php(0): WHMCS\ClientArea->outputWithoutExit() #14 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Http/Message/AbstractViewableResponse.php(0): WHMCS\ClientArea->getOutputContent() #15 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableHandler.php(39): WHMCS\Http\Message\AbstractViewableResponse->getBody() #16 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/fast-route/src/FastRoute.php(96): Middlewares\Utils\CallableHandler::execute(Array, Array) #17 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/RouteServiceProvider.php(0): Middlewares\FastRoute->process() #18 [internal function]: WHMCS\Route\RouteServiceProvider->WHMCS\Route\{closure}(Object(WHMCS\Http\Message\S erverRequest), Object(Middlewares\Utils\Delegate)) #19 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableHandler.php(26): call_user_func_array(Object(Closure), Array) #20 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/CallableMiddleware.php(37): Middlewares\Utils\CallableHandler::execute(Object( Closure), Array) #21 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): Middlewares\Utils\CallableMiddleware->process(Object(WHMCS\Http\Message\ServerRequest ), Object(Middlewares\Utils\Delegate)) #22 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Mes sage\ServerRequest)) #23 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #24 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableAdminRequestUri.php(0): Middlewares\Utils\Delegate->process() #25 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableAdminRequestUri->process(Object(WHMCS\Http\Message\ServerRequest ), Object(Middlewares\Utils\Delegate)) #26 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Mes sage\ServerRequest)) #27 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #28 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableClientModuleRequest.php(0): Middlewares\Utils\Delegate->process() #29 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableClientModuleRequest->process(Object(WHMCS\Http\Message\ServerRequest ), Object(Middlewares\Utils\Delegate)) #30 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Mes sage\ServerRequest)) #31 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #32 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestUri.php(0): Middlewares\Utils\Delegate->process() #33 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestUri->process(Object(WHMCS\Http\Message\ServerRequest ), Object(Middlewares\Utils\Delegate)) #34 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Mes sage\ServerRequest)) #35 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #36 /var/www/virtual/domain.tld/portal/htdocs/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/RoutableRequestQueryUri.php(0): Middlewares\Utils\Delegate->process() #37 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(76): WHMCS\Route\Middleware\RoutableRequestQueryUri->process(Object(WHMCS\Http\Message\ServerRequest ), Object(Middlewares\Utils\Delegate)) #38 [internal function]: Middlewares\Utils\Dispatcher->Middlewares\Utils\{closure}(Object(WHMCS\Http\Mes sage\ServerRequest)) #39 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Delegate.php(31): call_user_func(Object(Closure), Object(WHMCS\Http\Message\ServerRequest)) #40 /var/www/virtual/domain.tld/portal/htdocs/vendor/middlewares/utils/src/Dispatcher.php(56): Middlewares\Utils\Delegate->process(Object(WHMCS\Http\Message\ServerRequest )) #41 /var/www/virtual/domain.tld/portal/htdocs/index.php(0): Middlewares\Utils\Dispatcher->dispatch() #42 {main}
We´ve running php 5.6 and only updated the whmcs.

greetings
xister

Problems with update 7.2.1 and ioncube 6 + php7

$
0
0
Hi!

I've just update to whmcs 7.2.1, and I am resolving manually all issues, but this is a problem that I can't to fix. Some admin areas needs to be executed with php 5.6 with ioncube 5, and I don't know why I can't use full php 7.0 + ioncube 6.

For example, I can go to admin/configregistrars.php and I see this message:


Code:

Oops!
Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

Whoops\Exception\ErrorException: The file /home/esquionet/public_html/clientes/modules/registrars/dottk/dottk.php was encoded by the ionCube Encoder for PHP 5.3 and cannot run under PHP 7.0.
Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 5.6. in Unknown:0
Stack trace:
#0 /home/esquionet/public_html/clientes/vendor/filp/whoops/src/Whoops/Run.php(382): Whoops\Run->handleError(16, 'The file /home/...', 'Unknown', 0)
#1 [internal function]: Whoops\Run->handleShutdown()
#2 {main}


You can say to me that I can remove dottk registrar if I don't use it, but I remove it and there are the same errors on at least 15 folders more. I can't remove all folders that aren't compatible with ioncube 6.

How can I get the files compiled for ioncube 6?

Product to download via WHMCS

$
0
0
Hello all, how are you ? :)

I'm starting my journey at WHMCS, I'm very happy with the features it brings to us, however, I have a question that I searched here in the forum and did not find.

I have some products in my hosting, which are for download, with this, I support and update them, only for 1 year, after this I no longer offer the possibility of downloading the file, I do it with certain ease through Of WooCommerce (sorry if I could not quote it), is it possible to do this through WHMCS?


Thanks alot.

If page template is

$
0
0
Hello, this is my first post nice to be here.

My question is related to implementing Conversion codes for Google, Facebook,etc. I know the I can place it in orderform templates where it says

Code:

{if $ispaid}
<!-- Enter any HTML code which needs to be displayed once a user has completed the checkout of their order here - for example conversion tracking and affiliate tracking scripts -->
{/if}

However as far as I know and faced that for each update of WHMCS the code is removed so I have to re-add it manually. I've checked the forum if anybody has asked such question before and even Google but no luck.

I'm trying to add the code into footer.tpl file however with certain conditions the apply.

My target is to implement it when page template is complete.tpl and marked $ispaid.

Something like this

Code:

{if $pagetemplate == 'complete.tpl' && $ispaid }
<!-- Enter any HTML code which needs to be displayed once a user has completed the checkout of their order here - for example conversion tracking and affiliate tracking scripts -->
{/if}

Is that possible and how? Thank you in advanced!

Small Custom Development Work

$
0
0
Hi,

I'm looking to hire a developer to do a few things for us:

1. We have a module that we use to control when certain staff receive support ticket emails (based on the time of day). We hired a developer to create this module for us a few years ago and we've loved the module so far, but he has vanished, and it stopped working when we upgraded to WHMCS v7. I'm assuming anyone familiar with PHP should be able to fix the problem quickly.

2. We need a custom sales tax liability report that will also sort by the tax rule (all level 1 rules) so we can see the total sales and total tax for each rule. We have three tax rules setup and right now we have to export the sales tax liability report to CSV, sort by client, and then run all of the math manually...this is an annoying process so it would be nice if we could do it from WHMCS directly.

If you're interested, please PM me here.

Thanks!

- - - Updated - - -

I also forgot to mention: something else I would be interested in getting information on is the following:

The majority of our customers pay by credit card and don't need email reminders (invoice generated, and payment reminder) and instead just want a payment confirmation/receipt. Many of them get annoyed that they get three emails per month when they're on auto pay with a credit card. The thing is though, we want to keep this 3 email structure for customers who pay via check, or for customers who have not yet stored credit card details with us. We would love if someone could build some sort of module that would prevent the invoice generated and payment reminder emails from going to customers who have credit card details on file. All other emails such as credit card payment failed and payment confirmation should remain active. If tracking whether or not the customer has credit card details on file is too difficult, I'd also be happy if instead it was determined based on the length of time that they were a client (i.e. 2+ months) since every client after 2 months would have gotten their credit card details on file with us by that point.

I realize this could get very complicated and tricky, and would be difficult to deal with when upgrading WHMCS, so I'm more hesitant to move forward with it since I've been advised in the past by other developers that it would be very tricky and wouldn't work well. I'm interested in everyone's thoughts!

Thanks again!

--
Karl

Backup Database failed since 7.2.1 update

$
0
0
Error message :

System
Cron Job: ERROR : Unable to unlock tables: HY000 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.

-----------

It was ok in previous version.

Please help

Can I install on a server with existing host customers?

$
0
0
I have a few presales questions, but I will ask this one first.

We have several servers with 25-50 customers per server and currently we manually bill via paypal.

Do we have an ability if purchasing whmcs to add customers who are already set up on the server(s) without causing an service interruptions? I think you understand what we are getting at - we want to use this as the new billing and management tool to make our operations more efficient, but do we have an ability to have it recognize or we manually add, the existing customers and then those customers log in and add their billing info? And while that is all occurring, there be no interruptions in their actual hosting simply because the billing info is not yet present.

We obviously do not want to have to scrub the hosting accounts and then have the customer log in to set them up.

Please advise.

Thanks

Theme

$
0
0
Have a template I want edited (two pages), and also need a custom CSS pricing table I have Implemented on both pages. I have made a rough draft In HTML how I want It, really just needs to be polished and placed within tpl files without breaking anything.

Anyone who can help?

Adding new pages to /store like in Market Connect

$
0
0
does anyone have any specific guidelines on how to add pages to the front end of WHMCS in the same manner and formatting as the new /store pages from the WHMCS Market Connect functions do?

I think id like to apply similar styling to hosting plans etc internally within WHMCS rather than by using a 3rd party theme or wordpress etc...

I know how to add pages in general but wondered if theres a different process for the new market connect style show it shows up when enabled in the menu context etc?

7.2.1 CORE-11305 - Unable to unlock tables Error During Database Backup Generation on PHP7

$
0
0
An issue has been identified in the 7.2.1 release - published on 16th May, 2017 - that is affecting the ability to generate database backups on PHP7 environments

This manifests itself as one of the following errors recorded in the Activity Log:

Code:

Unable to unlock tables: HY000 2014 Cannot execute queries while other unbuffered queries are active
Code:

Unable to unlock tables: HY000 2030 This command is not supported in the prepared statement protocol yet
Resolution
We are releasing a hot-fix patch which resolves the underlying issue.

Applying the HotFix
To apply the fix, download the zip file from the link below. Extract the contents and upload to your whmcs directory overwriting the existing files.

CORE-11305_database_backup_lock_query.zip

Note: This file is only applicable if you are running Version 7.2.1
Viewing all 13458 articles
Browse latest View live