<% IF ($Customer.login AND $opt_price_for_reg_user) OR (NOT $opt_price_for_reg_user) THEN IF $product_id THEN QUERY Product(product_id=$product_id) DO DISPLAY IF $variant_id THEN QUERY Variant(variant_id=$variant_id) DO DISPLAY IF $opt_price_qty THEN FETCH PRICE_QUANTITY IF $Numrows>0 THEN%> <%ENDIF DISPLAY IF $Numrows==1 AND $QTY<=1 THEN $hide_pq=1 ENDIF%> <%IF $PRICE_EA > $Price THEN $ADD=$Rownum%> <%ELSIF NOT $PRICE_EA THEN%> <%ELSE%> <%ENDIF%> <%NEXTROW IF $Numrows>0 THEN%>
[%QTYPRICE_ST Pris/st vid köp av%]
$QTY;+$$PRICE_EA $$Price$$PRICE_EA
<%ENDIF ENDFETCH ELSE%> <%ENDIF NEXTROW ENDQUERY ENDIF NEXTROW ENDQUERY ENDIF ENDIF%>