コード例 #1
0
 protected function validateOrder(CustomerOrder $order, $step = 0)
 {
     return !$this->ignoreValidation ? parent::validateOrder($order, $step) : false;
 }
コード例 #2
0
 protected function validateOrder(CustomerOrder $order, $step = 0)
 {
     if ($this->config->get('REQUIRE_SAME_ADDRESS') && !$order->billingAddress->get()) {
         $order->billingAddress->set($order->shippingAddress->get());
         $tempBilling = true;
     }
     $res = !$this->ignoreValidation ? parent::validateOrder($order, $step) : false;
     if (!empty($tempBilling)) {
         $order->billingAddress->setNull();
     }
     return $res;
 }