Method | Description | |
---|---|---|
AdjustShippingRate ( decimal shippingRate, IList |
Adjust shipping rate (free shipping, additional charges, discounts)
|
|
ConvertAmountToRewardPoints ( decimal amount ) : int |
Converts an amount in primary store currency to reward points
|
|
ConvertRewardPointsToAmount ( int rewardPoints ) : decimal |
Converts reward points to amount primary store currency
|
|
GetOrderSubtotalDiscount ( |
Gets an order discount (applied to order subtotal)
|
|
GetOrderTotalDiscount ( |
Gets an order discount (applied to order total)
|
|
GetShippingDiscount ( |
Gets a shipping discount
|
|
GetShoppingCartAdditionalShippingCharge ( IList |
Gets shopping cart additional shipping charge
|
|
GetShoppingCartShippingTotal ( IList |
Gets shopping cart shipping total
|
|
GetShoppingCartShippingTotal ( IList |
Gets shopping cart shipping total
|
|
GetShoppingCartShippingTotal ( IList |
Gets shopping cart shipping total
|
|
GetShoppingCartShippingTotal ( IList |
Gets shopping cart shipping total
|
|
GetShoppingCartSubTotal ( IList |
Gets shopping cart subtotal
|
|
GetShoppingCartSubTotal ( IList |
Gets shopping cart subtotal
|
|
GetShoppingCartSubTotal ( IList |
Gets shopping cart subtotal
|
|
GetShoppingCartTotal ( IList |
Gets shopping cart total
|
|
GetShoppingCartTotal ( IList |
Gets shopping cart total
|
|
GetTaxTotal ( IList |
Gets tax
|
|
GetTaxTotal ( IList |
Gets tax
|
|
IsFreeShipping ( IList |
Gets a value indicating whether shipping is free
|
|
OrderTotalCalculationService ( IWorkContext workContext, IPriceCalculationService priceCalculationService, ITaxService taxService, IShippingService shippingService, IPaymentService paymentService, ICheckoutAttributeParser checkoutAttributeParser, IDiscountService discountService, IGiftCardService giftCardService, IGenericAttributeService genericAttributeService, Nop.Core.Domain.Tax.TaxSettings taxSettings, Nop.Core.Domain.Customers.RewardPointsSettings rewardPointsSettings, Nop.Core.Domain.Shipping.ShippingSettings shippingSettings, Nop.Core.Domain.Orders.ShoppingCartSettings shoppingCartSettings, Nop.Core.Domain.Catalog.CatalogSettings catalogSettings ) : System |
Ctor
|
public AdjustShippingRate ( decimal shippingRate, IList |
||
shippingRate | decimal | Shipping rate to adjust |
cart | IList |
Cart |
appliedDiscount | Applied discount | |
return | decimal |
public ConvertAmountToRewardPoints ( decimal amount ) : int | ||
amount | decimal | Amount |
return | int |
public ConvertRewardPointsToAmount ( int rewardPoints ) : decimal | ||
rewardPoints | int | Reward points |
return | decimal |
public GetOrderSubtotalDiscount ( |
||
customer | Customer | |
orderSubTotal | decimal | Order subtotal |
appliedDiscount | Applied discount | |
return | decimal |
public GetOrderTotalDiscount ( |
||
customer | Customer | |
orderTotal | decimal | Order total |
appliedDiscount | Applied discount | |
return | decimal |
public GetShippingDiscount ( |
||
customer | Customer | |
shippingTotal | decimal | Shipping total |
appliedDiscount | Applied discount | |
return | decimal |
public GetShoppingCartAdditionalShippingCharge ( IList |
||
cart | IList |
Cart |
return | decimal |
public GetShoppingCartShippingTotal ( IList |
||
cart | IList |
Cart |
return | decimal? |
public GetShoppingCartShippingTotal ( IList |
||
cart | IList |
Cart |
includingTax | bool | A value indicating whether calculated price should include tax |
return | decimal? |
public GetShoppingCartShippingTotal ( IList |
||
cart | IList |
Cart |
includingTax | bool | A value indicating whether calculated price should include tax |
taxRate | decimal | Applied tax rate |
return | decimal? |
public GetShoppingCartShippingTotal ( IList |
||
cart | IList |
Cart |
includingTax | bool | A value indicating whether calculated price should include tax |
taxRate | decimal | Applied tax rate |
appliedDiscount | Applied discount | |
return | decimal? |
public GetShoppingCartSubTotal ( IList |
||
cart | IList |
Cart |
includingTax | bool | A value indicating whether calculated price should include tax |
discountAmount | decimal | Applied discount amount |
appliedDiscount | Applied discount | |
subTotalWithoutDiscount | decimal | Sub total (without discount) |
subTotalWithDiscount | decimal | Sub total (with discount) |
return | void |
public GetShoppingCartSubTotal ( IList |
||
cart | IList |
Cart |
includingTax | bool | A value indicating whether calculated price should include tax |
discountAmount | decimal | Applied discount amount |
appliedDiscount | Applied discount | |
subTotalWithoutDiscount | decimal | Sub total (without discount) |
subTotalWithDiscount | decimal | Sub total (with discount) |
taxRates | decimal>.SortedDictionary | Tax rates (of order sub total) |
return | void |
public GetShoppingCartSubTotal ( IList |
||
cart | IList |
Cart |
discountAmount | decimal | Applied discount amount |
appliedDiscount | Applied discount | |
subTotalWithoutDiscount | decimal | Sub total (without discount) |
subTotalWithDiscount | decimal | Sub total (with discount) |
return | void |
public GetShoppingCartTotal ( IList |
||
cart | IList |
Cart |
ignoreRewardPonts | bool | A value indicating whether we should ignore reward points (if enabled and a customer is going to use them) |
usePaymentMethodAdditionalFee | bool | A value indicating whether we should use payment method additional fee when calculating order total |
return | decimal? |
public GetShoppingCartTotal ( IList |
||
cart | IList |
Cart |
discountAmount | decimal | Applied discount amount |
appliedDiscount | Applied discount | |
appliedGiftCards | List |
Applied gift cards |
redeemedRewardPoints | int | Reward points to redeem |
redeemedRewardPointsAmount | decimal | Reward points amount in primary store currency to redeem |
ignoreRewardPonts | bool | A value indicating whether we should ignore reward points (if enabled and a customer is going to use them) |
usePaymentMethodAdditionalFee | bool | A value indicating whether we should use payment method additional fee when calculating order total |
return | decimal? |
public GetTaxTotal ( IList |
||
cart | IList |
Shopping cart |
taxRates | decimal>.SortedDictionary | Tax rates |
usePaymentMethodAdditionalFee | bool | A value indicating whether we should use payment method additional fee when calculating tax |
return | decimal |
public GetTaxTotal ( IList |
||
cart | IList |
Shopping cart |
usePaymentMethodAdditionalFee | bool | A value indicating whether we should use payment method additional fee when calculating tax |
return | decimal |
public IsFreeShipping ( IList |
||
cart | IList |
Cart |
return | bool |
public OrderTotalCalculationService ( IWorkContext workContext, IPriceCalculationService priceCalculationService, ITaxService taxService, IShippingService shippingService, IPaymentService paymentService, ICheckoutAttributeParser checkoutAttributeParser, IDiscountService discountService, IGiftCardService giftCardService, IGenericAttributeService genericAttributeService, Nop.Core.Domain.Tax.TaxSettings taxSettings, Nop.Core.Domain.Customers.RewardPointsSettings rewardPointsSettings, Nop.Core.Domain.Shipping.ShippingSettings shippingSettings, Nop.Core.Domain.Orders.ShoppingCartSettings shoppingCartSettings, Nop.Core.Domain.Catalog.CatalogSettings catalogSettings ) : System | ||
workContext | IWorkContext | Work context |
priceCalculationService | IPriceCalculationService | Price calculation service |
taxService | ITaxService | Tax service |
shippingService | IShippingService | Shipping service |
paymentService | IPaymentService | Payment service |
checkoutAttributeParser | ICheckoutAttributeParser | Checkout attribute parser |
discountService | IDiscountService | Discount service |
giftCardService | IGiftCardService | Gift card service |
genericAttributeService | IGenericAttributeService | Generic attribute service |
taxSettings | Nop.Core.Domain.Tax.TaxSettings | Tax settings |
rewardPointsSettings | Nop.Core.Domain.Customers.RewardPointsSettings | Reward points settings |
shippingSettings | Nop.Core.Domain.Shipping.ShippingSettings | Shipping settings |
shoppingCartSettings | Nop.Core.Domain.Orders.ShoppingCartSettings | Shopping cart settings |
catalogSettings | Nop.Core.Domain.Catalog.CatalogSettings | Catalog settings |
return | System |