Bronze only £2.49/mo
UK Web Host Bronze plan offers a cost-effective...
300MB Disk Space
2000MB/month Bandwidth
Silver only £3.49/mo
The UK Web Host Silver Plan is suitable for...
1000MB Disk Space
5000MB/month Bandwidth
Gold only £7.49/mo
The UK Web Host Gold Plan allows for up to six...
3000MB Disk Space
10000MB/month Bandwidth

Portal Home > Knowledgebase > WHMCS Addons > Comparison WHMCS Addon


Comparison WHMCS Addon




WHMCS Product Comparison Addon

This WHMCS addon is a smarty function that returns the products in arrays for use in any smarty template within your WHMCS website

Plans Smarty function

By calling the following function in your template file (.tpl)
{plans group=1}
two arrays are returned for use in your page.

  • Plans Array

    <ul>
    <li>Bronze Hosting Plan</li>
    <li>Silver Hosting Plan</li>
    <li>Gold Hosting Plan</li>
    </ul>
    <ul>
    <li>{$currency.prefix}{$plans[0].monthly} per Month
    or only
    {$currency.prefix}{$plans[0].annually} per Year!</li>
    <li>{$currency.prefix}{$plans[1].monthly} per Month<br />
    or only
    {$currency.prefix}{$plans[1].annually} per Year!</li>
    <li>{$currency.prefix}{$plans[2].monthly} per Month
    or only<br />
    {$currency.prefix}{$plans[2].annually} per Year!</li>
    </ul>
    <ul>
    <li>
    <h3>Bronze Plan</h3>
    <p>
    {$plans[0].description|truncate:"80":"..."}
    {$plans[0].webspace}mb hosting space.
    <a href="{$systemurl}cart.php?a=add&pid=1" title="Order Now!">Order</a> <p> </li> <li> <h3>Silver Plan</h3>
    <p>
    {$plans[1].description|truncate:"80":"..."}
    {$plans[1].webspace}mb hosting space.
    <a href="{$systemurl}cart.php?a=add&pid=2" title="Order Now!">Order</a></p>
    </li>
    <li>
    <h3>Gold Plan</h3>
    <p>
    {$plans[2].description|truncate:"80":"..."}
    {$plans[2].webspace}mb hosting space.<br /><a class="orderBtn" href="{$systemurl}cart.php?a=add&pid=3" title="Order Now!">Order</a></p>
    </li> </ul>

  • Compare Array

    <table>
    {foreach from=$compare item=val key=key name=comp}
    <tr>
    <td>{$key}</td>
    {foreach from=$val item=value}
    <td>{$value}</td>
    {/foreach}
    </tr>
    {/foreach}
    </table>

     



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article


Powered by WHMCompleteSolution