Jump to content

So, who am I ?

Retired Forum Member
  • Posts

    53
  • Joined

  • Last visited

Everything posted by So, who am I ?

  1. Hello, I want to remove Provisioning Module Products from PrimaryNavbar and Provisioning Module Sample Panel from SecondarySidebar. For PrimaryNavbar I use ClientAreaPrimaryNavbar hook, weird thing is that I can hide every child of 'Services' except Provisioning Module Products, it seems I can't reach to Provisioning Module Products, but not sure why... add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Services'))) { $primaryNavbar->getChild('Services') ->removeChild('Provisioning Module Products'); } }); For SecondarySidebar I use ClientAreaSecondarySidebar, but I can't hide it either. add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Provisioning Module Sample Panel'))) { $secondarySidebar->removeChild('Provisioning Module Sample Panel'); } }); Any help would be much appreciated.
  2. Aghh, it took me few days to realize this! 😑 How come I've not payed attention to it! 😶 Seems, after updating, system chose WHMCS Namespinning as the Look Up Provider and just switching to Standard WHOIS solved all my problems! 🙏 For anyone who might have this problem in the future: Look Up Provider can be found under Setup >> Products/Services >> Domain Pricing Still not sure why it had impact on two character .ge domain check when it worked fine with all the other .ge domains, also it was causing problem for idn domain check and it's solved as well 🙏
  3. Yup, but since it suddenly stopped working without any changes made, I had no choice Not sure what you mean... whois look up in admin area wouldn't work without whois.json but it works perfect, user area is causing all the fuss. If my memory serves me right I checked and it wasn't working before using modified templates... Yes, you're right. My bad!
  4. from v7.1.1 It worked fine until like two weeks before update, it wouldn't get domain registration period and user wasn't able to add domain to cart after checking the status, when i contacted to WHMCS, they said orderform that I was using wasn't supported anymore and asked to update the system. That option is ticked of course but it doesn't work. I'm pretty sure they mean that it's not fully supported in a way that domain is written and is visible as a punycode and it gives you a hard time to manage IDN domains in admin area, plus invoices and all are generated with punycoded domain names. When I asked about the issue before they never said it's not supported 'anymore' and documentation has always said that it's not supported so it's not news.
  5. Hello, Since updating to v7.6.1 I have an error for idn domain registration. I have .გე domain registration and have it defined as .xn--node in domain pricing. whois.json looks like this: { "extensions": ".xn--node", "uri": "socket://whois.itdc.ge", "available": "NO OBJECT FOUND!" } In admin- area's whois look up it works fine: Whois look up log sees the domain like this: xn--podi0acc.xn--node When I search the same domain from user side, I get this: Whois look up log sees the domain like this: xn--podi0acc.გე The value of .გე domain in select box is .xn--node <option value=".xn--node">.გე</option> I see that request is sent to index.php?rp=/domain/check and these are the parameters sent And the response is empty: I'm using Six template with standard_cart ordering form. Any help would be much appreciated!
  6. ah now I got it, before I thought I had to edit SC template files and change references of SC to SCM and it got me confused 🙄 so it means, I can leave common.tpl alone and it will work without problems at least before update. since I want update process to be easy, I guess I'll edit common.tpl too 😀 Thanks a lot for your help, as usual! 🙏😊
  7. Okey, hold on.. I have to edit Standard Cart template files and change all standard_cart to standard_cart_modified wherever there is an include command and then what's the use of editing theme.yaml file ? Does system ignores theme.yaml file ? It seems like even after editing theme.yaml file, system still visits standard_cart templates and then follows include commands in them. What's the job theme.yaml file does here ? I guess I'm missing something...
  8. Yes, when I duplicated SC folder, it appeared in General Settings >> Ordering tab. I switched to Premium Comparison and have it as a default orderform template. Edited Premium Comparison's theme.yaml file and now it looks like this: config: parent: standard_cart_modified but browser still shows standard_cart template files at domain registration page (cart.php?a=add&domain=register)
  9. ah sorry for confusion, it works now, no idea what happened to it before, but it clearly works now! at domain registration page (cart.php?a=add&domain=register) it uses StandardCart as well, I want to delete some extra html from it, but thought to make copy of StandardCart as StandardCartModified and do all htm editing in it, but how can I make system switch to StandardCartModifeid instead of StandardCart ? for first page I use Universal Slider.
  10. I'm at View Cart page: cart.php?a=view the ones you posted are six template styles and they come first in <head> tag then comes this, orderforms template css <link rel="stylesheet" type="text/css" href="/templates/orderforms/standard_cart/css/all.min.css?v=186983" />
  11. weird thing is that I wanted to use Universal Slider template, but no matter what I choose, browser still shows Standard Cart .css files, I deleted cache and restarted browser, checked it from another browser but it still shows Standard Cart files. that's what I was doing, putting all my css in custom.css file, but template styles come from all.min.css and browser shows that file is included after custom.css so it overwrites it.
  12. Hello 😊 I'd like to edit orderforms template .css file, I copied the orderform folder that I want to use. I see form the browser that orderforms styles come from all.min.css file, I tried to edit there but it didn't work, then I found here that I should edit style.css file in orderforms folder but it doesn't work. Any help will be much appreciated 😊
  13. Thanks for answers, everyone! 😊 I used it few days ago and it worked perfectly! No errors, everything works fine, it's just I decided I didn't need invoices and mails from another database and I cleaned the tables before merging, so I suggest you clean database and remove all the things you don't need.
  14. And what about the invoice numbers ? Two installs will definitely have same invoice numbers and what happens to them after merging ?
  15. Hello 😊 I need to merge two WHMCS, I need to import clients, invoices, domains, services... and all from one database to another. While I was searching for solution I found ImportAssist ( https://marketplace.whmcs.com/product/46 ) that is developed by WHCMS but reviews are quite confusing, has anyone here ever tried this addon or any other that woks just fine and I won't lose any information during import process ? Any suggestions would be much appreciated 😊
  16. That's my guess exactly. TLD has a custom whois that works just fine. When domain is already in database, sure it shouldn't be available for transfer, but my system started acting weird and says it's available for transfer. There's no any error in WHOIS lookup log, it just shows the list of domains that's been checked for availability and each domain redirects me to admin's WHOIS lookup page. There's no any error text anywhere to count on. There's just CheckAvailability logs.
  17. Hello System returns incorrect information about a domain while checking availability for transfer. When I check domains for transfer it says that every domain is 'Available', except the ones that aren't registered at all and says 'Not Available', the response is true in this case. Domain that is transferring to me from another registrar should be 'Available' as well (and it works fine too), but domain that's transferred to me shouldn't be available for transfer on my site again, cuz how can one transfer from myself to myself, right? Not quite sure how CheckAvailability works for transfer, when it's for register, it uses WHOIS and gets response from it, but when it comes to Transfer, I'm not sure how system works, my theory is that it checks 'tbldomains' table in database to see if domain has 'Active' status in database and avoid double transfer, but it needs to use WHOIS as well to check if domain is registered at all and is available for transfer. Again, not sure if my theory is correct, it's just my guess. WHOIS works fine when it comes to registration and it was working fine for Transfer as well until now, I've not made any changes but somehow CheckAvailability for Transfer stopped working properly. Couldn't find any detailed documentation, any help would be much appreciated!
  18. just in case anyone have the same problem, putting hook in /includes/hooks folder helped thanks, braian!
  19. ah lol just noticed the limit in your code, my bad $domain = explode('.', $vars['domain'], 2);
  20. I know that, when I first saw site shut down I thought it was cuz of a duplicate function declaration or something like that since the two registrars I refer to, is the same registrar but with the different name and accounts, so basically they have the same files and functions, changed functions' name for one of them but still got error cuz of hook and was a bit confused cuz there was no any registrar function call in hook file. thought to remove it after I left office, will give it a try tomorrow, but I don't think it will solve the problem. oops yeah the duplication, I do explode two times, forgot to delete unnecessary code on the other hand, my code is correct cuz I need to change the price for 2-character .ge domains but domains can also be .com.ge, .net.ge etc and I don't need a different price for them. $domain_name = explode('.', $vars['domain']); if(count($domain_name)==2 && strlen($domain_name[0])==2 && $domain_name[1]=='ge'){ return 900.00; } with count($domain_name)==2, I make sure I catch 2-element array that will be .ge domains only and it won't be .com.ge/.net.ge etc that create 3-element array after exploding. oh, so it means I can't have the same hook multiple times in different registrars folders... yeah, I know that. will add it later cuz I'm still working on multi-currency site, since I couldn't find the product with a good review and kinda not sure it won't mess up the billings I'm thinking to find the way around it myself and hope it will work
  21. Hello I use OrderDomainPricingOverride hook to change some domain price manually, I need two registrars to use this hook, but when I add hook file to the second registrar's folder I get blank page and the whole site shuts down. I don't use any registrar function in the file, I just check domain's sld and tld and generate price, how can I manage to use the hook for both registrars ? this is my whole hook file: <?php /** * WHMCS SDK Sample Registrar Module Hooks File * * Hooks allow you to tie into events that occur within the WHMCS application. * * This allows you to execute your own code in addition to, or sometimes even * instead of that which WHMCS executes by default. * * WHMCS recommends as good practice that all named hook functions are prefixed * with the keyword "hook", followed by your module name, followed by the action * of the hook function. This helps prevent naming conflicts with other addons * and modules. * * For every hook function you create, you must also register it with WHMCS. * There are two ways of registering hooks, both are demonstrated below. * * @see https://developers.whmcs.com/hooks/ * * @copyright Copyright (c) WHMCS Limited 2016 * @license https://www.whmcs.com/license/ WHMCS Eula */ // Require any libraries needed for the module to function. // require_once __DIR__ . '/path/to/library/loader.php'; // // Also, perform any initialization required by the service's library. /** * Register a hook with WHMCS. * * add_hook(string $hookPointName, int $priority, string|array|Closure $function) */ add_hook('AdminHomeWidgets', 1, function() { return new SampleRegistrarModuleWidget(); }); add_hook('OrderDomainPricingOverride', 1, function($vars) { // Perform operations to determine price // logActivity('OrderDomainPricingOverride 900', 0); $domain = explode('.', $vars['domain']); $sld = $domain[0]; $tld = '.' . $domain[1]; $domain_name = explode('.', $vars['domain']); if(count($domain_name)==2 && strlen($domain_name[0])==2 && $domain_name[1]=='ge'){ return 900.00; } }); /** * Sample Registrar Module Admin Dashboard Widget. * * @see https://developers.whmcs.com/addon-modules/admin-dashboard-widgets/ */ class SampleRegistrarModuleWidget extends \WHMCS\Module\AbstractWidget { protected $title = 'Sample Registrar Module'; protected $description = ''; protected $weight = 150; protected $columns = 1; protected $cache = false; protected $cacheExpiry = 120; protected $requiredPermission = ''; public function getData() { return array(); } public function generateOutput($data) { return <<<EOF <div class="widget-content-padded"> Your widget output goes here... </div> EOF; } }
  22. Hello I'd like to sell domains with different price and currency for customers who visit from outside my country. I'm thinking to use OrderDomainPricingOverride hook to change price for non local customers, I plan to differ local and non local customers by their IP. But before I start, thought to ask here, maybe there's a better built in way of doing it that I couldn't find. I see I can add another currency to WHMCS but it says: Customers who visit your site can then choose to shop in their local currency. I don't want customers to have to choose currency, I want local ones to shop with local currency and non local one with non local currency. I still can differ it manually by IPs I know, just want to know if WHMCS has some extra features for it that I can use.
  23. I've never thought to check templates for it, thought it was all about database, my bad yeah, current admin language is English. Instead of totally removing language, I passed Georgian as language parameter, so it will always open in Georgian from admin area, no matter what language user uses <a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}&language=georgian"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a> thanks for help, brian!
×
×
  • 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