Skip to main content
added 28 characters in body
Source Link
Mohit Patel
  • 4k
  • 4
  • 24
  • 53

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as,

Country Id -> $request->getDestCountryId() Region Id -> $request->getDestRegionId() Region code(String) -> $request->getDestRegionCode() Zipcode (Postal) -> $request->getDestPostcode() City -> $request->getDestCity() Street -> $request->getDestStreet() All quote items -> $request->getAllItems()

Country Id          -> $request->getDestCountryId()
Region Id           -> $request->getDestRegionId()
Region code(String) -> $request->getDestRegionCode()
Zipcode (Postal)    -> $request->getDestPostcode()
City                -> $request->getDestCity()
Street              -> $request->getDestStreet()
All quote items     -> $request->getAllItems()

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as,

Country Id -> $request->getDestCountryId() Region Id -> $request->getDestRegionId() Region code(String) -> $request->getDestRegionCode() Zipcode (Postal) -> $request->getDestPostcode() City -> $request->getDestCity() Street -> $request->getDestStreet() All quote items -> $request->getAllItems()

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as,

Country Id          -> $request->getDestCountryId()
Region Id           -> $request->getDestRegionId()
Region code(String) -> $request->getDestRegionCode()
Zipcode (Postal)    -> $request->getDestPostcode()
City                -> $request->getDestCity()
Street              -> $request->getDestStreet()
All quote items     -> $request->getAllItems()
deleted 26 characters in body
Source Link
Mohamed Abbas
  • 604
  • 1
  • 5
  • 13

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as, 1). 

Country Id -> $request->getDestCountryId() 2). RegionRegion Id -> $request->getDestRegionId() 3). RegionRegion code(String) -> $request->getDestRegionCode() 4). ZipcodeZipcode (Postal) -> $request->getDestPostcode() 5). CityCity -> $request->getDestCity() 6). StreetStreet -> $request->getDestStreet() 7). allAll quote items -> $request->getAllItems()

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as, 1). Country Id -> $request->getDestCountryId() 2). Region Id -> $request->getDestRegionId() 3). Region code(String) -> $request->getDestRegionCode() 4). Zipcode (Postal) -> $request->getDestPostcode() 5). City -> $request->getDestCity() 6). Street -> $request->getDestStreet() 7). all quote items -> $request->getAllItems()

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as, 

Country Id -> $request->getDestCountryId() Region Id -> $request->getDestRegionId() Region code(String) -> $request->getDestRegionCode() Zipcode (Postal) -> $request->getDestPostcode() City -> $request->getDestCity() Street -> $request->getDestStreet() All quote items -> $request->getAllItems()

Source Link
Mohamed Abbas
  • 604
  • 1
  • 5
  • 13

To get the current user selected shipping address in shipping method use RateRequest Object request in collectRates method as, 1). Country Id -> $request->getDestCountryId() 2). Region Id -> $request->getDestRegionId() 3). Region code(String) -> $request->getDestRegionCode() 4). Zipcode (Postal) -> $request->getDestPostcode() 5). City -> $request->getDestCity() 6). Street -> $request->getDestStreet() 7). all quote items -> $request->getAllItems()