<% /*check if the buy_button can be displayed*/ IF $opt_productinfofields THEN QUERY ProductInputField_inproduct(product_id=$product_id) DO DISPLAY IF $if_required THEN $hide_buy_button=1 ENDIF NEXTROW ENDQUERY ENDIF IF $Session.product_small_template=='undefined' THEN $Session.product_small_template='vertical-small' ENDIF IF $Data.Category_product_small_template=='standard' THEN $Data.Category_product_small_template='vertical-small' ENDIF IF $product_small_template=='standard' OR $Data.product_small_template=='standard' THEN $product_small_template='vertical-small' ENDIF IF $Session.product_small_template=='standard' THEN $Session.product_small_template='vertical-small' ENDIF IF $Data.product_small_template THEN $Data.product_small_template=$Data.product_small_template CALL RUN_FILE('rs/rs-product-small-'+$Data.product_small_template+'.htm') ELSIF $Session.product_small_template THEN $Data.product_small_template=$Session.product_small_template CALL RUN_FILE('rs/rs-product-small-'+$Session.product_small_template+'.htm') ELSIF $Data.Category_product_small_template THEN $Data.product_small_template=$Data.Category_product_small_template CALL RUN_FILE('rs/rs-product-small-'+$Data.Category_product_small_template+'.htm') ELSIF $Shop.product_small_template AND $Shop.product_small_template!='standard' THEN $Data.product_small_template=$Shop.product_small_template CALL RUN_FILE('rs/rs-product-small-'+$Shop.product_small_template+'.htm') ELSE $Data.product_small_template='vertical-small' CALL RUN_FILE('rs/rs-product-small-'+$Data.product_small_template+'.htm') ENDIF