Commit 5635b5f8 authored by attilak's avatar attilak

Fix undefined quote shipping address error

parent 98915dda
...@@ -205,6 +205,18 @@ define( ...@@ -205,6 +205,18 @@ define(
return; return;
} }
var city = '';
var country = '';
var postalCode = '';
var street = '';
if (!!quote && !!quote.shippingAddress()) {
city = quote.shippingAddress().city;
country = quote.shippingAddress().countryId;
postalCode = quote.shippingAddress().postcode;
street = quote.shippingAddress().street.join(" ");
}
/*Use the storedPaymentMethod object and the custom onChange function as the configuration object together*/ /*Use the storedPaymentMethod object and the custom onChange function as the configuration object together*/
var configuration = { var configuration = {
showPayButton: showPayButton, showPayButton: showPayButton,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment