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

[BUG]unable to checkout products #66

Open
buddhikavidra opened this issue Jul 25, 2020 · 2 comments
Open

[BUG]unable to checkout products #66

buddhikavidra opened this issue Jul 25, 2020 · 2 comments
Labels

Comments

@buddhikavidra
Copy link

buddhikavidra commented Jul 25, 2020

after filing shipping details and clicking "continue to checkout" button not redirects to a confirmation page

Steps to reproduce the behaviour

  1. Go to 'cart'
  2. Click on 'checkout'
  3. Click on 'next'
  4. fill shipping details

Expected behaviour
need to go success page

Screenshot (62)

@Kuncy
Copy link

Kuncy commented Aug 10, 2020

core.js:6228 ERROR TypeError: Cannot read property 'emailId' of undefined
at ShippingDetailsComponent_Template (shipping-details.component.html:49)
at executeTemplate (core.js:12156)
at refreshView (core.js:11995)
at refreshComponent (core.js:13445)
at refreshChildComponents (core.js:11716)
at refreshView (core.js:12051)
at refreshEmbeddedViews (core.js:13391)
at refreshView (core.js:12022)
at refreshComponent (core.js:13445)
at refreshChildComponents (core.js:11716)
defaultErrorLogger @ core.js:6228
handleError @ core.js:6281
(anonymous) @ core.js:43145
invoke @ zone-evergreen.js:364
run @ zone-evergreen.js:123
runOutsideAngular @ core.js:41488
tick @ core.js:43142
(anonymous) @ core.js:42975
invoke @ zone-evergreen.js:364
onInvoke @ core.js:41654
invoke @ zone-evergreen.js:363
run @ zone-evergreen.js:123
run @ core.js:41427
next @ core.js:42971
schedulerFn @ core.js:37119
__tryOrUnsub @ Subscriber.js:183
next @ Subscriber.js:122
_next @ Subscriber.js:72
next @ Subscriber.js:49
next @ Subject.js:39
emit @ core.js:37079
checkStable @ core.js:41566
onHasTask @ core.js:41675
hasTask @ zone-evergreen.js:419
_updateTaskCount @ zone-evergreen.js:440
_updateTaskCount @ zone-evergreen.js:263
runTask @ zone-evergreen.js:184
drainMicroTaskQueue @ zone-evergreen.js:569
invokeTask @ zone-evergreen.js:484
invokeTask @ zone-evergreen.js:1621
globalZoneAwareCallback @ zone-evergreen.js:1647

Thats probably the problem, you get this error if you go to the checkout page.

@Kuncy
Copy link

Kuncy commented Aug 11, 2020

The main problem is in the shipping-details.component.ts

authService.user$.pipe(

  map((user) => {
    
    this.userDetails = user;
    console.log(user);
  })
);

We get nothing here if you console log the user or the userDetail like i did, you get undefined back.
So probably there is a problem with the ngmodels in the html i think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants