How to retrieving Virtuemart billing and shipping addresses
What is the business logic to retrieve billing and shipping addresses?
The VMConnector's web service function GetCustInfo (ws_cust_VM.php) allows you to retreive customer's billing and shipping addresses.
- This web service always retrieves the “BT” address.
- If a “ST” address has been registered and selected for shipping, the web service will retrieve the “BT” address AND the selected “ST” address within one web service function call (2 address objects).
- Summary:
- If the web service call contains 2 objects, the second one is the address selected during checkout for shipping and its type is “ST”.
- If the web service call contains 1 objects, the address selected for shipping is the default bill to address “BT”