예제 #1
0
 /**
  * Prepare the specific data format for address
  *
  * @param \XLite\Model\Address $address Address
  *
  * @return array
  */
 public static function prepareAddressData($address)
 {
     return $address ? array('address' => $address->getStreet(), 'city' => $address->getCity(), 'state' => $address->getState()->getStateId(), 'custom_state' => $address->getCustomState(), 'zipcode' => $address->getZipcode(), 'country' => $address->getCountry() ? $address->getCountry()->getCode() : '', 'type' => $address->getType() ?: \XLite\Core\Config::getInstance()->Shipping->anonymous_address_type) : null;
 }