NC365 Price Calculation Events (11260724)

Created by Tys van den Heuvel, Modified on Tue, 6 Sep, 2022 at 5:02 PM by Tys van den Heuvel

IntegrationEvent: OnBeforeGetPrice

OnBeforeGetPrice(var Price: Decimal; ItemNo: Code[20]; VariantCode: Code[10]; WebsiteID: Integer; CustomerNo: Code[20]; Quantity: Decimal; var Handled: Boolean)

This event is fired before calculating a price that is sent to Magento.If you want to take over price calculation you should use this event in combination with the handled parameter.

Parameters:

  • Price
  • ItemNo
  • VariantCode
  • WebsiteID
  • CustomerNo
  • Quantity
  • Handled


IntegrationEvent: OnAfterGetPrice

OnAfterGetPrice(var Price: Decimal; ItemNo: Code[20]; VariantCode: Code[10]; WebsiteID: Integer; CustomerNo: Code[20]; Quantity: Decimal)

This event is fired after calculating a price that will be sent to Magento.You can use this one to manipulate price calculations as well.

Parameters:

  • Price
  • ItemNo
  • VariantCode
  • WebsiteID
  • CustomerNo
  • Quantity


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article