[{assign var="currency" value=$oView->getActCurrency()}]
[{if $showMainLink}]
    [{assign var='_productLink' value=$product->getMainLink()}]
[{else}]
    [{assign var='_productLink' value=$product->getLink()}]
[{/if}]
[{assign var="blShowToBasket" value=true}] [{* tobasket or more info ? *}]
[{if $blDisableToCart || $product->isNotBuyable()||($aVariantSelections&&$aVariantSelections.selections)||$product->hasMdVariants()||($oViewConf->showSelectListsInList() && $product->getSelections(1))||$product->getVariants()}]
    [{assign var="blShowToBasket" value=false}]
[{/if}]
[{capture name=product_price}]
    [{block name="widget_product_listitem_grid_price"}]
        [{oxhasrights ident="SHOWARTICLEPRICE"}]
            [{assign var=tprice value=$product->getTPrice()}]
            [{assign var=price  value=$product->getPrice()}]
            [{if $tprice && $tprice->getBruttoPrice() > $price->getBruttoPrice()}]
                <span class="priceOld">
                    [{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_REDUCEDFROM"}] <del>[{$product->getFTPrice()}] [{$currency->sign}]</del>
                </span>
            [{/if}]
            [{block name="widget_product_listitem_grid_price_value"}]
                [{if $product->getFPrice()}]
                    <strong>
                        <span>
                            [{if $product->isRangePrice()}]
                                [{oxmultilang ident="PRICE_FROM"}]
                                [{if !$product->isParentNotBuyable()}]
                                    [{$product->getFMinPrice()}]
                                [{else}]
                                    [{$product->getFVarMinPrice()}]
                                [{/if}]
                            [{else}]
                                [{if !$product->isParentNotBuyable()}]
                                    [{$product->getFPrice()}]
                                [{else}]
                                    [{$product->getFVarMinPrice()}]
                                [{/if}]
                            [{/if}]
                        </span>
                        [{$currency->sign}]
                        [{if $oView->isVatIncluded()}]
                            [{if !($product->hasMdVariants() || ($oViewConf->showSelectListsInList() && $product->getSelections(1)) || $product->getVariants())}] *[{/if}]
                        [{/if}]
                    </strong>
                [{/if}]
            [{/block}]
            [{if $product->getPricePerUnit()}]
                <span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
                    [{$product->oxarticles__oxunitquantity->value}] [{$product->getUnitName()}] | [{$product->getPricePerUnit()}] [{$currency->sign}]/[{$product->getUnitName()}]
                </span>
            [{elseif $product->oxarticles__oxweight->value}]
                <span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
                    <span title="weight">[{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_ARTWEIGHT"}]</span>
                    <span class="value">[{$product->oxarticles__oxweight->value}] [{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_ARTWEIGHT2"}]</span>
                </span>
            [{/if}]
        [{/oxhasrights}]
    [{/block}]
[{/capture}]
<a id="[{$testid}]" href="[{$_productLink}]" class="titleBlock title fn" title="[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]">
    <span>
[{*** D3 Modul "extSearch" CHANGE START ***}]
        [{d3modcfgcheck modid="d3_extsearch"}][{/d3modcfgcheck}]
        [{if $mod_d3_extsearch}]
            [{d3_extsearch_highlight text=$product->oxarticles__oxtitle->value}] [{d3_extsearch_highlight text=$product->oxarticles__oxvarselect->value}]
            [{if $product->blIsSimilar}]<span id='similar'>[{oxmultilang ident="D3_EXTSEARCH_EXT_SIMILAR"}]</span>[{/if}]
            [{if $product->isD3CatHit}]<span id='similar'>[{oxmultilang ident="D3_EXTSEARCH_EXT_CATHIT"}]</span>[{/if}]
        [{else}]
            [{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]
        [{/if}]
[{*** D3 Modul "extSearch" CHANGE END ***}]
    </span>
    <div class="gridPicture">
        <img src="[{$product->getThumbnailUrl()}]" alt="[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]">
    </div>
</a>

[{block name="widget_product_listitem_grid_tobasket"}]
    <div class="priceBlock">
        [{oxhasrights ident="TOBASKET"}]
            [{$smarty.capture.product_price}]
            [{if !$blShowToBasket}]
                <a href="[{$_productLink}]" class="toCart button">[{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_MOREINFO"}]</a>
            [{else}]
                [{assign var="listType" value=$oView->getListType()}]
                <a href="[{$oView->getLink()|oxaddparams:"listtype=`$listType`&amp;fnc=tobasket&amp;aid=`$product->oxarticles__oxid->value`&amp;am=1"}]" class="toCart button" title="[{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_ADDTOCART"}]">[{oxmultilang ident="WIDGET_PRODUCT_PRODUCT_ADDTOCART"}]</a>
            [{/if}]
        [{/oxhasrights}]
    </div>
[{/block}]