notrab / headless-dropshipping-starter

Create your own dropshipping store with Next.js, Snipcart & Printful 👕
https://headlessdropshipping.com
712 stars 134 forks source link

User icon doesn't work #46

Closed pythlang closed 2 years ago

pythlang commented 2 years ago

I see there was another issue that tried to address this but you closed it #24 .

Yes, when I use the demo online, the icon routes. When I run the project locally, however, it does not function whatsoever.

When I navigate to /#/signin then it remains on the homepage. When I look at the online demo, there are Links which do not exist in this repository in the same way the other functional Links do. I know in your video you say we must create them, but....

Can you please guide me as to how to 1) fix this and 2) how I would go about using the registration/login functionality in a headless server. What and where would I be pointing this to log-in/register?

Thanks so much

Screen Shot 2022-01-06 at 21 20 35 Screen Shot 2022-01-06 at 21 21 12

notrab commented 2 years ago

Hey

Do you have NEXT_PUBLIC_SNIPCART_API_KEY defined? This wouldn't work if you have user logins disabled, or no Printful key.

pythlang commented 2 years ago

Thanks for the quick reply; I saw your message but couldn't get to it due to an emergency.

Indeed, I have the NEXT_PUBLIC_SNIPCART_API_KEY defined.

Screen Shot 2022-01-10 at 07 52 33

Where should I check whether or not user logins are disabled?

notrab commented 2 years ago

Can you try this?

If you don't want to offer the customer dashboard feature to customers: in your merchant dashboard, go to Store configurations → Checkout & cart, and mark the "Allow Guests only" box.

https://docs.snipcart.com/v3/setup/customer-dashboard

pythlang commented 2 years ago

Thank you for the link. I will look at this now.

pythlang commented 2 years ago

Looks like that solved it. Thanks a bunch, I'm new to the Snipcart platform and working on getting up to speed.

Please mark as closed.

image

image

notrab commented 2 years ago

Awesome! I'm glad you got it sorted