We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7e174 commit ffd9ac1Copy full SHA for ffd9ac1
Observer/Product/IsSaleable.php
@@ -30,8 +30,8 @@ public function execute(Observer $observer): void
30
$saleable->setData(
31
'is_salable',
32
$saleable->getData('is_salable') &&
33
- $product->getData('can_show_price') &&
34
- $product->getData('is_purchasable') &&
+ ($product->getData('can_show_price') ?? true) &&
+ ($product->getData('is_purchasable') ?? true) &&
35
$this->isSaleable->isSaleable(
36
$this->currentCustomerGroupId->get(),
37
$product->getStore()->getWebsiteId()
0 commit comments