%$saved_category_id = $category_id POP $category_id IF $product_id OR $Request.extra_path THEN QUERY Product(product_id=$product_id, url_query=$Request.extra_path) DO DISPLAY $Data.found_a_product = $Product.Numrows $Data.seo_url = $seo_url $Data.product_id = $Product.product_id IF $seo_title THEN $TITLE=$seo_title ELSIF $Shop.seo_product_smarttitle_enable THEN $TITLE = CALL EXEC($Shop.seo_product_smarttitle) ELSE $TITLE=$Product.Name ENDIF IF $seo_descr THEN $META_DESCRIPTION=$seo_descr ELSIF $Shop.seo_product_smartdescr_enable THEN $META_DESCRIPTION = CALL EXEC( $Shop.seo_product_smartdescr ) ENDIF IF $seo_keywords THEN $META_KEYWORDS=$seo_keywords ENDIF /* Set canonical URL to make google happy */ %> <% NEXTROW ENDQUERY ENDIF IF NOT $Data.found_a_product THEN%> <%ENDIF%> <%INCLUDE 'INC_head.htm'%>
<%INCLUDE 'INC_above.html'%> <%IF $product_id THEN $xView='DEFAULT' $xTransform='M_PRODUCT' $NO_TEXT=1 $LINKS=1 IF $Data.found_a_product AND $product_id THEN QUERY Product(product_id=$product_id) DO DISPLAY $category_id = $saved_category_id INCLUDE 'mobile-category-trace.htm' INCLUDE 'mobile-product-detail.htm'%> <%NEXTROW ENDQUERY ENDIF%> <%IF $Shop.opt_variant_grouping AND $use_grouping THEN%> <%ENDIF%> <%ENDIF /* product_id */%> <%INCLUDE 'INC_below.html'%>