Jump to content

Show products details in home page


AmitTQ

Recommended Posts

Hi

im looking for a way to create a table on the clientareahome.tpl to show a brief of user products and services such as service name, expire date, etc.

I am using below code in my table:

<div class="tab-pane fade in active" id="products-tab" role="tabpanel" aria-labelledby="products-tab-btn">
            <div class="table-responsive">
            {if in_array('products',$contactpermissions)}
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>{$LANG.orderproduct}</th>

                        </tr>
                    </thead>
                    <tbody>
                        {foreach $services item=service}
                        <tr>
                            <td>{$service.name}</td>

                            
                        </tr>
                        {foreachelse}
                        <tr>
                            <td colspan="7">You have not any active service</td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
                {/if}
            </div>
            
            <div class="tab-btn">
                <br>
            </div>
        </div>

 

but it is not giving me the details

I found that I would need to create a hook but I dont know how because im noob in programming.

 

Link to comment
Share on other sites

  • 2 weeks later...
On 11/05/2019 at 16:48, AmitTQ said:

im looking for a way to create a table on the clientareahome.tpl to show a brief of user products and services such as service name, expire date, etc.

do you mean a table, or a homepage panel ? each would require a different type of hook...

there is already a panel on the homepage (in Six) that shows the clients active services - so you're looking to modify that, or add a table elsewhere on that page??

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