minor fix

This commit is contained in:
KevinMendez 2021-02-26 14:49:52 -05:00
parent 8c23ac0692
commit 1fd3a71d33
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class Shopify(SaleWebChannel):
if customer.get('default_address'):
default_address = customer['default_address']
shipment_address = default_address['address1']
phone = customer['phone'] or '000'
phone = default_address['phone'] or '000'
city_name = default_address['city']
if city_name:
cities = City.search([
@ -109,7 +109,7 @@ class Shopify(SaleWebChannel):
}])],
'contact_mechanisms': [
('create', [
{'type': 'phone', 'value': phone},
{'type': 'phone', 'value': phone.replace(" ","")},
{'type': 'email', 'value': email},
])
]