コード例 #1
0
ファイル: Tax.php プロジェクト: pradeep-wagento/magento2
 /**
  * Process model configuration array.
  * This method can be used for changing totals collect sort order
  *
  * @param   array $config
  * @param   store $store
  * @return  array
  */
 public function processConfigArray($config, $store)
 {
     $calculationSequence = $this->_taxData->getCalculationSequence($store);
     switch ($calculationSequence) {
         case Calculation::CALC_TAX_BEFORE_DISCOUNT_ON_INCL:
             $config['before'][] = 'discount';
             break;
         default:
             $config['after'][] = 'discount';
             break;
     }
     return $config;
 }