Решен
При выборе одной из разновидностей товара в форме, все содержимое формы (несколько товаров) падают в корзину. Что не правильно в коде, подскажите, только пожалуйста попонятней, я в php почти 0
сайт
часть кода - товар на странице каталога
spoiler<form action="/shop/addtocart" method="POST">
{if $item.chars}
<ul class="chars_list">
{foreach key=num item=char from=$item.chars}
{if $char.value}
{if !$char.is_custom}
<li>
<span class="quest">{$char.title}:</span>
<span class="answer">{"|"|str_replace:', ':$char.value} {if $char.units}{$char.units}{/if}</span>
</li>
{else}
<li>
<span class="quest">{$char.title}:</span>
<span class="answer">
<select name="chars[{$char.id}]">
{foreach key=c item=val from=$char.items}
<option value="{$val}">{$val}</option>
{/foreach}
</select>
</span>
</li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
{if $cfg.is_shop && !$root_cat.is_catalog}
{if !$cfg.track_qty || $item.qty>0}
<input type="hidden" name="add_to_cart_item_id" value="{$item.id}" />
<table cellpadding="0" cellspacing="0" border="0" height="34" class="price_table">
<tr>
{if $item.old_price > 0}
<td style="padding-right:0px">
<div class="old_price"><span>{$item.old_price} {$cfg.currency}</span></div>
</td>
<td width="16" style="padding-right:0px">
<img src="/components/shop/images/shop_arrow.gif" border="0" />
</td>
{/if}
{if !$item.vars}
<td>
<div class="price"><span>{$item.price} {$cfg.currency}</span></div>
<input type="hidden" name="var_art_no" value="" />
</td>
{else}
<td>
<select size="3" name="var_art_no" class="var_art_no">
{foreach key=num item=var from=$item.vars}
{if $var.qty>0}
<option value="{$var.art_no}">{$var.title} — {$var.price} {$cfg.currency}</option>
{/if}
{/foreach}
</select>
<!--{foreach key=num item=var from=$item.vars}
{if $var.qty>0}
{$var.title} — {$var.price} {$cfg.currency}</br>
{/if}
{/foreach}-->
</td>
{/if}
<td>
<div id="add_to_cart_{$item.id}">
{if $cfg.qty_mode != 'one'}
<table>
<tr>
<td>
<div class="qty">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
{if $cfg.qty_mode=='qty'}
{if $item.qty}
<select name="qty" style="width:50px">
{section name=qty loop=$item.qty step=1}
<option value="{$smarty.section.qty.index+1}" {if $smarty.section.qty.index+1 == $item.cart_qty}selected="selected"{/if}>{$smarty.section.qty.index+1}</option>
{/section}
</select>
{/if}
{/if}
{if $cfg.qty_mode=='any'}
<input name="qty" style="width:50px;line-height:27px;text-align:center" value="1" />
{/if}
</td>
</tr>
</table>
</div>
</td>
<td>
<input type="submit" class="add buttons green" name="addtocart" value="{$LANG.SHOP_ADD_TO_CART}" />
</td>
</tr>
</table>
{else}
<input type="submit" class="add" name="addtocart" value="{$LANG.SHOP_ADD_TO_CART}" />
{/if}
</div>
</td>
</tr>
</table>
{else}
<div class="old_price"><span style="text-decoration:none;color:#666">Нет в наличии</span></div>
{/if}
{/if}
</form>
часть кода - страница товара
spoiler<form action="/shop/addtocart" method="POST">
{if $cfg.is_shop && !$item.hide_price}
{if !$cfg.track_qty || $item.qty>0}
<input type="hidden" name="add_to_cart_item_id" value="{$item.id}" />
<table cellpadding="0" cellspacing="0" border="0" height="34" class="price_table">
<tr>
{if $item.old_price > 0}
<td style="padding-right:0px">
<div class="old_price"><span>{$item.old_price} {$cfg.currency}</span></div>
</td>
<td width="16" style="padding-right:0px;vertical-align:middle">
<img src="/components/shop/images/shop_arrow.gif" />
</td>
{/if}
{if !$item.vars}
<td>
<div class="price"><span>{$item.price} {$cfg.currency}</span></div>
<input type="hidden" name="var_art_no" value="" />
</td>
{else}
<td>
<div class="price_select">
<select name="var_art_no" class="var_art_no">
{foreach key=num item=var from=$item.vars}
{if $var.qty>0}
<option value="{$var.art_no}">{$var.title} — {$var.price} {$cfg.currency}</option>
{/if}
{/foreach}
</select>
</div>
</td>
{/if}
<td>
<div id="add_to_cart_{$item.id}">
{if $cfg.qty_mode != 'one'}
<table>
<tr>
<td>
<div class="qty">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
{if $cfg.qty_mode=='qty'}
{if $item.qty}
<select name="qty" style="width:50px">
{section name=qty loop=$item.qty step=1}
<option value="{$smarty.section.qty.index+1}" {if $smarty.section.qty.index+1 == $item.cart_qty}selected="selected"{/if}>{$smarty.section.qty.index+1}</option>
{/section}
</select>
{/if}
{/if}
{if $cfg.qty_mode=='any'}
<input name="qty" style="width:50px;line-height:23px;text-align:center" value="1" />
{/if}
</td>
</tr>
</table>
</div>
</td>
<td>
<input type="submit" class="add buttons green" name="addtocart" value="{$LANG.SHOP_ADD_TO_CART}" />
</td>
</tr>
</table>
{else}
<input type="submit" class="add buttons green" name="addtocart" value="{$LANG.SHOP_ADD_TO_CART}" />
{/if}
</div>
</td>
</tr>
</table>
{else}
<br/><div class="old_price"><span style="text-decoration:none;color:#666">Нет в наличии</span></div>
{/if}
{/if}
</form>