Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added additional check for ConfigurableSwatches status
- Loading branch information
1 parent
281be49
commit d890121
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/code/community/TM/CatalogConfigurableSwatches/Helper/Data.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
class TM_CatalogConfigurableSwatches_Helper_Data extends Mage_Core_Helper_Abstract | ||
{ | ||
public function isEnabled() | ||
{ | ||
return Mage::helper('core')->isModuleOutputEnabled('Mage_ConfigurableSwatches') | ||
&& Mage::getStoreConfigFlag('configswatches/general/enabled'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters