nevimov / django-easycart Goto Github PK
View Code? Open in Web Editor NEWA flexible session-based shopping cart application for Django.
License: MIT License
A flexible session-based shopping cart application for Django.
License: MIT License
Hi !
Using the provided views, if I send an ajax request to add an item, then another one before I got the first one, it seems the cart is overwritten by the last query, making the first item disappear from the cart.
I think this is caused because each requests creates a Cart instance, and each cart instance works on a different self.items and then reset the session variable at the end of processing.
I think cart should not allow negative values, just ignore them, but not raise an exception.
Also, setting 0 quantity should mean delete or nothing.
Maybe a EASYCART_DEBUG setting True will raise this issues and else just ignore them.
We are dealing with anonymous user input, and maybe robots, scrappers in the wild so I think easycart should not be easily breakable by default (no pun intended)
(this is not a priority as I am validating input in my views)
Thanks for your software.
Replicate.
I may have missed this information in the documentation, but when I want to retrieve all the individual's items in the shopping cart on checkout, how would I do that?
Hi !
I think an ajax cart-list view should be provided, returning the cart content without doing any change.
Great tool ! Thanks !
Hi !
It would be nice if there was an "UpdateItem" view (or whatever other name) that would automatically proxy to AddItem if the item doesn't exist, to RemoveItem if the quantity is set to 0, and to ChangeItemQuantity else.
Think of an UI where the user just enters the number of items in a list of products.
I am using intercooler.js to make post request to easycart and looks like not always quantities are stored as integers so when computing totals easycart fails saying Decimal cannot be multiplied by sequence (unicode). I fixed it by converting to integer.
Are you interested in a pull request?
Thanks for your project.
Cheers,
Néstor
I like the simplicity of django-easycart, but there is one feature I am not sure how to accomplish.
Using the jquery POST add request, I would like to push additional optional options, in addition to the quantity param such as size or color, how would I accomplish that?
Hello,
I'm writing a small shop website and i'm using your project, it is very nice but i'm struggling with a small use case.
I would like to change the price depending on who is connected and from which country.
These informations are in the session.
I can access the session from the easycart.cart.BaseCart.request but not from the BaseItem one.
My purpose would be to override the easycart.cart.BaseItem.get_price() method to output the right amount depending on the parameters in session.
Thanks,
Alti.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.