Удаление товара из корзины UMI.CMS 2.8.*

Материал из Umicms

Перейти к: навигация, поиск

Удаление товара из корзины UMI.CMS 2.8.*

Необходимо добавить в шаблоне default.tpl в папке «\tpls\emarket\» следующие записи.

В блоке $FORMS['order_block']

''$FORMS['order_block'] = <<<END
Информация о покупателе
<p>% emarket getCustomerInfo()%</p>
Список покупок

<T able width="100%" rules="rows" cellspacing="0" cellpadding="0" border="0" id="order_block">
	<thead>
		< tr class="orow_hat">
			<th>#</th>
			<th>Наименования</th>
			<th>Дополнительные опции</th>
			<th>Количество</th>
			<th>Цена за ед.</th>
			<th>Цена</th>
			<th>Скидки</th>
			<th>Удалить</th>
		</tr>
	</thead>
	<tbody>
		% items%
	</tbody>
</table>

Скидка на заказ
% emarket discountInfo(%discount_id%)%

% total-price%
<p>Товаров в корзине: %total-amount%</p>

<form action=" % pre_lang%/emarket/purchase/">
<input type="submit" value="Оформить заказ" />
</form>

END;''

В блоке $FORMS['order_item']

''$FORMS['order_item'] = <<<END
<tr>
	<td>
		#
	</td>
…
…
	<td>
	<a href="% pre_lang%/emarket/basket/remove/item/%id%/">(X)</a>
	</td>
</tr>
END;''