The function _getCart() is called in order to prepare and return a valid Cart object.
In case of error in this function (Invalid SKU, Error with available quantities, ...), the webservice call to validateOrders should be triggered with the associated error detail.
Actual behaviour
validateOrders is not triggered, therefore no details are sent to ShoppingFeed concerning the state of this order.
Steps to reproduce the behaviour
Import an order from getOrders
Trigger an error in _getCart() (return false;)
Check the webservice logs, the order will not trigger a validateOrders call
Expected behaviour
The function
_getCart()
is called in order to prepare and return a validCart
object. In case of error in this function (Invalid SKU, Error with available quantities, ...), the webservice call tovalidateOrders
should be triggered with the associated error detail.Actual behaviour
validateOrders
is not triggered, therefore no details are sent to ShoppingFeed concerning the state of this order.Steps to reproduce the behaviour
getOrders
_getCart()
(return false;
)validateOrders
call