You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Currently there is no way to add automatic entries to the shopping cart, such as shipping cost. Since this kind of stuff is tied to the business logic, we should support it via workflows so the custom logic can be coded in admin using Jint/Javascript.
Describe the solution you'd like
Add a new method for when the shopping cart is loaded (e.g. Task LoadedAsync(string shoppingCartId, ShoppingCart shoppingCart)). This should be invoked in IShoppingCartPersistence.RetrieveAsync(), so it behaves the same way every time the shopping cart is loaded.
Create workflow triggers for each method of IShoppingCartEvents
Create a WorkflowShoppingCartEvents : IShoppingCartEvents service that triggers each workflow.
It should not inherit from ShoppingCartEventsBase so we won't forget to add workflow triggers whenever a new method is added to IShoppingCartEvents.
If TableField is implemented in Lombiq.Datatables, then we can suggest using it via the Retrieve Content task to store additional tabular data that may be needed to calculate shipping costs.
Describe alternatives you've considered
We could create a specific implementation for specific features like adding shipping cost, but it would be too inflexible.
Is your feature request related to a problem? Please describe
Currently there is no way to add automatic entries to the shopping cart, such as shipping cost. Since this kind of stuff is tied to the business logic, we should support it via workflows so the custom logic can be coded in admin using Jint/Javascript.
Describe the solution you'd like
Task LoadedAsync(string shoppingCartId, ShoppingCart shoppingCart)
). This should be invoked inIShoppingCartPersistence.RetrieveAsync()
, so it behaves the same way every time the shopping cart is loaded.IShoppingCartEvents
WorkflowShoppingCartEvents : IShoppingCartEvents
service that triggers each workflow.ShoppingCartEventsBase
so we won't forget to add workflow triggers whenever a new method is added toIShoppingCartEvents
.TableField
is implemented in Lombiq.Datatables, then we can suggest using it via the Retrieve Content task to store additional tabular data that may be needed to calculate shipping costs.Describe alternatives you've considered
We could create a specific implementation for specific features like adding shipping cost, but it would be too inflexible.
Jira issue
The text was updated successfully, but these errors were encountered: