<form method="post" class="ms2_form">
    <div class="row ms2_product" style="border-bottom: 1px solid #ccc; margin-bottom: 2em;">
    <div class="col-md-2" style="text-align:center;">
        {if $small?}
            <img src="{$small}" alt="{$pagetitle}" height=90 title="{$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="{$pagetitle}" title="{$pagetitle}"/>
        {/if}
    </div>
    <div class="col-md-2">
        {'msOptions' | snippet : ['product'=>$id,'options'=>'color,size']}
    </div>
    <div class="col-md-4">
            <a href="{$id | url}">{$pagetitle}</a>
            <span class="flags">
                {if $new?}
                    <i class="glyphicon glyphicon-flag" title="{'ms2_frontend_new' | lexicon}"></i>
                {/if}
                {if $popular?}
                    <i class="glyphicon glyphicon-star" title="{'ms2_frontend_popular' | lexicon}"></i>
                {/if}
                {if $favorite?}
                    <i class="glyphicon glyphicon-bookmark" title="{'ms2_frontend_favorite' | lexicon}"></i>
                {/if}
            </span>
            <span class="price">
                <span class="mvtforms-price">{$price}</span> {'ms2_frontend_currency' | lexicon}
            </span>
            {if $old_price?}
                <span class="old_price">{$old_price} {'ms2_frontend_currency' | lexicon}</span>
            {/if}
    
            <button class="btn btn-default pull-right" type="submit" name="ms2_action" value="cart/add">
                <i class="glyphicon glyphicon-barcode"></i> {'ms2_frontend_add_to_cart' | lexicon}
            </button>
            <input type="hidden" name="id" value="{$id}">
            <input type="hidden" name="count" value="1">
            <input type="hidden" name="options" value="[]">
        {if $introtext}
            <p>
                <small>{$introtext}</small>
            </p>
        {/if}
    </div>
     <div class="col-md-2">
        <a type="button" href="#" data-modal="oneClickFormProductList" data-price="{$price} {'ms2_frontend_currency' | lexicon}" data-name="{$pagetitle | replace : '"' : ''}" data-id="{$id}" class="btn btn-success mvtFormsOneClickForm">Заказать в 1 клик</a>
    </div>
</div>
</form>