Maikel Linke
187a78b78d
Remove stock location from add-variant JS
2025-01-22 11:58:15 +11:00
wandji20
a85cfab506
Remove awesome nested set gem and dependencies [OFN-11636]
2024-08-12 18:47:16 +01:00
binarygit
99f4c4705f
Remove redundant function
2024-01-14 15:06:02 +05:45
David Cook
7d299affd3
Move hiding logic to stimulus controller
...
This ensures morphed flashes hide like other flashes (eg in bulk order actions). I wanted to write a spec to prove it, but Capybara doesn't support mocking setTimeout and I didn't want to use sleep.
I've made it optional because this controller is shared with the shop frontend ([supposedly](5ef34347a3 ), although angular seems to override it).
2023-12-06 10:11:19 +11:00
Maikel Linke
71c50e1fcf
Update warning message for item quantity
2023-11-09 10:56:41 +11:00
Maikel Linke
efc338aeeb
Don't update order when not enough stock
...
There's a user-facing change here. When you tried to update the quantity
of a line item beyond available stock, two things used to happen:
1. A warning was displayed.
2. The item's quantity was updated to the highest possible.
Unfortunately, the logic to update the line item was also reloading the
page and the warning message disappeared before it could be
acknowledged. The easiest fix was to skip the update request. And in my
opinion, it's even better to let the user decide if they still want to
update or cancel the update.
Eventually, we want to replace all this custom Javascript logic with
StimulusJS anyway. So let's not put too much effort into this. It was
important though to resolve the flaky spec which made many builds fail.
2023-11-09 10:56:41 +11:00
Matt-Yorkley
7dc1091bc2
Migrate product image from master variant to product
2023-06-16 21:23:44 +01:00
Jean-Baptiste Bellet
51d6fb81dd
Fwd to request the restock_items input value when adjusting items qty
2023-05-11 22:58:44 +02:00
Gaetan Craig-Riou
d1f7cc1b2a
Merge pull request #10764 from Matt-Yorkley/remove-data-hooks
...
Remove `data-hook` attributes
2023-05-02 16:35:46 +10:00
Matt-Yorkley
b9431cd121
Remove data-hook attributes
2023-04-28 13:03:13 +01:00
basilawwad
fa373518fb
applied modal function
...
Update variant_autocomplete.js.erb
Applied modal function
refactored function
fix indentation and removed old function
2023-04-20 11:46:02 +02:00
Filipe
6b30a654a6
Merge pull request #10516 from macanudo527/fix_taxonomy
...
Fix Sorting entries in a taxonomy is broken
2023-03-23 09:23:16 +00:00
Neal Chambers
63ba3defec
Use Spree Taxon Controller instead of API Taxon Controller
2023-03-06 15:07:52 +09:00
Jean-Baptiste Bellet
c83dac58a3
Confirm line items deletion that doesn't trigger an order cancelation
2023-02-27 11:09:59 +01:00
binarygit
0599acbcb8
Refactor shipments.js
2022-07-19 13:37:05 +05:45
binarygit
97dcd44662
Display alert box before deleting note/tracking info
2022-07-19 13:37:05 +05:45
binarygit
6ad0749ce8
Refactor: create parent_node var to find child elements
2022-07-12 14:11:53 +05:45
binarygit
227220e2a6
Add focus to tracking when edit tracking is clicked
2022-07-09 14:40:04 +05:45
binarygit
b88c85555e
Add delete tracking feature
2022-07-09 14:39:20 +05:45
binarygit
b7a49ced39
Add focus to note when edit note is clicked
2022-07-09 14:33:01 +05:45
binarygit
dc31ebebb1
Add delete note feature
2022-07-09 13:23:38 +05:45
Jean-Baptiste Bellet
90af6bd22d
Handle note saving with a new action on existing API controller
2022-07-05 10:09:20 +02:00
Jean-Baptiste Bellet
3f1099d968
Add edit note line on an order
2022-07-05 10:09:20 +02:00
Maikel
553046addb
Merge pull request #9255 from jibees/fix-admin-taxonomies-interface
...
Fix admin taxonomies interface
2022-06-21 09:41:55 +10:00
Jean-Baptiste Bellet
68bd1df312
Handle rename with context menu on the first taxon ie. the root one
...
Also rename the main input field (sort of title) when updating the root taxon name with contextual menu
2022-06-02 16:03:16 +02:00
Jean-Baptiste Bellet
4bbbae68c7
Do not send parent_id is it's something else than a number
...
When moving element on top, `new_parent.attr("id")` was `taxonomy_tree` which was causing DB error
2022-06-02 15:41:44 +02:00
Jean-Baptiste Bellet
121c9eed3b
Replace Spree.url().clone() by new URL()
2022-06-02 15:41:44 +02:00
Arthur Vieira
95010fcd12
Remove the unlock condition in shipment controller
...
This assumes unlock is always true so the shipment's fee adjustments
always opens and closes.
2022-05-26 09:21:48 -03:00
GeorgeThoppil
8903496a1b
Optional restocking items
2022-05-06 10:55:24 -04:00
Jean-Baptiste Bellet
e607d5c161
Shipping method: disabled form element to not submit them
...
As they're not handled by the backend
2022-04-19 15:16:07 +02:00
Filipe
4dde49c881
Merge pull request #8991 from jibees/8985-Make-checkbox-for-Send-a-cancellation-email-to-the-customer-checked-by-default
...
Admin, editing order, on last item deletion modal: "Send a cancellation email to the customer" checked by default
2022-04-18 14:04:08 +01:00
Filipe
01e915800e
Merge pull request #9037 from jibees/9028-last-item-of-order-cancellation
...
BOM: show custom modal on last item deletion of an order
2022-04-15 18:47:51 +01:00
Matt-Yorkley
7753d9e1ea
Use TomSelect and dependent-select controller in admin order customer details form and remove ancient jQuery which uses global functions and inline scripts
...
🎉
2022-04-05 18:56:51 +01:00
Jean-Baptiste Bellet
a71e95da27
ofnCancelOrderAlert can accept i18n key to customize message
2022-03-25 11:10:54 +01:00
Jean-Baptiste Bellet
08d4aea2b9
"Send a cancellation email to the customer" checked by default
2022-03-14 09:05:17 +01:00
Jean-Baptiste Bellet
8624fa2a85
On last item deletion, prevent user on order canceling and cancellation email
...
... with a modal.
User can cancel the modal or confirm the last item deletion & order cancelation with or without sending a cancellation email to the consumer.
2022-02-10 14:39:00 +01:00
Jean-Baptiste Bellet
17906f378a
Create a method that actually adjust Items
...
Separate it from the adjustItems method that previously test about the item quantity
2022-02-10 14:34:39 +01:00
Filipe
998f7afdc4
Merge pull request #8523 from seballot/progress-for-ajax-request
...
Improve loading spinner display
2022-02-01 10:03:04 +00:00
Sebastian Castro
4a436978a9
loading-popup: debounce display
2022-01-11 21:55:07 +01:00
Matt-Yorkley
14a62f5d49
Change paths helpers to urls
2022-01-06 13:10:48 +00:00
Matt-Yorkley
95464cf956
Update uses of (removed) jsuri interface
2022-01-06 13:10:48 +00:00
Matt-Yorkley
0721800f56
Remove jsuri.js
2022-01-06 13:10:48 +00:00
Meron Ogbai
a065a92616
Reorganize alert and confirm code
2021-09-11 13:36:28 +03:00
Meron Ogbai
aed84912a3
Use selector to get del element
2021-09-11 13:10:33 +03:00
Meron Ogbai
95e294c9ec
Use custom modals for deleting orders
2021-09-09 06:25:03 +03:00
Guido Oliveira
b1cd163900
Prevent removing last item in order
2021-08-18 12:00:32 -03:00
Matt-Yorkley
cdf25ee580
Fix some syntax issues
2021-07-23 23:26:39 +01:00
Jean-Baptiste Bellet
947a9da18b
remove useless translations
...
as flatpickr is already translated
2021-02-08 22:09:06 +01:00
Matt-Yorkley
de530c2a46
Merge pull request #6750 from mkllnk/6749-i18n-in-assets
...
Use JS I18n function in assets to avoid parsing error
2021-01-28 15:50:22 +01:00
Matt-Yorkley
52cfa0a103
Remove old Javascript hacks for the main menu and replace with flex-based CSS properties
2021-01-27 11:38:01 +00:00