Unverified Commit aaa20576 authored by Mathieu Ferment's avatar Mathieu Ferment Committed by GitHub
Browse files

Merge pull request #28112 from Amit-Kumar-Tiwari-Webkul/1.7.8.x

Out of stock label displayed even stock management disabled
parents 45fe33fd 512e438b
......@@ -613,6 +613,10 @@ class ProductLazyArray extends AbstractLazyArray
return false;
if (!$this->configuration->getBoolean('PS_STOCK_MANAGEMENT')) {
return false;
// Displayed only if the order of out of stock product is denied.
if ($product['out_of_stock'] == OutOfStockType::OUT_OF_STOCK_AVAILABLE
|| (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment