/**
  * @return \Magento\Framework\Model\AbstractModel|void
  */
 public function afterSave()
 {
     /** @var \Magento\OfflineShipping\Model\Resource\Carrier\Tablerate $tableRate */
     $tableRate = $this->_tablerateFactory->create();
     $tableRate->uploadAndImport($this);
 }
Exemple #2
0
 /**
  * @return \Magento\Framework\Model\AbstractModel|void
  */
 public function _afterSave()
 {
     $this->_tablerateFactory->create()->uploadAndImport($this);
 }
Exemple #3
0
 /**
  * @param \Magento\Quote\Model\Quote\Address\RateRequest $request
  * @return array|bool
  */
 public function getRate(\Magento\Quote\Model\Quote\Address\RateRequest $request)
 {
     return $this->_tablerateFactory->create()->getRate($request);
 }