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

re-order funcitonality #61

Open
ezvirtual opened this issue Dec 8, 2015 · 2 comments
Open

re-order funcitonality #61

ezvirtual opened this issue Dec 8, 2015 · 2 comments

Comments

@ezvirtual
Copy link

Example user story:
As a customer I want to be able to place a new order the same as (or similar to) a previous order I have made.

  • Has anyone else got a use case for this kind of functionality?
  • Would it be 'better' to be able to (a) re-order an identical order to a previous order, or (b) add items from a previous order to the cart so you can then add / remove items before placing the order? My initial feeling is that (b) is much better but I'm not sure if there are any potential draw backs or if they're mutually exclusive.
  • Would anyone be able to point us in the right direction to programatically add items to the cart?
@rnixx
Copy link
Member

rnixx commented Dec 9, 2015

b.) is way better imo.

cart items are stored as triples in cart cookie.

Here's how they are extracted.
https://github.com/bluedynamics/bda.plone.cart/blob/master/src/bda/plone/cart/__init__.py#L72

There is actually no utility for adding cart items on the server side. But actually it's a good idea to have one ;) it should go to add_item_to_cart utility in bda.plone.cart.__init__.

@rnixx
Copy link
Member

rnixx commented Dec 9, 2015

but there is a utility function for removing items from cart cookie. This can be used as starting point.
https://github.com/bluedynamics/bda.plone.cart/blob/master/src/bda/plone/cart/__init__.py#L103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants