@spree/docs 0.1.284 → 0.1.286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,7 +121,7 @@ Some resources expose convenience search scopes:
|
|
|
121
121
|
|---|---|---|
|
|
122
122
|
| Customers | `search` | Full-text over email + first/last name |
|
|
123
123
|
| Customers | `with_min_total_spent` | Filter by lifetime spend |
|
|
124
|
-
| Orders | `
|
|
124
|
+
| Orders | `search` | Number, purchase order and customer name (partial match); email (exact match) |
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
```typescript SDK
|
|
@@ -203,7 +203,7 @@ it in the scope of the tenant instead, so the same email can exist across differ
|
|
|
203
203
|
```ruby server/app/models/spree/user.rb
|
|
204
204
|
class Spree::User < Spree.base_class
|
|
205
205
|
include Spree::UserAddress
|
|
206
|
-
include Spree::
|
|
206
|
+
include Spree::CustomerMethods
|
|
207
207
|
include Spree::UserPaymentSource
|
|
208
208
|
include SpreeMultiTenant::CustomerUserConcern # added by the generator
|
|
209
209
|
|
|
@@ -131,10 +131,11 @@ bundle exec rake spree:backfill_order_coupon_codes
|
|
|
131
131
|
### Markets on orders
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
+
bundle exec rake spree:markets:migrate_checkout_zones
|
|
134
135
|
bundle exec rake spree:backfill_order_markets
|
|
135
136
|
```
|
|
136
137
|
|
|
137
|
-
Orders missing a market get the store default — `market` is required on carts and orders in 6.0.
|
|
138
|
+
A store without a market gets a default one covering its old checkout zone's countries (or its default country), and the checkout zone is cleared. Orders missing a market then get the store default — `market` is required on carts and orders in 6.0.
|
|
138
139
|
|
|
139
140
|
### Fill in the stock level counters
|
|
140
141
|
|
|
@@ -476,6 +477,7 @@ These were deprecated in 5.x and are **gone now** — there is no bridge, so cal
|
|
|
476
477
|
| `Spree::Image::Configuration::ActiveStorage` | deleted — an empty no-op module; all logic lives in `Spree::Asset` |
|
|
477
478
|
| `Spree::OrderRouting::Strategy::Legacy` | `Spree::OrderRouting::Strategy::Rules` (see below) |
|
|
478
479
|
| `private_metafields` association | read `custom_fields` and filter, or query `Spree::CustomField.admin_only` |
|
|
480
|
+
| `multi_search` (`Product`, `Variant`, `Order`, customers; also `q[multi_search]` in the Admin API) and `Searchable.sanitize_query_for_multi_search` / `.multi_search_condition` | `search` / `q[search]`, `sanitize_query_for_search` / `search_condition`. Saved exports or links still using `multi_search` lose their filter |
|
|
479
481
|
|
|
480
482
|
### Custom fields replace metafields
|
|
481
483
|
|