Feature: #836 - Register own payment and shipping status
See Issue 836
Description
The payment and shipping status of the orders are no longer fixed strings in
the TCA and the backend controller. They are registered in
Configuration/ with a label and their order
(before and after). Other extensions add their own status or change
the ones of EXT:cart in their own Configuration/.
The registered status are used for the filter of the order list, the labels
in the order list, the selects in the order details of the backend module,
the order details in the frontend and the items of the status fields in the
TCA. The new ViewHelper cart: renders the label of a
status. The identifiers of the status of EXT:cart are available as constants
of \Extcode\ and
\Extcode\.
Impact
The status fields of tx_ and
tx_ get their items from the
items \Extcode\, the
items in the TCA are empty. Status added to these items, e.g. by a
TCA override, still work but are deprecated, see
Deprecation: #836 - Payment and shipping status in the TCA items.
The templates use cart: instead of the translation keys
tx_ and
tx_. These keys still
exist, so overridden templates keep working for the status of EXT:cart.
The order details in the backend keep a status of an order which is not registered as option of the select, so saving the form does not change it.
The constructors of \Extcode\ and
\Extcode\ set the initial status
open. The default status of
\Extcode\ is an empty string now.