Contents
How to override base request in commerce runtime?
Use these methods to execute the base request and handler in the overridden extension code. The CRT framework also supports executing the same handler multiple times based on the order listed in the CommerceRuntime.Ext.config file. You can override the request and call the base request using the ExecuteNextAsync method.
How to create a WooCommerce shipping method API?
This article will take you through the steps to creating a new shipping method and interacting with the API. Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance.
How to send extension properties to Commerce headquarters?
You can also send extension properties from POS to CRT and store them in your custom table. Alternatively, you can do some custom logic based on those properties, or send it to Commerce headquarters. All CRT entities, such as products, customers, transactions, and parameters, support extension properties.
How is commerce runtime ( CRT ) framework extensibility?
The CRT framework also supports executing the same handler multiple times based on the order listed in the CommerceRuntime.Ext.config file. You can override the request and call the base request using the ExecuteNextAsync method. In the override, you can add custom logic, for example, to set extension properties.
How to override base handler in azure Commerce?
If you want to override the handler and call the base handler to execute the out-of-box logic and then modify the results of base handler with custom logic, then use the GetNextAsyncRequestHandler. For example, you can search for a Product using the out-of-box Azure Search handler and add additional logic to modify the result based on inventory.
Which is an example of an override in commerce?
In the override, you can add custom logic, for example, to set extension properties. For example, override the Customer save request, call the base customer request first using ExecuteNextAsync and then add additional logic to save the customer extension properties.