<div class="table-responsive table-grey">
<table>

<tr>
<td width="20%"><strong>{$LANG.orderproduct}</strong></td>
<td>{$groupname} - {$productname}{if $domain} ({$domain}){/if}</td>
</tr>

<tr>
</tr>

</table>
</div>

<p>{$LANG.upgradesummary}</p>


{if $promoerror}
			<div class="notice notice-error">
				<div class="inside">
					<p>{$promoerror}</p>
				</div>
			</div>
{/if}

<div class="table-responsive table-grey">
<table>
  <tr>
    <th width="55%">{$LANG.orderdesc}</th>
    <th width="45%">{$LANG.orderprice}</th>
  </tr>

{foreach key=num item=upgrade from=$upgrades}
{if $type eq "package"}
<tr class="carttableproduct"><td><input type="hidden" name="pid" value="{$upgrade.newproductid}" /><input type="hidden" name="billingcycle" value="{$upgrade.newproductbillingcycle}" />{$upgrade.oldproductname} => {$upgrade.newproductname}</td><td align="center">{$currencysymbol}{$upgrade.price} {$currency}</td></tr>
{elseif $type eq "configoptions"}
<tr class="carttableproduct"><td>{$upgrade.configname}: {$upgrade.originalvalue} => {$upgrade.newvalue}</td><td align="center">{$currencysymbol}{$upgrade.price} {$currency}</td></tr>
{/if}
{/foreach}

<tr class="carttablesummary"><td align="right">{$LANG.ordersubtotal}: &nbsp;</td><td align="center">{$subtotal}</td></tr>
{if $promodesc}
<tr class="carttablesummary"><td align="right">{$promodesc}: &nbsp;</td><td align="center">{$discount}</td></tr>
{/if}
{if $taxrate}
<tr class="carttablesummary"><td align="right">{$taxname} @ {$taxrate}%: &nbsp;</td><td align="center">{$tax}</td></tr>
{/if}
{if $taxrate2}
<tr class="carttablesummary"><td align="right">{$taxname2} @ {$taxrate2}%: &nbsp;</td><td align="center">{$tax2}</td></tr>
{/if}
<tr class="carttabledue"><td align="right">{$LANG.ordertotalduetoday}: &nbsp;</td><td align="center">{$total}</td></tr>
</table>
</div>

{if $type eq "package"}<p class="center">{$LANG.upgradeproductlogic} ({$upgrade.daysuntilrenewal} {$LANG.days})</p>{/if}

<form method="post" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="step" value="2">
<input type="hidden" name="type" value="{$type}">
<input type="hidden" name="id" value="{$id}">
{if $type eq "package"}
<input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
<input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
{/if}
{foreach from=$configoptions key=cid item=value}<input type="hidden" name="configoption[{$cid}]" value="{$value}" />{/foreach}
</form>

<form method="post" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="step" value="3">
<input type="hidden" name="type" value="{$type}">
<input type="hidden" name="id" value="{$id}">
{if $type eq "package"}
<input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
<input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
{/if}
{foreach from=$configoptions key=cid item=value}<input type="hidden" name="configoption[{$cid}]" value="{$value}" />{/foreach}
{if $promocode}<input type="hidden" name="promocode" value="{$promocode}">{/if}

<h2>{$LANG.orderpaymentmethod}</h2>

<p class="center">{foreach key=num item=gateway from=$gateways}
    <input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $num eq 0} checked{/if} />
    <label for="pgbtn{$num}">{$gateway.name}<br /><img src="templates/{$template}/images/{$gateway.name}.png" alt="" /></label><br />
    {/foreach}</p>

<p class="center"><input type="submit" value="{$LANG.ordercontinuebutton}" class="button1 color2" /></p>

</form>