diff --git a/app/code/community/Segment/Analytics/Model/Observer.php b/app/code/community/Segment/Analytics/Model/Observer.php index c422962..c1cca3d 100644 --- a/app/code/community/Segment/Analytics/Model/Observer.php +++ b/app/code/community/Segment/Analytics/Model/Observer.php @@ -21,7 +21,7 @@ public function addContainerBlock($observer) return; } - if(Mage::helper('segment_analytics')->isEnabled()) + if(!Mage::helper('segment_analytics')->isEnabled()) { return; } @@ -54,7 +54,7 @@ public function addFrotnendScripts($observer) { return; } - if(Mage::helper('segment_analytics')->isEnabled()) + if(!Mage::helper('segment_analytics')->isEnabled()) { return; } diff --git a/app/code/community/Segment/Analytics/etc/config.xml b/app/code/community/Segment/Analytics/etc/config.xml index b88749f..3678e51 100644 --- a/app/code/community/Segment/Analytics/etc/config.xml +++ b/app/code/community/Segment/Analytics/etc/config.xml @@ -18,6 +18,7 @@ + @@ -27,7 +28,7 @@ - + @@ -208,6 +209,7 @@ +