{% extends 'Layouts/Doc/default.html.twig' %} {% block title %} {{ 'app.documentation.menu.architecture.drivers'|trans }} {% endblock %} {% block headerPageTitle %} {{ 'app.documentation.menu.workflow.orders'|trans|upper }} {% endblock %} {% block body %}

The Orders status is integrated to be able to know the fate of orders at any time, these statuses act as indicators of temporal progress until delivery or cancellation of the order for whatever reason:

{% include 'Doc/Diagram/payment.html.twig' %}
{% include 'Doc/States/states_constants_title.html.twig' %}
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.new} %}
    • The new status indicates that an order has been newly placed or created (duplication includes). It represents the initial stage of the process, where the order details have been received, but no further processing has taken place yet.
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.in_progress} %}
    • After the creation of an order, if an action affecting the order's status excluding the statuses {{ checkoutConstants.cancelled }}, {{ checkoutConstants.failed }}, {{ checkoutConstants.delivered }} and {{ checkoutConstants.refunded }} the order status becomes {{ orderConstants.in_progress }}.
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.rejected} %} {% include 'Doc/States/Status/rejected.html.twig' %}
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.cancelled} %} {% include 'Doc/States/Status/cancelled.html.twig' %}
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.failed} %}
    • When a payment transaction fails... read more.
    • The second reason is that the order has expired.
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.fulfilled} %}
    • If the order is delivered, the status becomes {{ orderConstants.fulfilled }}.
  • {% include 'Doc/States/states_constants.html.twig' with {'state': orderConstants.expired} %} {% include 'Doc/States/Status/expired.html.twig' %}
{% endblock %}