Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I just upgraded TC from 2.2.3 to 2.3.5. Earlier I did this:
protected override decimal CalculatePrice(ShippingMethod shippingMethod, Currency currency, Order order) { if (order.SubtotalPrice.WithVat >= 175) { return 0M; } return base.CalculatePrice(shippingMethod, currency, order); }
But now the signature has changed, so I cant access the order paramter?
protected override Price CalculatePrice(ShippingMethod shippingMethod, Currency currency, long countryId, long? countryRegionId, VatRate vatRate)
Is this not possible anymore or am I missing something?
The shipping calculator still have this method in 2.3.5 you just need to inherit from ShippingCalculator and not just implement the interface.
protected virtual Price CalculatePrice( ShippingMethod shippingMethod, Currency currency, Order order )
Kind regards
ANders
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Access order in shipping calculator
I just upgraded TC from 2.2.3 to 2.3.5. Earlier I did this:
But now the signature has changed, so I cant access the order paramter?
Is this not possible anymore or am I missing something?
The shipping calculator still have this method in 2.3.5 you just need to inherit from ShippingCalculator and not just implement the interface.
Kind regards
ANders
is working on a reply...