Jump to content

Smarty code help


vb2cans

Recommended Posts

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated