Jump to content

Separate products page by group or type


unknownsolo

Recommended Posts

Hello all, I saw this thread here which does exactly what I want:

https://forum.whmcs.com/showthread.php?123278-Products-service-groups-don-t-show-on-a-separate-page

However, anyone know how to also edit breadcrumbs to reflect the page you are on? Or better yet, create separate pages per product "type" not "group"?

to edit breadcrumbs, you could do something along these lines in /templates/six (or custom)/includes/breadcrumbs.tpl...

 

<ol class="breadcrumb">
   {foreach $breadcrumb as $item}
       <li{if $item@last} class="active"{/if}>
           {if !$item@last}<a href="{$item.link}">{/if}
           {$item.label}
           {if $item@last and $smarty.get.group}({$smarty.get.group}){/if}
           {if !$item@last}</a>{/if}
       </li>
   {/foreach}
</ol>

9KMLrJ0.png

 

you could create a hook to modify the breadcrumbs array, but you'd ideally need to do it in a systematic way...

 

creating separates pages would be both easy and hard... creating pages is simple enough, but you'd have to recreate the wheel and query the database for specific arrays... that will be a lot of work if you're unfamiliar with WHMCS.

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.

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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