Giter VIP home page Giter VIP logo

django-easycart's People

Contributors

n3storm avatar nevimov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-easycart's Issues

Problem with fast successive ajax queries

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.

Data validation should not raise errors, just ignore.

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.

No ajax cart-list view ?

Hi !

I think an ajax cart-list view should be provided, returning the cart content without doing any change.

Great tool ! Thanks !

Flexible update view

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.

Should easycart enforce integer type on quantities?

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

include additional optional parameters in Add post request

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?

Should/Could i access the request from the cart item object ?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.