Mari-ina (01 Сентябрь 2014 - 17:08) писал:
!
Перед внесением изменений сохраните бэкап шаблона!
В шаблоне "Быстрый заказ" найдите строки
<div class="buttons"> <h2>Форма быстрого оформления заказа</h2>после них вставьте данный код
Скрытый текст
{% IF cart_items_empty %} <div class="attention">Корзина покупок пуста. Вы можете выбрать нужный товар из <a href="{CATALOG_URL}">каталога</a></div> {% ELSE %} <form action="{CART_URL}" method="post" class="cartForm"> <fieldset> <input type="hidden" name="hash" value="{HASH}" /> <table> <thead> <tr> <td> </td> <td class="image">Фото</td> <td class="name">Название товара</td> <td class="price">Цена</td> <td class="quantity">Кол-во</td> <td class="total">Общая сумма</td> </tr> </thead> <tfoot> <tr> <td colspan="5"> <span class="price">Итого:</span> </td> <td> <span class="price"> {% FOR cart_sum %} {cart_sum.NOW_WITH_DISCOUNT | money_format}<br /> {% ENDFOR %} </span> </td> </tr> </tfoot> <tbody> {% FOR cart_items %} <tr> <td width="5"><a href="{cart_items.ORDER_LINE_DELETE_URL}" title="Удалить позицию" class="close">×</a></td> <td><div class="image goods-image-icon-square"><a href="{cart_items.GOODS_URL}"><img class="goods-image-icon" src="{% IF cart_items.GOODS_IMAGE_EMPTY %}{ASSETS_IMAGES_PATH}no-photo-icon.png{% ELSE %}{cart_items.GOODS_IMAGE_ICON}{% ENDIF %}"></a></div></td> <td> <a href="{cart_items.GOODS_URL}" class="cartFormTbodyHeader"> {cart_items.GOODS_NAME} <!-- Если у товара есть отличительные свойства для модификации товара, допишем их к названию товара --> {% IFNOT cart_items.distinctive_properties_empty %}<span>({% FOR distinctive_properties %}{cart_items.distinctive_properties.NAME}: {cart_items.distinctive_properties.VALUE}{% IFNOT cart_items.distinctive_properties.last %}, {% ENDIF %}{% ENDFOR %})</span>{% ENDIF %} </a> </td> <td width="80"> <span class="cart-price"> <span class="price">{cart_items.GOODS_MOD_PRICE_NOW | money_format}</span> </span> </td> <td> <input name="form[quantity][{cart_items.GOODS_MOD_ID}]" type="number" title="Количество, {cart_items.GOODS_MOD_MEASURE_NAME}" value="{cart_items.ORDER_LINE_QUANTITY}" class="inputText qty a-center" size="4" maxlength="12" min="0" /> </td> <td width="90"> <span class="cart-price"> <span class="price">{cart_items.ORDER_LINE_PRICE_NOW | money_format}</span> </span> </td> </tr> {% ENDFOR %} {% ENDIF %}