我有产品有像%10的百分比折扣。当我应用购物车总的促销,如免费送货,促销考虑购物车总价没有百分比折扣。但是用户看到的是打折购物车总数,所以问题就出现了。
Product price = 100 USD
discount %10
promotion is if cart total >= 95 USD free delivery
we want add delivery cost because after discount total 90 USD
condition apply free cost delivery because takes cart total as 100 USD
我使用的是Fluent NHibernate和NHibernate.Core 3 beta 1。我有两个类:
public class Promotion
{
public Promotion()
{
PromotionEntrants = new List<PromotionEntrant>();
}
public virtual int Id { get; set; }
[Required]
public virtual string Name { get; set; }
...