New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification message doesn't appear with backorder in shopping cart #717
Comments
smoskaluk
changed the title
Notification message doesn't appear with backoreder in shopping cart
Notification message doesn't appear with backorder in shopping cart
Mar 22, 2018
Hi i found the Problem we have a around Plugin for: We must implement the following and write tests for it. if ($stockItem->getBackorders() == \Magento\CatalogInventory\Model\Stock::BACKORDERS_YES_NOTIFY) {
if (!$stockItem->getIsChildItem()) {
$result->setMessage(
__(
'We don\'t have as many "%1" as you requested, '
. 'but we\'ll back order the remaining %2.',
$stockItem->getProductName(),
$backOrderQty * 1
)
);
} else {
$result->setMessage(
__(
'We don\'t have "%1" in the requested quantity, '
. 'so we\'ll back order the remaining %2.',
$stockItem->getProductName(),
$backOrderQty * 1
)
);
}
} elseif ($stockItem->getShowDefaultNotificationMessage()) {
$result->setMessage(
__('We don\'t have as many "%1" as you requested.', $stockItem->getProductName())
);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: