vb2cans Posted October 1, 2012 Share Posted October 1, 2012 Hi I need some help on coding. The below code displays this when adding items to cart. (The reason there is $48.50 + $11.45 is that the $48.50 is a recurring sale and I have added a setup fee to make up the difference for the one time purchase to make the total price $59.95) Billing Cycle 1 Year Number of computers: 1 $48.50 + $11.45 I would lie to change it to calculate the $48.50 + $11.45 And just display 1 $59.95 Code: {if $configurableoptions} {*<p class="cartsubheading">{$LANG.orderconfigpackage}</p> <p>{$LANG.cartconfigoptionsdesc}</p>*} <div class="cartbox"> <table cellspacing="0" cellpadding="0"> {foreach key=num item=configoption from=$configurableoptions } <tr><td class="fieldlabel">{$configoption.optionname}:</td><td> {if $configoption.optiontype eq 1} <select name="configoption[{$configoption.id}]"> {foreach key=num2 item=options from=$configoption.options} <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}>{$options.name}</option> {/foreach} </select> {elseif $configoption.optiontype eq 2} {foreach key=num2 item=options from=$configoption.options} <label><input type="radio" name="configoption[{$configoption.id}]" value="{$options.id}"{if $configoption.selectedvalue eq $options.id} checked="checked"{/i {/foreach} {elseif $configoption.optiontype eq 3} <label><input type="checkbox" name="configoption[{$configoption.id}]" value="1"{if $configoption.selectedqty} checked{/if}> {$configoption.options.0.name}</ {elseif $configoption.optiontype eq 4} <input type="text" name="configoption[{$configoption.id}]" value="{$configoption.selectedqty}" size="5"> x {$configoption.options.0.name} {/if} 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.