<%IF $Status == #CART_EMPTY THEN%> 0 <%ELSIF $Status == #CART_FULL THEN%> <%IF $Rows THEN%> $Rows <%ELSE%> 0 <%ENDIF%> <%ENDIF%>
[%TROLLEY kundvagn%]
[%TROLLEY kundvagn%]
<%FETCH CART DISPLAY%>
<%$xTransform='RS_CARTTHPOP' $xView='DEFAULT' IF $variant_id THEN QUERY Variant(variant_id=$variant_id, VARIANT_IGNORE_CART=1) DO DISPLAY $cart_mini_top_product_id=$product_id $cart_mini_top_seo_url=$seo_url%> <%IF $Variant.picture_id THEN PICTURE($xTransform) ELSE%> <%QUERY MyProductPicture(product_id=$product_id, xView=$xView, xTransform=$xTransform) DO DISPLAY IF $MyProductPicture.alt THEN $Data.alt=$*alt ELSE $Data.alt=$*Name ENDIF PICTURE($xTransform) NEXTROW ENDQUERY%> <%ENDIF%> <%NEXTROW ENDQUERY ENDIF POP $xTransform%>
$CART.Qty $CART.unit
$$CART.Price
<%NEXTROW ENDFETCH%> <%IF $Cart.Status == #CART_EMPTY THEN%>
[%CART_EMPTY Kundvagnen är tom%].
<%ELSIF $Cart.Status == #CART_FULL THEN FETCH CART DISPLAY NEXTROW ENDFETCH%> <%IF ($Customer.login AND $opt_price_for_reg_user) OR (NOT $opt_price_for_reg_user) THEN%>
[%TOTAL_AMOUNT Totalsumma%]:
$$Cart.Price
<%ENDIF%> <%ENDIF%>
[%CHECK_OUT Gå till kassan%]