Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractHelper.php
Go to the documentation of this file.
1 <?php
7 
9 
13 abstract class AbstractHelper
14 {
22  {
23  $billingAddress = $quote->getBillingAddress();
24  $billingAddress->setShouldIgnoreValidation(true);
25 
26  if (!$quote->getIsVirtual()) {
27  $shippingAddress = $quote->getShippingAddress();
28  $shippingAddress->setShouldIgnoreValidation(true);
29  if (!$billingAddress->getEmail()) {
30  $billingAddress->setSameAsBilling(1);
31  }
32  }
33  }
34 }
$billingAddress
Definition: order.php:25
$quote
$shippingAddress
Definition: order.php:40