Jump to content

Service/Products displayed on homepage


Thumper

Recommended Posts

attempting to show product/service, price, billing cycle, due date, status and a manage button in a table format on the homepage

                    {foreach key=num from=$services item=service}
                            <tr>
                              <td><strong>{$service.group} - {$service.product}</strong>{if $service.domain}<br /><a href="clientarea.php?action=productdetails&id={$service.id}" target="_blank">{$service.domain}</a>{/if}</td>
                              <td>{$service.amount}</td>
                              <td>{$service.billingcycle}</td>
                              <td>{$service.nextduedate}</td>
                          	{if $service.rawstatus eq 'active'}
                          		<td><span class="label label-success {$service.rawstatus}">{$service.statustext}</span></td>
                          	{elseif $service.rawstatus eq 'fraud'}
                          		<td><span class="label label-warning {$service.rawstatus}">{$service.statustext}</span></td>
                          	{elseif $service.rawstatus eq 'terminated'}
                          		<td><span class="label label-danger {$service.rawstatus}">{$service.statustext}</span></td>
                          	{elseif $service.rawstatus eq 'cancelled'}
                          		<td><span class="label label-info {$service.rawstatus}">{$service.statustext}</span></td>
                          	{else}
                          		<td><span class="label label-grey {$service.rawstatus}">{$service.statustext}</span></td>
                          	{/if}
                          	   <td>
                                <a href="clientarea.php?action=productdetails&id={$service.id}"> <i class="icon icon-list-alt"></i> {$LANG.clientareaviewdetails}</a>
                              </td>
                            </tr>
                    {foreachelse}
                            <tr>
                                <td colspan="6" class="textcenter">{$LANG.norecordsfound}</td>
                            </tr>
                    {/foreach}

I use this code on the clientareaproducts.tpl page, and I get data, but nothing on the clientareahome.

So far I have gathered that a hook would need or should be used. but how do I call the required variables? how do I call my custom hook?

 

Any help with this would be appreciated. 

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