<% IF $Shop.opt_product_ref THEN $productsmallcounter=0 QUERY ProductVariant_Same_CategoryBrand(brand_id=$brand_id,product_id=$product_id,sort_option='<>',priority1='<>',priority2='<>',priority3='<>') PAGE 1 PAGEROWS <> DO IF $Numrows THEN%>
<%ENDIF IF $Numrows AND ''!='<>' AND 0!='<>' THEN%>

[%LINKED_AUTO_BRAND_HEADER Andra varor från samma fabrikat%]

<%ENDIF IF $Numrows AND ''!='<>' AND 0!='<>' THEN QUERY Brand(brand_id=$brand_id) DO DISPLAY%>
<%NEXTROW ENDQUERY ENDIF DISPLAY /* QUERY ProductVariant_Same_Category */ $Data.category_id=$ProductVariant_Same_Category.category_id /*to fix category_id in the product-small below*/ $product_small_template='<>' $xView='DEFAULT'%> <%INCLUDE 'product/product-small-<>.htm'%> <%POP $Data.category_id NEXTROW IF $Numrows THEN%>
<% ENDIF ENDQUERY ENDIF%>