Hi community,
I'm working with prestashop 1.7.6 with classic theme.
I'm working in processChangeProductInCart() function of CartController.php, for my own functionality but the errors notifications of this controller not show in my store, for example this error of availability of product:
if ('update' !== $mode && $this->shouldAvailabilityErrorBeRaised($product, $qty_to_check)) {
$this->{$ErrorKey}[] = $this->trans(
'The item %product% in your cart is no longer available in this quantity. You cannot proceed with your order until the quantity is adjusted.',
array('%product%' => $product->name),
'Shop.Notifications.Error'
);
}
In debug mode of Firefox in JSON response I get it:
{"JSON"
:{"hasError":true,"errors":["The item Mug the best in your cart is no longer available in this quantity. You cannot proceed with your order until the quantity is adjusted."],"quantity":5000}
}
but not show error notification in store, how do I show this errors in my store? or its a bug?