CyberStore Documentation
CartMeetsMinimumOrderValue Method


Dovetail.Ecommerce.Controls Namespace > ShoppingCartDisplayControl Class : CartMeetsMinimumOrderValue Method
The shopping cart sub total.
(This method is obsolete) cart meets minimum order value.
Syntax
'Declaration
 
<ObsoleteAttribute("Use Dovetail.Ecommmerce.BusinessLogic.ShoppingCart.PassMinimumOrderValueTest instead.")>
Public Function CartMeetsMinimumOrderValue( _
   ByVal cartSubTotal As Decimal _
) As Boolean
'Usage
 
Dim instance As ShoppingCartDisplayControl
Dim cartSubTotal As Decimal
Dim value As Boolean
 
value = instance.CartMeetsMinimumOrderValue(cartSubTotal)
[Obsolete("Use Dovetail.Ecommmerce.BusinessLogic.ShoppingCart.PassMinimumOrderValueTest instead.")]
public bool CartMeetsMinimumOrderValue( 
   decimal cartSubTotal
)

Parameters

cartSubTotal
The shopping cart sub total.

Return Value

true if it succeeds, false if it fails.
Remarks
Checks to determine if the cart subtotal is greater than the Order Minimum Value when set. The method returns true when the Order Minimum Value is met, false when it does not. When the check fails, the Minimum Order Value Message is inserted into the Session's cart errors string to be displayed. The message is parsed to include substitution of the following replacement tags: [ValueToMeetMinimum] - the MinimumOrderValue less the CartSubTotal [OrderMinimumValue] - the MinimumOrderValue.
See Also

Reference

ShoppingCartDisplayControl Class
ShoppingCartDisplayControl Members