Carlos Chitty
|
85e4f749f9
|
refactor: move unit price formatting logic out of model into helper
Solves Psych::DisallowedClass errors
Example: https://github.com/openfoodfoundation/openfoodnetwork/actions/runs/14739687958/job/41374343627?pr=13232
unit_price returns object with amount and unit, as mentioned in https://github.com/openfoodfoundation/openfoodnetwork/pull/6905\#discussion_r578401368
|
2025-06-16 12:53:41 +01:00 |
|
David Cook
|
5a1190cdda
|
Remove superfluous %div from haml elements with class
Div is the default element in HAML, so we don't need to specify it. https://haml.info/docs/yardoc/file.REFERENCE.html#implicit-div-elements
|
2025-03-03 14:46:24 +01:00 |
|
Maikel Linke
|
ba51641271
|
Symbolise hash keys in HAML files
This was done by the haml-up script.
|
2024-02-22 15:01:14 +11:00 |
|
Maikel Linke
|
c097f2b622
|
Upgrade HAML syntax with script
|
2024-02-22 15:01:13 +11:00 |
|
Jean-Baptiste Bellet
|
e3f56556cf
|
Remove feature toggle around unit_price and enable it
|
2021-06-07 20:53:45 +02:00 |
|
Jean-Baptiste Bellet
|
0ea085a275
|
Add unit prices for already bought product in cart page
|
2021-03-26 09:49:28 +01:00 |
|
Matthew Rieger
|
651bdad7b9
|
Fix users removing last item of confirmed order on /cart page
|
2021-03-01 20:42:05 -08:00 |
|
Luis Ramos
|
399fe2c01b
|
Make code work for relations and arrays
|
2020-10-30 10:12:56 +00:00 |
|
Matt-Yorkley
|
8fc407a9d5
|
Extract repeated variant thumbnail code to a shared partial
|
2020-07-02 18:36:43 +02:00 |
|
Matt-Yorkley
|
eeb6c57f99
|
Update missing image paths in other order views
|
2020-07-02 18:36:27 +02:00 |
|
luisramos0
|
1295d33fa7
|
Fix bug in frontoffice order details where the product image was a link to nowhere
|
2019-12-28 17:54:28 +00:00 |
|
Rob Harrington
|
68c8759af1
|
Count of items in cart form looks is consistent with rest of UI (ie. uses quantities)
|
2017-05-05 14:20:57 +10:00 |
|
Rob Harrington
|
b55036e165
|
Adding alert to shopfront to alert user to presence of orders open for editing
|
2017-05-05 14:20:57 +10:00 |
|
Rob Harrington
|
ae28d7a96b
|
Adding a link in cart to allow user to edit existing + open orders for same OC
|
2017-05-05 14:20:57 +10:00 |
|
Rob Harrington
|
cda43f075b
|
Moving bought items listing up into main section of cart
|
2017-05-05 14:19:32 +10:00 |
|
Maikel Linke
|
936df71d0d
|
Link to bought products on cart page
The checkout page was just linking to the cart page, but not scrolling
down.
|
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
|
e8d2d4d96f
|
Display already bought items in edit cart view
|
2017-05-05 14:19:32 +10:00 |
|