Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: addrs.isDefaultBilling is not a function #21

Closed
jerry-shopcommerce opened this issue Jul 17, 2019 · 0 comments · Fixed by #22
Closed

TypeError: addrs.isDefaultBilling is not a function #21

jerry-shopcommerce opened this issue Jul 17, 2019 · 0 comments · Fixed by #22

Comments

@jerry-shopcommerce
Copy link

Preconditions

Magento Version : 2.2.9

Module Versions :

smile/module-map            1.1.6
smile/module-retailer       1.2.8
smile/module-seller         1.2.5
smile/module-store-delivery 1.1.4
smile/module-store-locator  1.3.9.3

Environment : Developer

Steps to reproduce

With a not logged in customer

  1. Add a product to your cart
  2. Go to the checkout
  3. Enter your email
  4. Select a store to deliver
  5. Click next to go to your billing address

Expected result

  1. Being able to enter your billing address

Actual result

  1. Checkout loader does not disappear
  2. In the js console there is an error: TypeError: addrs.isDefaultBilling is not a function (checkout-data-resolver.js:248:31)

In the file vendor/smile/module-store-delivery/view/frontend/web/js/model/store-address.js there does not seem to be a function called isDefaultBilling. When i add the function and let it return false, the error disappears from my console and i am able to proceed with entering my billing details.

Tested with a not logged in customer, checkout functions as expected, a order can be placed. I have not tested this with logged in customers.

NathMorgan added a commit to NathMorgan/magento2-module-store-delivery that referenced this issue Jul 26, 2019
@Fdec Fdec closed this as completed in #22 Aug 1, 2019
Fdec pushed a commit that referenced this issue Aug 1, 2019
…ing-function

Add isDefaultBilling JS function within store-address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant