TruMan1 Posted November 4, 2009 Share Posted November 4, 2009 I have a few product add-ons that are almost always required when purchasing it's parent product. Is there a way to have these product add-ons checked off during checkout by default? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 4, 2009 WHMCS Support Manager Share Posted November 4, 2009 That might be possible by editing configureproduct.tpl and using an if command. More information on those in the smarty docs: http://smarty.net/manual/en/language.function.if.php 0 Quote Link to comment Share on other sites More sharing options...
TruMan1 Posted November 4, 2009 Author Share Posted November 4, 2009 I looked there but it doesn't look like it beause it is using "{$addon.checkbox}" for the checkbox. Here's the code: {if $addons} <p><strong>{$LANG.orderchooseaddons}</strong></p> <p>{$LANG.orderaddondescription}</p> <div class="orderbox"> <b class="orderboxrtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <div class="orderboxpadding"> <table> {foreach key=num item=addon from=$addons} <tr><td>{$addon.checkbox}</td><td><label for="a{$addon.id}"><strong>{$addon.name}</strong> - {$addon.description} ({$addon.pricing})</label></td></tr> {/foreach} </table> </div> <b class="orderboxrbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b> </div> {/if} 0 Quote Link to comment Share on other sites More sharing options...
moisesgl Posted May 4, 2012 Share Posted May 4, 2012 did anybody got this to work? i am interested in this, i would like some addons to be checked by default. 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.