Jump to content

martinezfer

Member
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About martinezfer

  • Rank
    Newbie

Recent Profile Visitors

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

  1. Hi, I'm trying to remove and add some menu items to the WHMCS template through hooks. I was able to add some but following same php files, for some reason, some did not work. Can someone advise what is wrong with these hook php files? 1-Adding "VPN" as submenu of "Hosting Main Menu" <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Hosting'))) { $primaryNavbar->getChild('Hosting') ->addChild('VPN', array( 'label' => 'VPN', 'uri' => 'https://.......', 'order' => '101', )); } }); 2-Remove "SSL Certificates" from submenu under "Store" <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Store'))) { $primaryNavbar->getChild('Store')->removeChild('SSL Certificates'); } }); Please advise
  2. Hi, I am having trouble figuring out how to diplay the product prices the way I want them I have 4 different shared plans with recurring annual billing options. The problem: The plans (pre-cart) show the total year price instead of the monthly price. While there is an option to add a monthly price, this monthly price changes depending on the annual billing option. For each of the 4 plans the annual billing option gives the customer a much cheaper monthly price, but the customer does not see this because the plans only shows the one monthly price added. In the plan I want customers too see the monthly price according to the annual billing cycle first before they select a plan and be shown monthly billing cycle price after. How can I do this? 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