Jump to content

isixhosting

Senior Member
  • Content Count

    176
  • Joined

  • Last visited

Community Reputation

3 Neutral

About isixhosting

  • Rank
    Level 2 Member

Recent Profile Visitors

714 profile views
  1. @brian! btw did you read my PM? I asked you about some "thing" there... please reply via PM... thanks
  2. That's absolutelly right and I know about this "odd" circle a long time. Now I did it in this way: 1. removed the default affiliate menu item 2. created a new page with an "Activate Affiliate" button/link to Affiliate support departement 3. The customer has to send a request message with his personal and contact details 4. we will create an account for him and it will be sent a welcome message to him with login credentials And by this long "way" just because of the fact you described above. Leaving the option for registration of non customers enabled is a faith with spammers.
  3. Hi @brian! , with your help, this has now been done with a great result. THANK YOU!
  4. No one feels thanked because you had the intention to say “thank you.” I just want to take the time to say "THANK YOU" to all developers who helps WHMCS users to get their WHMCS app tweaked, fixed, customized and are still helping with many tips and things. My special "THANK YOU" get to @brian! who is the most contributor of all code changes and tweaks! Donation sent!
  5. I think WE all who are using @brian! s great codes/tweaks and other helpfull stuff we should make some donation to him, not just hitting the "LIKE BUTTON". Shouldn't we? I hope everyone knows, what the developers are charging for 1-hour of work...
  6. @brian! OMG... my head is exploding by reading your post 🙄🙄🙄 ok, I will start to change the hook now... in the meanwhile thank you!!! I will be back with the results/or fails 😊
  7. Hi, I'm lost. I followed all recommendations and tutorials here and at WHMCS like this: https://developers.whmcs.com/themes/navigation/ but it doesn't solve my problem. The situation is as follow: 1. I have customized the top menu for all "clients" (doesn't matter if logged in or not) - it's working fine 2. For logged in customers I have removed all the top menu stuff, because it's not necessary for them 3. Now I'm trying to "customize" the menu for only logged in customers with adding my own menu items/subitems, but without success. The problem would be probably by using the Lagom template as they have some "own" codes, not ususally used by WHMCS. Here my hook code for the top menu: <?php /***** START - Remove menu items *****/ add_hook('ClientAreaNavbars', -1, function () { $primaryNavbar = Menu::primaryNavbar(); if ($primaryNavbar && !is_null($primaryNavbar->getChild('Home'))) { $primaryNavbar->removeChild('Home'); } if ($primaryNavbar && !is_null($primaryNavbar-> getChild('Store'))) { $primaryNavbar->removeChild('Store'); } if ($primaryNavbar && !is_null($primaryNavbar-> getChild('Affiliates'))) { $primaryNavbar->removeChild('Affiliates'); } if ($primaryNavbar && !is_null($primaryNavbar-> getChild('Knowledgebase'))) { $primaryNavbar->removeChild('Knowledgebase'); } if ($primaryNavbar && !is_null($primaryNavbar-> getChild('Announcements'))) { $primaryNavbar->removeChild('Announcements'); } }); /***** END - Remove menu items *****/ /***** START - Custom menu items *****/ add_hook('ClientAreaPrimaryNavbar', 1, function($primaryNavbar) { $client = Menu::context('client'); if (is_null($client)) { $newMenu = $primaryNavbar->addChild( 'hosting', array( 'label' => Lang::trans('Hosting'), 'uri' => '', 'order' => 11, ) ); $newMenu->addChild( 'sharedhosting', array( 'label' => Lang::trans('Shared Hosting'), 'uri' => 'cart.php?gid=1', 'order' => 1, ) ); $newMenu->addChild( 'wordpresshosting', array( 'label' => Lang::trans('WordPress Hosting'), 'uri' => 'cart.php?gid=34', 'order' => 2, ) ); /////////////////////////////////////////////// $newMenu = $primaryNavbar->addChild( 'ecommerce', array( 'label' => Lang::trans('Ecommerce Hosting'), 'uri' => '', 'order' => 12, ) ); $newMenu->addChild( 'ecommerce1', array( 'label' => Lang::trans('CS-Cart Hosting'), 'uri' => 'cart.php?gid=36', 'order' => 1, ) ); $newMenu->addChild( 'ecommerce2', array( 'label' => Lang::trans('Magento Hosting'), 'uri' => '', 'order' => 2, ) ); /////////////////////////////////////////////// $newMenu = $primaryNavbar->addChild( 'vps', array( 'label' => Lang::trans('Virtual Private Servers'), 'uri' => '', 'order' => 13, ) ); $newMenu->addChild( 'vps1', array( 'label' => Lang::trans('VPS Cloud Shared'), 'uri' => 'cart.php?gid=33', 'order' => 1, ) ); $newMenu->addChild( 'vps2', array( 'label' => Lang::trans('VPS Cloud Dedicated'), 'uri' => 'cart.php?gid=31', 'order' => 2, ) ); /////////////////////////////////////////////// $newMenu = $primaryNavbar->addChild( 'dedicated', array( 'label' => Lang::trans('Dedicated Servers'), 'uri' => 'cart.php?gid=14', 'order' => 14, ) ); /////////////////////////////////////////////// $newMenu = $primaryNavbar->addChild( 'cscart', array( 'label' => Lang::trans('CS-Cart'), 'uri' => '', 'order' => 15, ) ); $newMenu->addChild( 'cscartlicenses', array( 'label' => Lang::trans('CS-Cart Licenses'), 'uri' => 'cart.php?gid=2', 'order' => 1, ) ); $newMenu->addChild( 'cscarthosting', array( 'label' => Lang::trans('CS-Cart Hosting'), 'uri' => 'cart.php?gid=36', 'order' => 2, ) ); } }); This code below has removed the menu items from the top menu, if a customer is logged in: $client = Menu::context('client'); if (is_null($client) Then, if a customer is logged in, in the top menu remain items only for logged in customer, what would be ok (see the screenshot) But how can I add new menu items to the "logged in" users, or remove the current visible with a hook? For example I will add the "Knowledge Base" again there or "Affiliates" which is missing or completely a new menu item with some "childs". Thanks for any recommendations.
  8. And if I don't accept the order, but the payment has been made? Don't understand the logic behind the procedure. Once it's paid is paid. Or what should do the sale administrator, if he "think", the order is a fraud??? Make a refund? Nonsense...
  9. Plugin support is discontinued for: WHMCS cPanel Plesk Cloudflare no longer provides software updates for these plugins and Cloudflare Support cannot assist to troubleshoot issues with these plugins. ...nice...
  10. div class="price"><span>{$product.pricing.minprice.price} {$LANG.orderpaymenttermonetime}</span></div> {else} <div class="package-starting-from ">{$LANG.startingat}</div> <div class="price"> {if $product.pricing.rawpricing.triennially neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.triennially/36)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.biennially neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.biennially/24)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.annually neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.annually/12)|string_format:"%.2f"}{$currency.suffix}</span>/mo {else}{$product.pricing.minprice.cycleText} {/if} </div> Hi Brian, Lagom support said this: "Your customization format the price with "dot", as you are using rawrpice value, which WHMCS format always with "dot". Please fix your customization, to handle the WHMCS currency setting." How can I change the 'rawpricing' thing? Thanks
  11. How to change WHMCS Price Decimal Separator?
×
×
  • 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