Feature: #895 - Shippable, cancelable and returnable ordered products
See Issue 895
Description
An ordered product (tx_) stores whether it
is shippable, cancelable and returnable in the new fields shippable,
cancelable and returnable. The values are set once when the order is
persisted and are not changed afterwards, even if the product changes later.
The model \Extcode\ provides them with
is, is and is.
Defaults:
shippable:trueunless the product in the cart is a virtual product (Product).Interface:: is Virtual Product () cancelableandreturnable:true.
The new event \Extcode\
is dispatched once per ordered product (or backend variant) before it is
stored. Product extensions can change the values with set,
set and set, e.g. for personalized products
that cannot be returned.
The order details in the backend module mark ordered products that are not shippable, not cancelable or not returnable.
The fields are the base for partial deliveries, cancellations and returns per ordered product. Rules that depend on the time (e.g. a ticket can be canceled until 14 days before the event) do not belong into these fields.
Impact
The database schema has to be updated. Products of existing orders are shippable, cancelable and returnable (default of the database fields).