Etsy Demo - Shopping Cart Functionality

Has anyone tried implementing shopping cart as it is on main etsy website. I am trying to make one but the concepts are not clear. ANy help would be appreciated.

Posted over 4 years ago by Adnan
Posted over 4 years ago by Jenson Vaj

Alex, I found a shopping cart from MIT that is production ready. Thought you might like it, per our conversation. https://github.com/drhenner/ror_ecommerce. It comes with video tutorial as well.

1
Posted over 4 years ago by Alex Yang

Pretty cool! Let me know what you think once you've had a chance to set it up.

1
Posted over 4 years ago by Adnan

I need to make a commenting system just like this , what plugins have you used. i am trying to use act_as_commentable with threading, but i am facing issues with saving it to child reply

1
Posted over 4 years ago by Alex Yang

I believe the acts_as_commentable_with_threading GitHub page should have pretty detailed instructions on how to do this.

1
Posted over 4 years ago by Adnan

I don't know what went wrong, i had a backup of project, i started on it again and it's working...

It's still not working in nitrous.io, all of my old projects are not working too... Anyways it's working on local pc

We would appreciate if you can do a detailed video on a shopping cart feature adding to etsy demo.

Thanks

1
Posted over 4 years ago by Adnan

something went wrong it's giving me this error...
NameError in ListingsController#index
uninitialized constant ListingsController::Listing

First it was giving me Uninitialised Constant Model Name User, then i googled it, it said to remove the devise for from routes.rb, then i did that , now it's giving me uninitialized constant, why does it give that.


1
Posted over 4 years ago by Alex Yang

I'll need more info from you to help you troubleshoot the issue. What changes did you make to your code before it stopped working? Which specific lines are causing the issue? Even better, paste a screenshot here using CloudApp.

1
Posted over 4 years ago by Adnan

Hi Alex,

I looked at your thread, but can it be like etsy where individual vendor is sent payment via paypal and there are multiple carts.
So far i have done these modifications.

http://swift-fireball-23-169077.apse1.nitrousbox.com

Right now the issue is that cart is not connected to user model and i want multiple carts to be displayed according to the listing's vendor.

Thanks

Adnan

1
Posted over 4 years ago by Alex Yang

If you want to swap out Stripe for PayPal, you'll need to replace all the Stripe code we've written with the corresponding code from the PayPal API. The two APIs are different, but both payments and transfers are possible with both (you'll need a PayPal business account though).

I'm not sure I understand why you would need multiple carts. If anything, you should have a single cart and take care of payments to separate vendors on the back-end, which creates a more seamless buyer experience.

1
Posted over 4 years ago by Alex Yang

Hey Adnan, what have you tried so far? You may want to take a look at this thread as well: https://baserails.com/questions/hey-guys-how-about-a-cart-for-the-marketplace

1