templates/Doc/orders-workflow.html.twig line 1

Open in your IDE?
  1. {% extends 'Layouts/Doc/default.html.twig' %}
  2. {% block title %}
  3.     {{ 'app.documentation.menu.architecture.drivers'|trans }}
  4. {% endblock %}
  5. {% block headerPageTitle %}
  6.     {{ 'app.documentation.menu.workflow.order_workflow'|trans|upper }}
  7. {% endblock %}
  8. {% block body %}
  9.     <div class="card mb-12">
  10.         <div class="card-body flex-column p-5">
  11.             <div class="d-flex align-items-center h-lg-100px p-5 p-lg-15">
  12.                 <div class="row">
  13.                     <div class="col-md-12 pt-5 scroll-y">
  14.                         <div class="position-relative w-100 text-gray-800">
  15.                             <p><strong>POPINA ORDER</strong> allows customers to place orders online and pick them up from a physical shop or have them delivered. The workflow of an order in a click and collect system typically involves several steps.</p>
  16.                         </div>
  17.                     </div>
  18.                 </div>
  19.             </div>
  20.             <div class="d-flex flex-column">
  21.                 <div class="row table-responsive">
  22.                     <div class="col-md-12 offset-2">
  23.                         {% include 'Doc/Diagram/orders-workflow.html.twig' %}
  24.                     </div>
  25.                 </div>
  26.             </div>
  27.             <div class="d-flex align-items-center p-lg-15">
  28.                 <div class="row">
  29.                     <div class="col-md-12 pt-5">
  30.                         <ul>
  31.                             <p>Once the customer places an order:</p>
  32.                             <li>
  33.                                 <strong><a>New order</a></strong>
  34.                                 <p>
  35.                                     <ul>
  36.                                         <li>After the customer completes the checkout process and confirms the order, the system generates a unique order number and creates it in the system.</li>
  37.                                         <li>The order can be associated with the customer's account or remain anonymous. It includes details such as the items, quantities, total cost, and pickup location.</li>
  38.                                         <li>At this stage, the system may perform validation checks to ensure the order is valid and meets any specific requirements.</li>
  39.                                     </ul>
  40.                                 </p>
  41.                             </li>
  42.                             <li>
  43.                                 <strong><a>Pending</a></strong>
  44.                                 <p>
  45.                                     <ul>
  46.                                         <li>Once the order is created and paid for, it enters the <strong>Pending</strong> state.</li>
  47.                                         <li>If the shop has a <strong>webhook</strong> enabled and valid, the <strong>POS</strong> will receive a <strong>notification</strong> depending on the configured <strong>events</strong>.</li>
  48.                                         <li>Both the customer and shop staff members are notified via <strong>Email</strong> about the new order and start preparing it for pickup.</li>
  49.                                         <li>If the shop has a <strong>printer</strong> configured, the system sends a request to the <strong>Starcloud printer</strong> to print the receipt.</li>
  50.                                     </ul>
  51.                                 </p>
  52.                             </li>
  53.                             <li>
  54.                                 <strong><a>Accepted | Rejected</a></strong>
  55.                                 {% include 'Doc/States/Status/rejected.html.twig' %}
  56.                             </li>
  57.                             <li>
  58.                                 <strong><a>Delayed</a></strong>
  59.                                 <p>
  60.                                     <ul>
  61.                                         <li>There may be instances where the order <strong>cannot be fulfilled in the requested time</strong> due to multiple reasons, such as inventory issues or too many orders.</li>
  62.                                         <li>In such cases, the shop can delay the order witch will be marked as <strong>Delayed</strong>. The shop must precise the exact minutes of the delay.</li>
  63.                                         <li>The order can be <strong>delayed multiple times</strong> If further delays occur, and each time the order will be updated with the newest delivery time.</li>
  64.                                         <li>On each delay, the customer will receive an <strong>SMS</strong> message so that he can be informed instantly.</li>
  65.                                     </ul>
  66.                                 </p>
  67.                             </li>
  68.                             <li>
  69.                                 <strong><a>Ready</a></strong>
  70.                                 <p>
  71.                                     <ul>
  72.                                         <li>When the accepted order's preparation is completed, the shop may mark the order as <strong>Ready</strong>, so that the customer may collect it.</li>
  73.                                         <li>Once again, the customer will receive an <strong>SMS</strong> message so that he can be informed instantly.</li>
  74.                                     </ul>
  75.                                 </p>
  76.                             </li>
  77.                             <li>
  78.                                 <strong><a>Cancelled</a></strong>
  79.                                 {% include 'Doc/States/Status/cancelled.html.twig' %}
  80.                             </li>
  81.                             <li>
  82.                                 <strong><a>Refunded</a></strong>
  83.                                 <p>
  84.                                     <ul>
  85.                                         <li>Orders are refunded if they have been <strong>Cancelled</strong> or <strong>Rejected</strong>.</li>
  86.                                     </ul>
  87.                                 </p>
  88.                             </li>
  89.                             <li>
  90.                                 <strong><a>Expired</a></strong>
  91.                                 {% include 'Doc/States/Status/expired.html.twig' %}
  92.                             </li>
  93.                             <li>
  94.                                 <strong><a>Delivered</a></strong>
  95.                                 <p>
  96.                                     <ul>
  97.                                         <li>Once the customer <strong>collects</strong> his order, the shop may mark the order as <strong>Delivered</strong>.</li>
  98.                                         <li>The customer receives the ordered items, and the transaction is considered <strong>successful</strong>.</li>
  99.                                     </ul>
  100.                                 </p>
  101.                             </li>
  102.                         </ul>
  103.                     </div>
  104.                 </div>
  105.             </div>
  106.         </div>
  107.     </div>
  108. {% endblock %}