{if $product_list}
<div class="row">
    <div class="col-md-12">
        <div class="grid">
            {foreach name=listing key=key item=module_data from=$product_list}
            <div class="grid-item">
                {if !$module_data.products_image || $module_data.products_image == 'product:noimage.gif'}
                <a href="{$module_data.products_link}" class="vertical-helper image-link no-image">
                    <i class="no-image-icon"></i>
                </a>
                {else}
                <a href="{$module_data.products_link}" class="vertical-helper image-link no-image">{img img=$module_data.products_image type=m_info class="productImageBorder img-responsive" alt=$module_data.products_name|escape:"html"}</a>
                {/if}
                <div class="grid-hover-box">
                    <p class="h4">{$module_data.products_name}</p>
                    <div class="clearfix footer-buttons">
                        {if $module_data.allow_add_cart eq 'true'}
                        {form type=form name=product action='dynamic' link_params=getParams method=post}
                        {form type=hidden name=action value=add_product}
                        {form type=hidden name=product value=$module_data.products_id}
                        {form type=hidden name=qty value=1}
                        {/if}
                        <button type="submit" class="btn btn-sm btn-cart" title="{txt key=BUTTON_ADD_CART}" data-toggle="tooltip" data-original-title="{txt key=BUTTON_ADD_CART}">
                            <i class="fa fa-shopping-basket"></i>
                            <span class="sr-only">{txt key=BUTTON_ADD_CART}</span>
                        </button>
                        {if $module_data.allow_add_cart eq 'true'}
                        {form type=formend}
                        {/if}
                    </div>
                </div>
            </div>
            {/foreach}
        </div>
    </div>
</div>
{/if}