1. Home
  2. Docs
  3. Magento 1 B2B Extensions
  4. Shipping and Payment per Customer Group
  5. Common Problems

Common Problems

1. Solve conflicts between BSS Shipping and Payment Method per Customer Group and another module (IG_FlatShipping5)

Step 1:

Edit file: /app/code/community/IG/FlatShipping5/Block/Available.php

Step 2:

Add fucntion

public function getShippingRates()
{
  $modules = Mage::getConfig()>getNode('modules')>children();
  $modulesArray = (array)$modules;
  if(isset($modulesArray['Bss_Methods']) && Mage::helper('core')->isModuleEnabled('Bss_Methods')) {
    if (empty($this->_rates)) {
      $this->getAddress()>collectShippingRates()>save();
      $groups = $this->getAddress()->getGroupedAllShippingRates();
      // checking methods visibility for customer groups
      foreach ($groups as $methodCode => $method){
        if (!Mage::helper('bssmethods')->canUseMethod($methodCode, 'shipping')){
          unset($groups[$methodCode]); 
		}
 
      }
      return $this->_rates = $groups;
    }
    return $this->_rates;
  }
  return parent::getShippingRates();
}

Was this article helpful to you? Yes No

How can we help?