Почему не происходит удаление товара из корзины MODX MINISHOP2?

При нажатии на кнопку удалить товар, удаляется только фото товара, а сам блок остается до перезагрузки страницы. Подскажите, в чем может быть проблема ?
{if !count($products)}
{'ms2_cart_is_empty' | lexicon}

{else}
{foreach $products as $product}
<button class=«btn btn-sm » style=«margin: -6px -5px -6px -21px;
position: absolute;
border-radius: 50%;
background-color:#ff542e;»
type=«submit» name=«ms2_action» value=«cart/remove»>



{var $image}
{if $product.thumb?}
{$product.pagetitle}
{else}
<img class=«img-fluid im-cart» src="{'assets_url' | option}components/minishop2/img/web/ms2_small.png"
srcset="{'assets_url' | option}assets/images/logo_navbar.png 2x"
alt="{$product.pagetitle}" title="{$product.pagetitle}"/>
{/if}
{/var}
{if $product.id?}
{$image}
{else}
{$image}
{/if}



{if $product.id?}
{$product.pagetitle}
{else}
{$product.name}
{/if}
{if $product.options?}
{foreach $product.options as $key => $option}
{if $key in ['modification','modifications','msal']}{continue}{/if}
{if $option is array}
{$caption} — {$option | join: '; '}
{else}
{$caption} — {$option}

{/if}
{/foreach}
{/if}



/>
/>
{'ms2_frontend_count_unit' | lexicon}





{'ms2_cart_price' | lexicon}:
{$product.price} {'ms2_frontend_currency' | lexicon}
{if $product.old_price?}
{$product.old_price} {'ms2_frontend_currency' | lexicon}
{/if}



{/foreach}
{'ms2_cart_total' | lexicon}:


{$total.cost} {'ms2_frontend_currency' | lexicon}





{/if}
Petr
09 мая 2020, 20:05
modx.pro
458
0

Комментарии: 1

Баха Волков
09 мая 2020, 20:29
+1
Петр, оформите вопрос нормально, код оберните в тег code, так вам никто не поможет, хотя бы потому что не прочтут, а если и смогут прочесть, то не поймут
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    1