SHARE
TWEET

Untitled

a guest Jun 24th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $address = $this->addressDataFactory->create();
  2. $address->setFirstname('Shoaib')
  3.     ->setLastname('Munir')
  4.     ->setCountryId('pk')
  5.     ->setCity('ABC')
  6.     ->setPostcode('12345')
  7.     ->setCustomerId(2)
  8.     ->setStreet(array('Line 1','Line 2'))
  9.     ->setTelephone('1234567')
  10.     ->setFax('12345')
  11.     ->setVatId('12345')
  12.     ->setIsDefaultBilling('1')
  13.     ->setIsDefaultShipping('1')
  14.     ->setHideAddress(1)
  15. ;
  16.      
  17. $address->setCustomAttribute('hide_address', 1);
  18.      
  19. $address->setData('hide_address',1);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top