#REM Some or all of the LOCAL variables are used in the FreeDeliveryInfo part. #ENDREM #LOCAL("LineItemShipping", #LineItemContainer.Shipping) #IF(#DEFINED(#LineItemShipping) AND #LineItemShipping.ShippingMethod.Class.Alias EQ "ShippingMethodColissimo") #LOCAL("ExemptionLimit", #LineItemShipping.ExemptionLimitForFreeDelivery) #IF(#ExemptionLimit > 0) #REM The merchant may enter a negative number, which the system will accept. #ENDREM #LOCAL("MissingValue", #LineItemContainer.Shipping.MissingValueForFreeDelivery) #IF(#MissingValue > 0) #REM A negative value is an error code. #ENDREM #LOCAL("CurrencyID", #LineItemContainer.CurrencyID)