Skip to content

Commit

Permalink
Link to NotifyStock feed is shown only if enabled (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Sep 18, 2023
1 parent e9a3626 commit 3a7de34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ protected function _prepareColumns()
]
);

if (Mage::helper('catalog')->isModuleEnabled('Mage_Rss')) {
if (Mage::helper('catalog')->isModuleEnabled('Mage_Rss') &&
Mage::helper('rss')->isRssEnabled() &&
Mage::getStoreConfigFlag('rss/catalog/notifystock')
) {
$this->addRssList('rss/catalog/notifystock', Mage::helper('catalog')->__('Notify Low Stock RSS'));
}

Expand Down

0 comments on commit 3a7de34

Please sign in to comment.