Jump to content

faisal

Member
  • Posts

    119
  • Joined

  • Last visited

1 Follower

About faisal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

faisal's Achievements

Senior Member

Senior Member (3/3)

0

Reputation

  1. Hi everyone, We like to have the WHMCS database on a separate server, so we have WHMCS files on one server and the database on another server. We also like to move the webserver under FortiGate FireWall, so do we need to know what IPs and ports to open in the FireWall regarding the WHMCS license, and market apps such as DigiCert and so? I would like to ask if there are any advice or notes to consider, especially if it is related to the firewall issues. Any kind of information will be very helpful. Thank you.
  2. Thanks @Kian That is exactly what I need 🙂 I see some cool hooks there as well 👍
  3. Also add in Feature Requests https://requests.whmcs.com/idea/select-administrator-roles-can-access-the-admin-area-while-maintenance-mode-is-enabled
  4. Hi, Let's say I am in the (Full Administrator) role and I have all the permissions. And I have other admins/staff distributed in other roles with different permissions. Just wondering, Is there any way to stop other admins from login to admin area during (Maintenance Mode). So it will be only me, or only admins in the (Full Administrator) role who can login to the admin area while (Maintenance Mode) is enabled. Thank you
  5. First, many thanks. My idea was to clone the view invoice page/template and lock it with the local currency and show it to local clients for printing/reference only. (you know WHMCS currencies system 😅) we just can't enable it (I use a hook just to force USD if needed) it is just not working as it should be. However, your idea is also great, and I think it will give me the same result I am looking for. (more if conditions need to be applied instead of just deleting unneeded codes, but no problem) I will try it. Thank you, I appreciate your help.
  6. Hi, and thank you all for this, and of course a special thanks to brian! We use USD as the main currency and local currency SAR I have done the flowing: The hook: // Start Adding Saudi Riyal currency in invoices use Illuminate\Database\Capsule\Manager as Capsule; function hook_currency_exchange_rates($vars) { $exchangerate = Capsule::table('tblcurrencies')->where('code','SAR')->get(); //return array("exchangerate" => $exchangerate); return array("exchangerate" => $exchangerate[0]->rate); } add_hook("ClientAreaPageViewInvoice", 1, "hook_currency_exchange_rates"); // End Adding Saudi Riyal currency in invoices in viewinvoice.tpl : after: <tr> <td class="total-row text-left"><strong>{$LANG.invoicestotal}</strong></td> <td class="total-row text-center">{$total}</td> </tr> add {if $clientsdetails.country eq "Saudi Arabia"} <tr> <td class="total-row text-left"><strong>{$LANG.totalinsar}</strong></td> <td class="total-row text-center">{number_format($total->toNumeric() * $exchangerate, 2, '.', '')} {$LANG.sar}</td> </tr> {/if} In invoicepdf.tpl # Start Adding Saudi Riyal currency in invoices use Illuminate\Database\Capsule\Manager as Capsule; $sarrate = Capsule::table('tblcurrencies')->where('code','SAR')->value('rate'); $exchangerate = number_format(($sarrate), 5); $number_total = $total->toNumeric(); $sar_total5 = $number_total * $exchangerate; $sar_total = number_format(($sar_total5), 2, '.', ''); # End Adding Saudi Riyal currency in invoices if ($clientsdetails["country"] === "Saudi Arabia") { $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('totalinsar') . '</td> <td align="center">' . $sar_total . ' ' . Lang::trans('sar') . '</td> </tr>'; } Everything works 🙂 Now the clients asked for more (Full invoice in SAR) So I am thinking if we clone the viewinvoice.tpl to viewinvoicelocal.tpl or something. Change all the prices variables from $xxx to {number_format($xxx->toNumeric() * $exchangerate, 2, '.', '')} Delete all the unneeded options and so it will be for reference and print only. (No click to pay or something like that) Can we make this used by the viewinvoice.php by some kind of hook, or is it possible to have a new_custom_viewinvoice.php to run this tpl file (custom page) later if all OK, will add a link from the original invoice or from clientarea.php?action=invoices to the local currency invoice page. Is this even possible? Thank you.
  7. It is for now, and I don't think this will change soon if at all. That is not coverage they can just use the same terms or similar to nic.sa to be covered 😉 or maybe they don't have this option in their system as well. 😁 I did vote on that 🙂 That what is about what we are doing now but looking for something better. 😉 Yes kind of, with a little more requirements. but that is not the issue here 😅 Thank you all.
  8. Yes, I am sure 100% and I do have a .sa domain my self and it is 100% free 😉 https://www.nic.sa/en/view/faq16 *When you say (including nic.sa) where is that exactly I can't find it any where in nic.sa 🤔 I don't know why anybody would sell it as you say, What I know that nic.sa at present don't take any thing and sellers may take there own setup fees so we want only one time small fee for setup the domain because it need some processing, otherwise we don't want any thing from the client. nic.sa will send an email once a year to the domain owner/manager for update his/her info (this considers as renew). *Be aware that some websites sell .sa.com as a Saudi domain, will it is not Saudi domain and have nothing to do with Saudi Domains or nic.sa
  9. Hi We have to sell .sa,.com.sa,.net.sa,.med.sa,.sch.sa,.org.sa,.edu.sa,.gov.sa,.pub.sa TLDs and it is one time payment for a life time. So I am asking what do you think is the best configuration for pricing sins WHMCS don't give the (One Time Fee) option for domains pricing, is it better to set renew pricing to -1 to disable renewals or make it 0.00 as free renewals? WHMCS Team: do you have plans to add this option? If no is there any way to do it as a hook or something?
  10. So nice 😉 I will check it out Thank you
  11. Thank you brian! That is what I already did: make it hidden and set quantity to 0 I am not sure about canceling the service from the clients what will happen? The server will still work until the end of the period or what! I want the client to pick a new server/service from the store and not continue with the current one.
  12. Hi, We have one service that is no more available so I check the (Retired check box) but the problem is our staff can't find it in the (Admin area -> Clients -> Products/Services -> Search/Filter -> Product/Service) So they can can manage it if needed. any tips?!! And what if we want the clients who have this service not to be able to renew this service any more when there time is done and not create an invoice for it, and maybe send or show some kind of reminder or a note at client Products/Services page details. Is this possible? Thank you
  13. Thank you for fast replay, My GM want to wait tell tomorrow to see what will happen with the cron job before I open a ticket.
  14. Hi, Today, we've faced a vital issue with WHMCS which affected our business partially. The issue can be summarized in the below: On the daily cron job today, 1- The system has generated new Invoices for most of the customers that their next due date is before 31/12/2017 , the invoices are correct with their due date, but the're issued too early. 2- No matter of the billing cycle type , the system has generated an invoice for them. 3- The system has suspended all the services issued invoices for them in step 1. WHMCS current version is 7.1.1 The last thing we did yesterday before this issue is updating the PHP on the server running the WHMCS from PHP 5.6 to PHP 7.0.22 so we can upgrade today to the latest WHMCS! Also we've check the The server date and it is correct . *Please note that this issue happened before when we upgrade WHMCS from version 6.x to 7.0.1 So, kindly advise the cause this to happen and what is the solution of such issue. Thanks
×
×
  • 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