Developer forum

Forum » Feature requests » Disable order calculations

Disable order calculations

Nuno Aguiar
Reply

Hi,

 

Considering some integration scenarios we think it would make sense if we could disable an order's calculations:

  • Discounts
  • Taxes
  • Shipping
  • Products?

 

For example if we set order.DisableDiscountProviders = true , Dynamicweb would skip the Discount providers

In Integration projects this means the discounts we get back from the ERP don't need to go into a session varible only to be added through a "dummy" Discount provider.

 

The same logic applies to Tax and Shipping providers

  • order.DisableTaxProviders
  • order.DisableShippingProviders

 

For products we know we can set the OrderlineType to be Fixed. I am just adding it as an option so there's a consistent and clear implementation FMHO

  • order.DisableProductCalculations

 

Best Regards,

Nuno Aguiar


Replies

 
Nuno Aguiar
Reply

Hi,

 

Any news on this? I think it makes sense, but would like to know if anybody else thinks so as well.

 

Would be nice to have it, even if it's for 8.9.1 or DW 9

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

We have not added anything on the backlog regarding this. The scenario you look at is disable each of the calculations seperately?

On the order you can set AllowOverridePrices=True and DW will stop calculate the order, or IsPriceCalculatedByProvider=True which also has the affect that the order price and fees will not be re-calculated.

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yes, disabling calculations seperately make sense for us, because it depends on the project and which system is responsible for what (Taxes, Discounts, Shipping).

 

The AllowOverridePrices=True and IsPriceCalculatedByProvider=True only works when everything is calculated in the ERP

 

Thank you,

Nuno Aguiar