Выбор количества товаров

#
Re: Выбор количества товаров
С подсказкой службы поддержки, (спасибо ей большое! ) сделал вот так и заработало

<!-- Ссылку на добавление в корзины выводим, если:
                     type = 0 - простой тип товара
                     type = 1 - электронный товар, при этом остаток на складе больше 0 или -1,
                     что означает неограниченное количество -->

<xsl:if test="type = 0 or (type = 1 and (digitals > 0 or digitals = -1))">
  <div class="left">
    <input type="text" size="3" value="1" id="count_{@id}"/>
    <img src="/images/map_intocart.gif" width="12" height="21" border="0" usemap="#mapInToCart{@id}" style="margin: 0 0 -6px 1px;"/>
    <map name="mapInToCart{@id}">
      <area shape="rect" coords="0,0,12,10"  onclick="set_count_mod('count_{@id}', 1);" nohref="nohref" />
      <area shape="rect" coords="0,11,12,21" onclick="set_count_mod('count_{@id}', -1);" nohref="nohref" />
    </map>
  </div>
  <a href="{/shop/url}cart/?add={@id}" onclick="return $.addIntoCart('{/shop/url}cart/', {@id},   document.getElementById('count_{@id}').value)"> <img src="/images/add_to_cart.gif" alt="В корзину" /> </a>
</xsl:if>
#
Re: Выбор количества товаров
nagual,
спасибо, помогло

только получилось выбор товара а ниже корзина, как её на одной строке разместить с полем выбора?
#
Re: Выбор количества товаров

                  <a style="float: right;" href="{/shop/url}cart/?add={@id}" onclick="return $.addIntoCart('{/shop/url}cart/', {@id},   document.getElementById('count_{@id}').value)">Купить</a>
                  <div style="float: right; margin: 0 15px 10px 25px;">
                     <input class="zcount" type="text" size="3" value="1" id="count_{@id}"/>
                     <img src="/images/map_intocart.gif" width="12" height="21" border="0" usemap="#mapInToCart{@id}" style="margin: 0 0 -6px 1px;"/>
                     <map name="mapInToCart{@id}">
                        <area shape="rect" coords="0,0,12,10"  onclick="set_count_mod('count_{@id}', 1);" nohref="nohref" />
                        <area shape="rect" coords="0,11,12,21" onclick="set_count_mod('count_{@id}', -1);" nohref="nohref" />
                     </map>
                  </div>


...в смысле, float назначаем и кнопке, и полю ввода.
Авторизация