как что, <div id="msCart">
{if !count($products)}
<div class="alert alert-warning">
{'ms2_cart_is_empty' | lexicon}
</div>
{else}
<div class="table-responsive">
<table class="table table-striped">
<tr class="header">
<th class="title">{'ms2_cart_title' | lexicon}</th>
<th class="count">{'ms2_cart_count' | lexicon}</th>
<th class="weight">{'ms2_cart_weight' | lexicon}</th>
<th class="price">{'ms2_cart_price' | lexicon}</th>
<th class="remove"></th>
</tr>
{foreach $products as $product}
{var $image}
{if $product.thumb?}
<img src="{$product.thumb}" alt="{$product.pagetitle}" title="{$product.pagetitle}"/>
{else}
<img src="{'assets_url' | option}components/minishop2/img/web/ms2_small.png"
srcset="{'assets_url' | option}components/minishop2/img/web/ms2_small@2x.png 2x"
alt="{$product.pagetitle}" title="{$product.pagetitle}"/>
{/if}
{/var}
<tr id="{$product.key}">
<td class="title">
<div class="d-flex">
<div class="image mw-100 pr-3">
{if $
product.id?}
<a href="{$
product.id | url}">{$image}</a>
{else}
{$image}
{/if}
</div>
<div class="title">
{if $
product.id?}
<a href="{$
product.id | url}">{$product.pagetitle}</a>
{else}
{$
product.name}
{/if}
{if $product.options?}
<div class="small">
{$product.options | join : '; '}
</div>
{/if}
</div>
</div>
</td>
<td class="count">
<form method="post" class="ms2_form" role="form">
<input type="hidden" name="key" value="{$product.key}"/>
<div class="form-group">
<div class="input-group input-group-sm">
<input type="number" name="count" value="{$product.count}" class="form-control"/>
<div class="input-group-append">
<span class="input-group-text">{'ms2_frontend_count_unit' | lexicon}</span>
</div>
</div>
<button class="btn btn-sm" type="submit" name="ms2_action" value="cart/change">↻</button>
</div>
</form>
</td>
<td class="weight">
<span class="text-nowrap">{$product.weight} {'ms2_frontend_weight_unit' | lexicon}</span>
</td>
<td class="price">
<!--<span class="mr-2 text-nowrap">{$product.price} {'ms2_frontend_currency' | lexicon}</span>-->
<span class="mr-2 text-nowrap">{'!ue' | snippet : ['price' => $product.price,'id' => $
product.id]} {'ms2_frontend_currency' | lexicon}</span>