Jump to content

Custom breadcrumbs for domain view pricing page

Go to solution Solved by DennisHermannsen,

Recommended Posts


I have customized all of the WHMCS breadcrumbs to my liking, except for one stickler on the following page: whmcs/index.php?rp=/domain/pricing. I cannot seem to custom this page exclusively with elseifs in template/twenty-one/breadcrumbs.tpl or by adding a hook to include/hooks. I know the $filename is "index" but I do not know the proper variable to add (&& $??? eq "???") to pair with this specific page.


{elseif $filename eq "index" && $??? eq "???"}
    <ol class="breadcrumb">
        <li class="breadcrumb-item">
            <a href="/">Home</a>
        <li class="breadcrumb-item">
            <a href="whmcs/clientarea.php">Clients</a>
        <li class="breadcrumb-item "><a href="whmcs/index.php">Shopping Cart</a>
        <li class="breadcrumb-item active" aria-current="page">Domain Pricing


If no && variable is defined in addition to the index $filename the elseif will change multiple pages. I.e. Anything starting with "index.php" such as whmcs/index.php?rp=/account/paymentmethods, whmcs/index.php?rp=/account/users, whmcs/index.php?rp=/user/profile, etc.

Those pages are already working fine with the WHMCS defaults. I need to update the breadcrumbs on the whmcs/index.php?rp=/domain/pricing page only. Everything else is intact.

Hope that makes sense!

Thanks in advance!

Link to comment
Share on other sites

37 minutes ago, DennisHermannsen said:

Use the $templatefile variable.

{if $templatefile === 'domain-pricing'}

You can see all template files inside /templates/template-name/

That did the trick, thanks! I think I may have even tried that without the hyphen. So, thanks for including the actual code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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