<td align="right">
{if $smarty.const.CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW eq 0}
{* shopping cart page is shown in the same window - in this cart 'add to cart' button is a form submit button *}
{if $product_info.Price>0 && ( $smarty.const.CONF_SHOW_ADD2CART eq 1 ) && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
<input name="cart_{$product_info.productID}" type="image" src="images/tmpl7_add2cart.gif" alt="{$smarty.const.ADD_TO_CART_STRING}">
{/if}
{else}
{* shopping cart page is shown in a popup window *}
{if $product_info.Price>0 && ( $smarty.const.CONF_SHOW_ADD2CART eq 1 ) &&
( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
<a href="javascript
pen_window('cart.php?addproduct={$product_info.productID}{counter name='select_counter_hidden' start=0 skip=1 print=false}{counter name='select_counter_hidden_extra' start=0 skip=1 print=false}{section name=i loop=$product_info.product_extra}{if $product_info.product_extra
.option_type eq 1}{section name=s loop=$product_info.product_extra.option_show_times}&option_select_hidden_{counter name=select_counter_hidden}='+document.HiddenFieldsForm_{$product_info.productID}.option_select_hidden_{counter name=select_counter_hidden_extra}_{$product_info.productID}.value+'{/section}{/if}{/section}',400,300);"><img border=0 src="images/tmpl7_add2cart.gif"
alt="{$smarty.const.ADD_TO_CART_STRING}"></a>
{else}
{/if}
{/if}
{counter name='select_counter_hidden' start=0 skip=1 print=false}
{section name=i loop=$product_info.product_extra}
{if $product_info.product_extra.option_type eq 1}
{section name=s loop=$product_info.product_extra.option_show_times}
<input type=hidden
name='option_select_hidden_{counter name=select_counter_hidden}_{$product_info.productID}'
value='1'>
{/section}
{/if}
{/section}
</td>