<%IF $Data.brand_id THEN $Pagerows=$Data.saved_pagerows QUERY Brand(brand_id=$Data.brand_id) DO DISPLAY%>
<%PICTURE('RS_BRAND')%> <% CALL DELETE_DATA_HASH("StructuredData") CALL SET_DATA_HASH("StructuredData.@context", "https://schema.org") CALL SET_DATA_HASH("StructuredData.@type", "ImageObject") CALL SET_DATA_HASH("StructuredData.caption", $name) QUERY PicData(picture_id=$picture_id,transform='RS_BRAND') DO DISPLAY CALL SET_DATA_HASH("StructuredData.url", $url) CALL SET_DATA_HASH("StructuredData.width", $size_x) CALL SET_DATA_HASH("StructuredData.height", $size_y) NEXTROW ENDQUERY %>

$name

$descr

<%IF $link THEN%>[%HOMEPAGE Hemsida%]: $link<%ENDIF%>

<%IF $Shop.opt_document THEN FETCH BrandDocument IF $Numrows THEN%>
[%MORE_INFORMATION Mer information%]: <%ENDIF DISPLAY%> $name
<% NEXTROW IF $Numrows THEN%>
<%ENDIF ENDFETCH ENDIF%>
<%NEXTROW ENDQUERY%> <%IF $brand_id THEN QUERY Product(brand_id=$brand_id) PAGE $brand_pagenum PAGEROWS $Pagerows DO $brand_numpages=$Numpages $Data.Brand_numproducts=$Pagerows DISPLAY NEXTROW ENDQUERY ENDIF $xView='DEFAULT' $xTransform='RS_THUMBS2' %> <%$prodvar_brand_id=$brand_id $LINK = CALL GET_SEO_URL('brand', $brand_id, $seo_url) $LINK = CALL SEO_URL_PREPARE_PARAMETER($LINK) /* Filter */ IF $Shop.opt_filter AND $SHOW!="new" AND $SHOW!="campaign" AND $SHOW!="promote" THEN QUERY BrandProductFilter(brand_id=$brand_id) DO $no_of_filters=$Numrows DISPLAY NEXTROW ENDQUERY ENDIF IF $Shop.opt_filter AND $no_of_filters THEN INCLUDE 'rs/rs-filter-brand.htm' ELSE IF $Data.order=='DESC' THEN $rev_order='ASC' ELSE $rev_order='DESC' ENDIF IF $opt_layout THEN QUERY LayoutTemplate(template_type='product-small',available_in_shop=1,language=$language) DO IF $Brand_numproducts AND ($product_display_sorting OR $LayoutTemplate.Numrows OR $show_numproduct_chooser) THEN%>
<%IF $product_display_sorting THEN%> <%ENDIF%>
<%ENDIF /*IF $product_display_sorting...*/ IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF DISPLAY /*LayoutTemplate*/%>
<%NEXTROW IF $LayoutTemplate.Numrows>0 THEN%>
<%ENDIF IF $Brand_numproducts AND $show_numproduct_chooser THEN%>
checked="checked"<%ENDIF%>/>12 checked="checked"<%ENDIF%>/>36 checked="checked"<%ENDIF%>/>72
<%ENDIF%> <%IF $Brand_numproducts AND ($product_display_sorting OR $LayoutTemplate.Numrows OR $show_numproduct_chooser) THEN%>
<%ENDIF /*IF $product_display_sorting OR....*/ ENDQUERY ENDIF /*IF $opt_layout...*/%>
<%/* ProductVariant grabs parameters by itself, so we don't send any */ QUERY ProductVariant(orderby=$Data.orderby,order=$Data.order) PAGE $Data.brand_pagenum PAGEROWS $Data.saved_pagerows DO%> <%DISPLAY INCLUDE 'rs/rs-product-small.htm' NEXTROW%>
<%IF $SHOW != 'puff' THEN INCLUDE 'rs/rs-pageselector-v2.htm' ENDIF ENDQUERY%>
<%ENDIF /*IF IF $Shop.opt_filter...*/ ENDIF /*IF $brand_id...*/%>