-
Posts
23 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by HostingMe
-
Verifying Domain Selection issue - IMPORTANT
HostingMe replied to UXmedia's topic in Troubleshooting Issues
The issue you are having is due to your custom theme/orderform. If I switch your orderform theme back to standard_cart by appending "?carttpl=standard_cart" the order process works as expected. https://clientportal.uxmediahouse.com/store/hosting-packages?carttpl=standard_cart As you're using a custom theme, I'd recommend contacting the developer for further help on resolving the issue. -
Changing URL for Server Status
HostingMe replied to SaneChoiceLtd's topic in Admin & Configuration Questions
Assuming you're talking about changing the 'Network Status' link in the nav bar then the hook below will do the job. add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Network Status'))) { $primaryNavbar->getChild('Network Status') ->setURI('https://example.com'); } }); -
If you use the developer tools in your browser you can find the 'menuitemname' of the element you're trying to remove. With the hook you posted just change 'Website & Security' to say 'Website Security' that'll do it. <?php # Remove MarketConnect Navbar Hook # Written by brian! use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Website Security'))) { $primaryNavbar->removeChild('Website Security'); } });
-
Problem with Manual Update
HostingMe replied to blakeh's topic in Installation, Upgrade, and Import Support
It sounds like the database didn't update with the script. I had an issue similar to this and the fix was the following: - Go to: yourWHMCS.com/install - Follow the on screen prompts which should update the database - Once you get the success message, delete the 'install' directory on your web server Here's WHMCS support doc for what helped in our case: https://help.whmcs.com/m/updating/l/1136003-resolving-a-down-for-maintenance-message -
Paysafecard PaySafeCard Instalation Help
HostingMe replied to Cartitarul's topic in Third Party Add-ons
I think your best option here is to wait for the developer to get back to you as the docs have no information on what to do. From what I can see their website does have live chat so maybe try reaching out there to see if they can offer support or get the your ticket looked at. -
Paysafecard PaySafeCard Instalation Help
HostingMe replied to Cartitarul's topic in Third Party Add-ons
Does the module come with any documentation? -
You would need to create a file in the hooks folder located: ~/includes/hooks
-
Configurable Option Custom Link?
HostingMe replied to DaCrazyKiwi's topic in Admin & Configuration Questions
Yes this can be done. WHMCS have documentation on how to do this: https://docs.whmcs.com/Linking_to_WHMCS What you would need to do is use your browsers developer tools to see the raw html so you can get the config number and the option value. Once you have these you can append &configoption[1]=100 to the end of your products URL. For example: If the HTML looked liked what is below and you wanted CentOS 7 to be pre-selected when added to cart, the config number would be 75 and the option value would be 881. The code you would add to the URL would look like: &configoption[75]=881 Full URL: https://yourdomain/cart.php?a=add&pid=70&configoption[75]=881 <select name="configoption[75]" id="inputConfigOption75" class="form-control"> <option value="879" selected="selected"> CentOS 6 x64 </option> <option value="880"> CentOS 6 i386 </option> <option value="881"> CentOS 7 x64 </option> </select> -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
You should be able to do this via CSS. If you create a custom.css file at ~/templates/six/css/ (replace 'six' with the name of your theme) then add the below that should do it. @font-face {font-family: "Prometo"; src: url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.eot"); src: url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.eot?#iefix") format("embedded-opentype"), url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.woff2") format("woff2"), url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.woff") format("woff"), url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.ttf") format("truetype"), url("//db.onlinewebfonts.com/t/22b227f39427a4be79eff76ad0abdeb4.svg#Prometo") format("svg");} h1{font-family:Prometo!important;} -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
Older versions of the Six theme use different CSS classes for the cart body. You could try changing the <style> part in the hook to the code below which worked in WHMCS v.7.10 <style>#order-standard_cart .pull-md-right { width:100%; } .sidebar {display: none;}</style> If that still does not work, you'll need to find out what class the theme is using and changing the hook to match. -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
Try clearing your browser cache and template cache within WHMCS (Utilities > System > System Cleanup > Empty Template Cache). Try disabling any custom themes or hooks to rule out a conflict. If you're still having issues it might be worth reaching out to WHMCS support for additional support. -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
That hook would remove the sidebar everywhere in the cart and stretch the content to full width, see image attached. -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
Only add the pages you want a sidebar to show into the array. So in the hook that was supplied, the sidebar would be hidden on all pages except the domain register page. Which version of WHCMS are you using? I've tested this hook in WHCMS 8.2 and is working as expected. -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
If you wanted to remove the sidebars and then stretch the content out to be full width on cart pages, you can use the hook below written by brian! To show the sidebar on any of the cart pages, you would need edit the $validtemplates array <?php # Cart Sidebar Removal / Resizing v8.1 Hook # Written by brian! function cart_remove_sidebars_hook($vars) { $validtemplates = array("domainregister"); if ($vars['inShoppingCart'] && !in_array($vars['templatefile'],$validtemplates)) { $head_return = "<style>#order-standard_cart .cart-body { width:100% !important; } .cart-sidebar {display: none;}</style>"; return $head_return; } } add_hook("ClientAreaHeaderOutput",1,"cart_remove_sidebars_hook"); Original post can be found here: -
remove sidebar from all pages
HostingMe replied to Deepu3110's topic in Admin & Configuration Questions
This can be done using hooks. As an example, to remove the 'Categories' sidebar create a file in ~/includes/hooks then add the code below <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $SecondarySidebar) { if(!is_null($SecondarySidebar->getChild('Categories'))){ $SecondarySidebar->removeChild('Categories'); } }); You can find more information on hooks here: https://developers.whmcs.com/hooks/getting-started/ -
Create a directory named overrides within your ~/lang/ directory. Then create a new file within this directory calling it portuguese-br.php Add the 2 lines below then make your changes to the translation. If you'd still like to display the number in the scheduled network alert, make sure you keep the ':count' part unchanged. $_LANG['networkIssues']['scheduled'] = "There are :count Scheduled Network Impacting Issues."; $_LANG['networkIssues']['affectingYou'] = "This issue affects a server that may impact your services"; You can find out more on lang overrides here: https://developers.whmcs.com/languages/overrides/
-
Transparent White Glare on check out
HostingMe replied to DaCrazyKiwi's topic in Admin & Configuration Questions
It looks like the glare is the background colour which you can change by creating a custom.css file in your themes css folder. There's more details on how to do this here: https://developers.whmcs.com/themes/css-styling/ - Steve -
Hi HSc, You can enable the private option for all articles in your knowledgable by running the SQL query below. UPDATE tblknowledgebase SET private = 'on'; - Steve
-
Thank you @brian! changing the opening IF statement works perfectly.
-
Hi All, I'm using a module that adds integration to a VPS supplier and their module adds controls for a VM in the product details primary sidebar. I'm looking at renaming the labels on these controls and add a font awesome icon. Using the hook below everything works as expected on a VPS product details page however if you try and navigate to a different product type, like shared hosting for example, you're presented with the following error: Error: Call to a member function setLabel() on null in /home/domain/dev.domain.com/includes/hooks/client-sidebar-vps-rename.php:40 This is the code I've used for the hook: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->getChild('Custom Module Button Start VM') ->setLabel('Power On') ->setIcon('far fa-play-circle'); } });
-
Thanks Brian, worked perfectly.
-
Hi all, I'm currently using 'Natterly' as my live chat provider which supports adding visitor details direct to the chat widget. Currently I'm using {$clientsdetails.firstname} and {$clientsdetails.email} to pass the information to the widget but what I'm finding is if user 1 is managing users 2 account the chat widget shows users 2 details. What I'd like is the chat widget to show users 1 details which I'm not sure on how to do. This is the full integration code which I'm currently using: var chatbox = new NatterlyChatbox("[Your Site Token Here]") chatbox.visitor.name = '{$clientsdetails.firstname}'; chatbox.visitor.emailAddress = '{$clientsdetails.email}'; chatbox.render(); I've also added a screenshot below which hopefully helps explain what I mean. Any help on this would be appreciated. Thanks in advance. Steve
-
I saw a very similar issues with web hooks failing a while back during beta testing. I found the issue was related to Stripe having the wrong metadata information for some customers. To resolve the issue I logged into Stripe > Customers > Selected the customer > Scrolled down to the Metadata section and checked the information there matched WHMCS. If not update to match WHMCS. As an example if the Customer ID within WHMCS is 10 and Stipe has the metadata ID as 15 the web hook would fail. Changing the metadata ID to 10 in Stripe would fix the issue.
