Example #1
0
 /**
  * Sorting the tabs according their weight
  *
  * @return array
  */
 protected function prepareTabs()
 {
     if ($this->getMethod() && $this->getMethod()->getProcessorObject() && (!$this->getMethod()->getProcessorObject()->isConfigured() || $this->getMethod()->getProcessorObject()->getProcessorId() != \XLite\Module\XC\PitneyBowes\Model\Shipping\Processor\PitneyBowes::PROCESSOR_ID)) {
         unset($this->tabs['catalog_extraction']);
     }
     if ($this->getMethod() && $this->getMethod()->getProcessorObject() && $this->getMethod()->getProcessorObject()->getProcessorId() === \XLite\Module\XC\PitneyBowes\Model\Shipping\Processor\PitneyBowes::PROCESSOR_ID) {
         unset($this->tabs['shipping_methods']);
     }
     return parent::prepareTabs();
 }