Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ public function controllerActionPredispatch(Varien_Event_Observer $oObserver)
*/
public function coreBlockAbstractToHtmlBefore(Varien_Event_Observer $oObserver)
{
if ($this->isExtensionActive()) {
/* @var $oB2BCustomerHelper Sitewards_B2BProfessional_Helper_Customer */
$oB2BCustomerHelper = Mage::helper('sitewards_b2bprofessional/customer');

if ($this->isExtensionActive() && !$oB2BCustomerHelper->isCustomerLoggedIn()) {
$oBlock = $oObserver->getData('block');

if ($oBlock instanceof Mage_Catalog_Block_Product_List_Toolbar) {
Expand Down