<% /*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 $use_standard_template=1 IF $Session.product_small_template=='undefined' THEN $Session.product_small_template='' ENDIF IF $Data.product_small_template THEN $Session.product_small_template=$Data.product_small_template ENDIF IF ($Shop.product_small_template AND $Shop.product_small_template!='standard') OR ($product_small_template AND $product_small_template!='standard') OR ($Session.product_small_template!='standard' AND $Session.product_small_template) OR ($Data.Category_product_small_template!='standard' AND $Data.Category_product_small_template) THEN IF $Session.product_small_template THEN $Data.product_small_template=$Session.product_small_template CALL RUN_FILE('product-small-'+$Session.product_small_template+'.htm') $use_standard_template=0 ELSIF $Data.Category_product_small_template THEN $Data.product_small_template=$Data.Category_product_small_template CALL RUN_FILE('product-small-'+$Data.Category_product_small_template+'.htm') $use_standard_template=0 ELSIF $Data.product_small_template THEN $Data.product_small_template=$Data.product_small_template CALL RUN_FILE('product-small-'+$Data.product_small_template+'.htm') $use_standard_template=0 ELSIF $Shop.product_small_template THEN $Data.product_small_template=$Shop.product_small_template CALL RUN_FILE('product-small-'+$Shop.product_small_template+'.htm') $use_standard_template=0 ENDIF POP $Data.product_small_template ENDIF IF $use_standard_template THEN IF $Data.product_small_template == 'standard' THEN $Session.product_small_template='' $Data.product_small_template='' ENDIF%>
<%IF $CAMPAIGN AND $opt_campaign THEN%>

<%IF NOT $CampaignDescr THEN PRINT('[%CAMPAIGN Kampanj%]') ELSE%>$CampaignDescr<%ENDIF%>

<%ELSIF $NEW OR $new THEN%>

$DATE_created
[%NEWS Nyheter%]

<%ELSIF $promote THEN%>

[%PROMOTE_NAME Utvalda varor%]

<%ELSE%>

$*GroupName

<%ENDIF%>
<% IF $num_variants_filter!=$num_variants AND $VariantPicture_id THEN $alt=$*Name PICTURE($xTransform,$VariantPicture_id) ELSE QUERY MyProductPicture(product_id=$product_id, xView=$xView,xTransform=$xTransform) DO IF NOT $Numrows THEN $alt=$*Name PICTURE($xTransform,0) ENDIF DISPLAY $alt=$*Name PICTURE($xTransform) NEXTROW ENDQUERY ENDIF%>
$Name
<%IF $short_descr THEN%>$[L55]short_descr<%ELSE%><%PRINT FORMAT('L55',FORMAT('noform', $Descr))%><%ENDIF%>
<%IF ($Customer.login AND $opt_price_for_reg_user) OR (NOT $opt_price_for_reg_user) THEN%>
<%IF $type != 'GIFTCERTANYPRICE' THEN%> <%IF $Price != 0 THEN%> <%IF $DIFF >0 THEN PRINT '[%FROM från%] ' ENDIF%>$$Price<%IF $unit THEN%>/$unit<%ENDIF%> <%ELSE%> [%NO_PRICE Ej prissatt%] <%ENDIF%> <%ENDIF%>
<%IF $CAMPAIGN AND $opt_campaign THEN%>$$Price_List<%IF $unit THEN%>/$unit<%ENDIF%><%ENDIF%>
<%ENDIF%>
<%IF NOT $hide_buy_button AND $one_variant_id AND ( ( $Shop.opt_variant_size AND NOT $sizes ) OR NOT $Shop.opt_variant_size ) AND $type != 'GIFTCERTANYPRICE' THEN IF $LOCKED THEN%> [%OUT_OF_STOCK Slut i lager%] <%ELSE%>
<%ENDIF%> <%ENDIF POP $hide_buy_button%>
[%MORE_INFO_SHORT Mer info%]
<%IF $Shop.payment_per_month_productsmall THEN%> <% /* partial payment */ POP $kp POP $this_kp /* Find and calculate lowest kreditor price */ IF $Price_Tax>$Shop.payment_per_month_min_sum THEN $temp_PMA_Price_Ex=$Price_Ex $temp_PMA_Tax=$Tax QUERY Payment() DO DISPLAY IF $charge_method=='KREDITOR_NG' OR $charge_method=='KLARNACHECKOUT' OR $charge_method=='SVEAWEBPAY' OR $charge_method=='SVEAWEBPAY2' THEN $this_kp=CALL PAYMENT_MONTHLY_ANNUITY('Payment',$temp_PMA_Price_Ex,$temp_PMA_Tax) IF $this_kp AND (NOT $kp OR $this_kp < $kp) THEN $kp = $this_kp ENDIF ENDIF NEXTROW ENDQUERY POP $temp_PMA_Price_Ex POP $temp_PMA_Tax ENDIF /* Display price data */ %>
<%IF $kp THEN%>[%FROM från%] $$kp / mnd.<%ENDIF%>
<%/* END kreditor partial payment */ ENDIF%>
<%ENDIF POP $use_standard_template%>