Sanora Dev Posted July 16, 2019 Share Posted July 16, 2019 (edited) 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 July 19, 2019 by WHMCS ChrisD Added HTML Code into a code box, please make use of these in the future. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 16, 2019 Share Posted July 16, 2019 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. 🙂 0 Quote Link to comment Share on other sites More sharing options...
Sanora Dev Posted July 16, 2019 Author Share Posted July 16, 2019 Hello Brian, Thanks for pointing out where to edit and put the code, works perfectly. Greetings, Elias 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.