Maikel Linke
8f761fc438
Remove unused localStorageService clearing
2025-01-02 15:23:43 +11:00
Matt-Yorkley
40531d769c
Update deprecated #success and #error methods on $http service
2021-08-10 16:22:47 +01:00
Matt-Yorkley
e1155277fc
Remove Darkswarm from window
2021-08-02 18:59:42 +01:00
Guido Oliveira
84285ff985
prevent deleting only item in confirmed order
2021-04-28 17:37:28 -03:00
Andy Brett
72b7fe723f
fix indentation
2021-03-01 20:42:05 -08:00
Andy Brett
3725ba0fc4
Update app/assets/javascripts/darkswarm/services/cart.js.coffee
2021-03-01 20:42:05 -08:00
Matthew Rieger
651bdad7b9
Fix users removing last item of confirmed order on /cart page
2021-03-01 20:42:05 -08:00
Andy Brett
c70ea44091
show specific error message when add-to-cart fails
2020-12-08 14:37:16 -08:00
Maikel Linke
f435039061
Simplify using loading and flash messages together
2020-08-27 11:03:13 +10:00
Matt-Yorkley
13e4411b89
Add error message on cart populate failure and don't keep re-sending the data to the server.
...
This was triggering many requests to be continuously re-sent in a very problematic way (server-melting), and with no user feedback.
2020-05-05 17:22:10 +02:00
Matt-Yorkley
9a7807b134
Don't continuously re-post data on cart error
2020-05-05 16:04:05 +02:00
luisramos0
8ee14ccb4b
Make variants_stock_levels return variants on_demand values
2019-02-19 11:56:02 +00:00
luisramos0
f0842fcbe5
Convert all calls to variant.count_on_hand to variant.on_hand
2019-02-18 21:54:07 +00:00
luisramos0
6caa361354
Moved Spree::OrderController.populate to new CartController.
...
This was done to make order populate independent of Spree::OrdersController
2018-08-23 12:37:52 +01:00
Rob Harrington
61cb78fc93
Tweaks to LineItemsController, renaming #index to #bought
2017-05-12 16:29:15 +10:00
Maikel Linke
811671661e
Remove item from dropdown cart after deletion
2017-05-05 14:19:32 +10:00
Maikel Linke
219ad4a3a7
Reload bought products after choosing order cycle
2017-05-05 14:19:32 +10:00
Maikel Linke
4835ef067f
Add feature to remove line items from open order cycle
...
- Add JS controller to send delete requests.
- Add resource controller to destroy items.
- Add authorisation check to abilities.
- Update fees after removing line item.
2017-05-05 14:19:32 +10:00
Maikel Linke
88c3f414fb
Handle missing order in cart
2017-05-05 14:18:20 +10:00
Maikel Linke
65f62c42b9
Display products already ordered in this oc
...
Github issue #1083 , part of standing orders.
For now, just display already bought products within the same order
cycle in the popup cart view. The edit cart view should follow. Later,
it should be possible to remove items as well.
2017-05-05 14:18:20 +10:00
Rob Harrington
e57a25d05f
Replacing local storage library with actively maintained one: grevory/angular-local-storage
2016-10-21 10:51:36 +11:00
Bing Xie
80d755da0d
Convert state_id and country_id in serializer
2016-10-21 10:51:36 +11:00
Bing Xie
8d534041b2
Refactor js CurrentOrder
2016-10-21 10:51:36 +11:00
Rob Harrington
47df8d6d8e
Refactoring AngularJS Shop Variant filtering logic for improved speed
2016-08-10 12:08:03 +10:00
Rohan Mitchell
8f8a1191cb
Remove stock cap on max_quantity
2016-04-27 12:27:24 +10:00
Rohan Mitchell
a26266159c
Fix timing issue: change in client-side value during server update
2016-04-22 10:47:20 +10:00
Rohan Mitchell
35117f7af4
Show a modal when available stock levels have reduced
2016-04-21 09:36:23 +10:00
Rohan Mitchell
6fbbe580c5
After adding an item to the cart, when less quantity available, reduce quantity and reset client-side stock level
2016-04-21 09:36:23 +10:00
Rohan Mitchell
8a62d26af4
After adding an item to the cart, when out of stock, remove from cart and reset client-side stock level
2016-04-21 09:36:23 +10:00
Rohan Mitchell
71569324f4
Serialise cart updates - do not submit another until the previous has completed
2016-01-07 13:53:37 +11:00
Maikel Linke
ae96541112
Internationalisation of Javascript views
2015-10-01 11:13:45 +10:00
Rohan Mitchell
eb6dcba396
Clear localstorage in Cart.clear()
2015-07-31 16:56:08 +10:00
Rohan Mitchell
012a210782
Add method to clear cart
2015-07-31 16:56:08 +10:00
Rohan Mitchell
904a3a5bd4
When add to cart fails, retry every 3 seconds, with no limit of the number of retries
2015-07-16 10:05:19 +10:00
summerscope
d0f66a6053
Fixing label for cart popover to make it write name of product variant without page load
2015-03-13 18:10:59 +11:00
Rohan Mitchell
efbf2c7ffa
Display extended variant name in quick cart
2015-03-13 12:58:53 +11:00
Rob Harrington
1d80bee595
Cart item total reflects total number of items in the cart
2015-01-16 16:06:51 +11:00
Rob Harrington
b3e67fa164
Take two on disabled logic
2015-01-15 17:34:04 +11:00
Rob Harrington
ac34da4f24
Altering logic around disabled state for 'Your Shopping Cart' button
2015-01-15 17:19:48 +11:00
Rafael Schouten
01c98bf6e4
refactor and bugfix for tests
2014-09-17 01:07:34 +10:00
Will Marshall
647495465a
Comments and minor refactoring
2014-07-31 15:14:11 +10:00
Will Marshall
d9f3dfb571
Removing a pointless error message
2014-07-31 12:23:22 +10:00
Will Marshall
86c1d010e7
Default quantity to null rather than zero
2014-07-31 11:49:34 +10:00
Will Marshall
a5f478bde7
Ajax submission of max quantity
2014-07-28 13:33:13 +10:00
Will Marshall
2120ab96ca
Fixing bugs and spec regressions
2014-07-24 16:02:10 +10:00
Will Marshall
f45dd24803
Patched up popovers for our nefarious purposes + cart pretties
2014-07-24 14:56:13 +10:00
Will Marshall
63807fd2cd
Fixing case when order doesn't axshully exist
2014-07-24 11:24:09 +10:00
Will Marshall
92b7966941
Triggering dialog if page unsaved
2014-07-18 17:07:40 +10:00
Will Marshall
edaba844d9
Merge branch 'laura_and_will' into new_cart
...
Conflicts:
app/views/shop/products/_form.html.haml
app/views/shop/products/_master.html.haml
app/views/shop/products/_variants.html.haml
2014-07-18 17:02:19 +10:00
Will Marshall
a480353158
Working bindings
2014-07-18 16:05:58 +10:00