gotcha Posted October 24, 2014 Share Posted October 24, 2014 WHMCS default code: {if $addons} <h3>{$LANG.cartavailableaddons}</h3> <div class="addons"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> {foreach from=$addons item=addon} <tr><td class="radiofield"><input type="checkbox" name="addons[{$addon.id}]" id="a{$addon.id}"{if $addon.status} checked{/if} onclick="recalctotals()" /></td><td class="fieldarea"><label for="a{$addon.id}"><strong>{$addon.name}</strong> - {$addon.pricing}<br />{$addon.description}</label></td></tr> {/foreach} </table> </div> {/if} I want to show specific addon always on cart. May I use code like this: <td class="radiofield"><input type="checkbox" name="addon's name" id="addon's id"{if $addon.status} checked{/if} onclick="recalctotals()" /></td> 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 28, 2014 Share Posted October 28, 2014 You'd associate the addon with all your products and leave the template alone 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.