Jump to content

Table on productpage


Recommended Posts

Hello everyone,

I'm looking for an option to add a table on a productpage. So on productpage gid=3 (for example) after the pricing, i want to add a table with specs (instead of the group features you can add).
The same on productpage gid=1 but another table with specs (different than gid=3)

The table  we have now is in HTML like this:

<table>
                                        <thead>
                                            <tr>
                                                <th>Packages</th>
                                                <th>Starter</th>
                                                <th>Basic</th>
                                                <th>Standard</th>
                                                <th>Plus</th>
                                            </tr>
                                        </thead>
                                          </div>
                                        <tbody>
                                            <tr>
                                                <td><b>Storage</b></td>
                                                <td>1 GB</td>
                                                <td>2 GB</td>
                                                <td>4 GB</td>
                                                <td>6 GB</td>
                                             </tr>
                                            <tr>

This is just an example, not whole code of course 😉

Is it possible to add this with HTML or may'be there is a plugin or hook.

Thanks for helping,
Elias

Edited by WHMCS ChrisD
Added HTML Code into a code box, please make use of these in the future.
Link to comment
Share on other sites

Hi Elias,

19 minutes ago, Devias said:

I'm looking for an option to add a table on a productpage. So on productpage gid=3 (for example) after the pricing, i want to add a table with specs (instead of the group features you can add).

which implies you're not using standard_cart, but one of the comparison or slider templates... or a custom template ?

20 minutes ago, Devias said:

Is it possible to add this with HTML or maybe there is a plugin or hook.

simplest solution would be to just edit the appropriate products.tpl for whichever template you're using - take out the existing products group code and replace it with your custom code for each product group..

{if $gid eq '10'}
table 10
{elseif $gid eq '11'}
table 11
{/if}

and where i've put table 10 or table 11, you would replace that with your html code for those product groups.

you could use a hook to generate the output, but you'd still need to edit the template to output that hook, so you might as well just edit the template. 🙂

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