If the order is not delivered by the entered estimated delivery date, the system will automatically send the customer an e-mail and SMS message regarding the delay in delivery.



1. Supported online store types and metadata


Online store type:

    - WooCommerce


Metadata:

   - Estimated delivery date




2. Metadata in WooCommerce JSON


Metadata should be added to the JSON request in the meta_data segment.




3. Enabling


Functionality is enabled in ''Additional settings > Online stores'.

Select the online store and in the Settings tab, tick MetaTag mapping.




In the Estimated delivery date enter the key from meta_data.

In this case, that is expected_shipping_date.





4. How to access newly added data?


The estimated delivery date is visible in Order Management in the sales order.

Warning:

If the JSON request did not contain that data, the Estimated delivery date field will not be visible.






5. Launching notifications


Definitions for sending notifications which will be activated based on the estimated delivery date can now be added. 



In 'Additional settings > Notifications > Definitions' add a new function.


For the trigger select Estimated delivery date reached

Select the delay status and set e-mail and SMS definitions.


The conditions for activating notifications are the following:


    a. Sales order must have the Prodajna narudžba ima status koji smo odredili

    b. Sales order has an estimated delivery date set

    c. The estimated delivery date of the sales order with the added delay is reached