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

Allow add to cart and checkout without login / signup #82

Open
connecteev opened this issue Feb 23, 2020 · 6 comments
Open

Allow add to cart and checkout without login / signup #82

connecteev opened this issue Feb 23, 2020 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@connecteev
Copy link

This is pretty basic for any ecommerce store (like Shopify) - I should be able to purchase an item without having to create an account or log in

@smaharj1
Copy link
Collaborator

Thanks. We will be working on this shortly.

@smaharj1 smaharj1 added the enhancement New feature or request label Feb 27, 2020
@gfyre
Copy link
Contributor

gfyre commented May 5, 2020

Any updates on this?

@smaharj1 smaharj1 added the help wanted Extra attention is needed label May 5, 2020
@smaharj1
Copy link
Collaborator

smaharj1 commented May 6, 2020

Any updates on this?

We will try to get to it as soon as we can but due to other commitments and day job of all the devs, it will take some time for this. Feel free to grab this issue and raise a PR. Also, are you looking for a certain form of e-commerce implementation?

@gfyre
Copy link
Contributor

gfyre commented May 6, 2020

@smaharj1 I'll try to work on this and submit a pull request for the same. But I dont think I'll be able to complete it soon. However, I'll surely give it a shot.

@gfyre
Copy link
Contributor

gfyre commented Jul 31, 2020

@smaharj1 @Viveckh I have changed the add-to-cart flow a bit where when a new (non-existing) user clicks on add-to-cart, the pathname of the page is saved to localstorage and once they have signed-up or signed-in, they will be pushed back to this very page.

This is working but I cannot submit a pull request because I have made way to many changes to the UI and some to the backend.

@gfyre
Copy link
Contributor

gfyre commented Jul 31, 2020

@Viveckh or @smaharj1 one of you can submit a pull request. Here's the code:

  1. In shopping-webclient/src/components/product-detail/ProductDescription.vue:

Right under:

add
var Url= window.location.pathname;

and under this line:

add

localStorage.setItem("Url", Url)

And lastly,

under

if (this.usernameState) { // } && this.captchaResp.length > 0) {

add

this.$router.push(localStorage.getItem('Url'));

Now if you are not signed in, the product page you were on is stored in your browsers localstorage and once you have signed in, you will be redirected to the product page you were on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants