Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f3812b588 | ||
|
|
6ddb83a903 | ||
|
|
34f30cde50 | ||
|
|
bf016f8db2 | ||
|
|
4900f0505d | ||
|
|
61e45be2e2 |
No files matched your search
@@ -4,6 +4,43 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||||
|
|
||||||
|
## [0.31.3] - 2026-11-03
|
||||||
|
### Added
|
||||||
|
- Icons on the order confirmation's shipping/billing headings and before the
|
||||||
|
address phone number, themeable via `--bbk-icon-*` custom properties.
|
||||||
|
Address name and phone lines now have their own classes
|
||||||
|
(`.bbk-address-lines-name`, `.bbk-address-lines-phone`).
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Default checkout copy: cart button is now "Ταμείο" / "Checkout", and the
|
||||||
|
final order button "Ολοκλήρωση αγοράς" / "Complete purchase".
|
||||||
|
|
||||||
|
## [0.31.2] - 2026-11-03
|
||||||
|
### Changed
|
||||||
|
- Cart line remove button now uses a trash bin icon instead of `×`. Themes
|
||||||
|
can swap it via the new `--bbk-icon-remove` custom property, e.g.
|
||||||
|
`:root { --bbk-icon-remove: url("/images/icons/bin.svg"); }`.
|
||||||
|
|
||||||
|
## [0.31.1] - 2026-10-19
|
||||||
|
### Added
|
||||||
|
- `storefront.search.view_all` translation ("View all :count results" /
|
||||||
|
"Δες όλα τα :count αποτελέσματα"), for a live search dropdown's link to
|
||||||
|
the full results.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Product search matches the start of words again:
|
||||||
|
`lunar:meilisearch:tune-product-search` turns Meilisearch's prefix
|
||||||
|
search back on, so "παπ" finds "Παπάκι" and "cli" finds "clicker". Live
|
||||||
|
search (results as you type, from 3 characters) needs this. Before, a
|
||||||
|
query only matched whole words.
|
||||||
|
- Typo tolerance on product search is now one typo from 10 and two from 16
|
||||||
|
(was 8 / 12). Meilisearch counts Greek words about double, so under the
|
||||||
|
old setting a 6-letter Greek word already got two typos. With prefix
|
||||||
|
search on, that matched almost anything ("κατανα" → 179 products, now
|
||||||
|
9). Greek words now get one typo from 5 letters and two from 8; Latin
|
||||||
|
ones from 10 and 16. The app's entrypoint runs the command on every
|
||||||
|
boot, so the settings apply on the next deploy.
|
||||||
|
|
||||||
## [0.31.0] - 2026-10-01
|
## [0.31.0] - 2026-10-01
|
||||||
### Added
|
### Added
|
||||||
- A "Create voucher" button on Carrier Vouchers, for a parcel that isn't a
|
- A "Create voucher" button on Carrier Vouchers, for a parcel that isn't a
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "boboko/core",
|
"name": "boboko/core",
|
||||||
"description": "Core module — authentication and shared panel behaviour",
|
"description": "Core module — authentication and shared panel behaviour",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"version": "0.31.0",
|
"version": "0.31.3",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Modules\\Core\\": "src/"
|
"Modules\\Core\\": "src/"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@boboko/core",
|
"name": "@boboko/core",
|
||||||
"version": "0.31.0",
|
"version": "0.31.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",
|
"description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",
|
||||||
|
|||||||
@@ -58,6 +58,18 @@
|
|||||||
--bbk-radius: 8px;
|
--bbk-radius: 8px;
|
||||||
--bbk-radius-sm: 4px;
|
--bbk-radius-sm: 4px;
|
||||||
--bbk-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
|
--bbk-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
|
||||||
|
|
||||||
|
/* Icons (.bbk-icon) are CSS masks filled with currentColor, so they
|
||||||
|
follow the element's colour (hover, theme). Swap one by pointing its
|
||||||
|
variable at any single-colour SVG — the shape is what counts, not its
|
||||||
|
fill:
|
||||||
|
|
||||||
|
:root { --bbk-icon-remove: url("/images/icons/bin.svg"); }
|
||||||
|
*/
|
||||||
|
--bbk-icon-remove: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6'/%3E%3C/svg%3E");
|
||||||
|
--bbk-icon-shipping: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.75'/%3E%3Ccircle cx='17' cy='17.5' r='1.75'/%3E%3C/svg%3E");
|
||||||
|
--bbk-icon-billing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18l-2.33-1.5L14.33 21 12 19.5 9.67 21l-2.34-1.5L5 21z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
|
||||||
|
--bbk-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h3.5l1.5 4.5-2.25 1.5a11 11 0 0 0 7.25 7.25L16.5 14l4.5 1.5V19a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart[hidden] { display: none; }
|
.bbk-cart[hidden] { display: none; }
|
||||||
@@ -159,6 +171,24 @@
|
|||||||
.bbk-cart-heading:focus,
|
.bbk-cart-heading:focus,
|
||||||
.bbk-checkout-summary-heading:focus { outline: none; }
|
.bbk-checkout-summary-heading:focus { outline: none; }
|
||||||
|
|
||||||
|
/* Generic masked icon: `<span class="bbk-icon bbk-icon--NAME" aria-hidden="true">`.
|
||||||
|
Sized in em so it scales with the surrounding text; the shape comes from
|
||||||
|
the matching --bbk-icon-NAME variable on :root. */
|
||||||
|
.bbk-icon {
|
||||||
|
display: inline-block;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: 1.25em;
|
||||||
|
height: 1.25em;
|
||||||
|
background-color: currentColor;
|
||||||
|
-webkit-mask: var(--bbk-icon) center / contain no-repeat;
|
||||||
|
mask: var(--bbk-icon) center / contain no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-icon--remove { --bbk-icon: var(--bbk-icon-remove); }
|
||||||
|
.bbk-icon--shipping { --bbk-icon: var(--bbk-icon-shipping); }
|
||||||
|
.bbk-icon--billing { --bbk-icon: var(--bbk-icon-billing); }
|
||||||
|
.bbk-icon--phone { --bbk-icon: var(--bbk-icon-phone); }
|
||||||
|
|
||||||
.bbk-visually-hidden {
|
.bbk-visually-hidden {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
@@ -279,7 +309,6 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
|
|||||||
negative margins so the glyph lines up with the title's first line instead
|
negative margins so the glyph lines up with the title's first line instead
|
||||||
of pushing the row taller. */
|
of pushing the row taller. */
|
||||||
.bbk-cart-item-remove {
|
.bbk-cart-item-remove {
|
||||||
font-size: 1.75rem;
|
|
||||||
width: 2.5rem;
|
width: 2.5rem;
|
||||||
height: 2.5rem;
|
height: 2.5rem;
|
||||||
margin: -0.5rem -0.5rem 0 0;
|
margin: -0.5rem -0.5rem 0 0;
|
||||||
@@ -291,6 +320,8 @@ a.bbk-cart-item-title:hover { text-decoration: underline; }
|
|||||||
|
|
||||||
.bbk-cart-item-remove:hover { background: var(--bbk-color-bg-muted); }
|
.bbk-cart-item-remove:hover { background: var(--bbk-color-bg-muted); }
|
||||||
|
|
||||||
|
.bbk-cart-item-remove-icon { width: 1.25rem; height: 1.25rem; }
|
||||||
|
|
||||||
.bbk-cart-qty {
|
.bbk-cart-qty {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1042,6 +1073,12 @@ textarea.bbk-field-input { resize: vertical; }
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bbk-confirmation-address-heading {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Store-authored rich text (ManageStoreDetails' RichEditor) — may be
|
/* Store-authored rich text (ManageStoreDetails' RichEditor) — may be
|
||||||
paragraphs, bold text or a bank/IBAN/BIC table. */
|
paragraphs, bold text or a bank/IBAN/BIC table. */
|
||||||
.bbk-confirmation-bank-transfer-body {
|
.bbk-confirmation-bank-transfer-body {
|
||||||
@@ -1071,5 +1108,14 @@ textarea.bbk-field-input { resize: vertical; }
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.125rem;
|
gap: 0.125rem;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-address-lines-name { font-weight: 600; }
|
||||||
|
|
||||||
|
.bbk-address-lines-phone {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.375rem;
|
||||||
|
margin-top: 0.25rem;
|
||||||
color: var(--bbk-color-muted);
|
color: var(--bbk-color-muted);
|
||||||
}
|
}
|
||||||
@@ -5,11 +5,17 @@
|
|||||||
@props(['address'])
|
@props(['address'])
|
||||||
|
|
||||||
<address class="bbk-address-lines">
|
<address class="bbk-address-lines">
|
||||||
<span>{{ trim(($address->first_name ?? '') . ' ' . ($address->last_name ?? '')) }}</span>
|
<span class="bbk-address-lines-name">{{ trim(($address->first_name ?? '') . ' ' . ($address->last_name ?? '')) }}</span>
|
||||||
@if ($address->company_name)<span>{{ $address->company_name }}</span>@endif
|
@if ($address->company_name)<span>{{ $address->company_name }}</span>@endif
|
||||||
<span>{{ $address->line_one }}</span>
|
<span>{{ $address->line_one }}</span>
|
||||||
@if ($address->line_two)<span>{{ $address->line_two }}</span>@endif
|
@if ($address->line_two)<span>{{ $address->line_two }}</span>@endif
|
||||||
<span>{{ trim(($address->postcode ?? '') . ' ' . ($address->city ?? '')) }}</span>
|
<span>{{ trim(($address->postcode ?? '') . ' ' . ($address->city ?? '')) }}</span>
|
||||||
@if ($address->state)<span>{{ $address->state }}</span>@endif
|
@if ($address->state)<span>{{ $address->state }}</span>@endif
|
||||||
@if ($address->contact_phone)<span>{{ $address->contact_phone }}</span>@endif
|
@if ($address->contact_phone)
|
||||||
|
<span class="bbk-address-lines-phone">
|
||||||
|
<span class="bbk-icon bbk-icon--phone" aria-hidden="true"></span>
|
||||||
|
<span class="bbk-visually-hidden">{{ __('checkout.page.phone') }}:</span>
|
||||||
|
{{ $address->contact_phone }}
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
</address>
|
</address>
|
||||||
@@ -138,14 +138,20 @@
|
|||||||
<div class="bbk-confirmation-section bbk-confirmation-addresses">
|
<div class="bbk-confirmation-section bbk-confirmation-addresses">
|
||||||
@if ($order->shippingAddress)
|
@if ($order->shippingAddress)
|
||||||
<section class="bbk-confirmation-address" aria-labelledby="bbk-confirmation-shipping-heading">
|
<section class="bbk-confirmation-address" aria-labelledby="bbk-confirmation-shipping-heading">
|
||||||
<h2 class="bbk-confirmation-address-heading" id="bbk-confirmation-shipping-heading">{{ __('checkout.page.confirmation_shipping_to') }}</h2>
|
<h2 class="bbk-confirmation-address-heading" id="bbk-confirmation-shipping-heading">
|
||||||
|
<span class="bbk-icon bbk-icon--shipping" aria-hidden="true"></span>
|
||||||
|
{{ __('checkout.page.confirmation_shipping_to') }}
|
||||||
|
</h2>
|
||||||
<x-checkout::address-lines :address="$order->shippingAddress" />
|
<x-checkout::address-lines :address="$order->shippingAddress" />
|
||||||
</section>
|
</section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($order->billingAddress)
|
@if ($order->billingAddress)
|
||||||
<section class="bbk-confirmation-address" aria-labelledby="bbk-confirmation-billing-heading">
|
<section class="bbk-confirmation-address" aria-labelledby="bbk-confirmation-billing-heading">
|
||||||
<h2 class="bbk-confirmation-address-heading" id="bbk-confirmation-billing-heading">{{ __('checkout.page.confirmation_billing') }}</h2>
|
<h2 class="bbk-confirmation-address-heading" id="bbk-confirmation-billing-heading">
|
||||||
|
<span class="bbk-icon bbk-icon--billing" aria-hidden="true"></span>
|
||||||
|
{{ __('checkout.page.confirmation_billing') }}
|
||||||
|
</h2>
|
||||||
<x-checkout::address-lines :address="$order->billingAddress" />
|
<x-checkout::address-lines :address="$order->billingAddress" />
|
||||||
</section>
|
</section>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
class="bbk-cart-item-remove"
|
class="bbk-cart-item-remove"
|
||||||
aria-label="{{ __('checkout.cart.remove') }}"
|
aria-label="{{ __('checkout.cart.remove') }}"
|
||||||
aria-describedby="bbk-cart-item-title-{{ $line->id }}"
|
aria-describedby="bbk-cart-item-title-{{ $line->id }}"
|
||||||
><span aria-hidden="true">×</span></button>
|
>{{-- Icon drawn by CSS (--bbk-icon-remove) so themes can swap it. --}}<span class="bbk-icon bbk-icon--remove bbk-cart-item-remove-icon" aria-hidden="true"></span></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class CheckoutTranslationsSeeder extends Seeder
|
|||||||
'cart.shipping_pending' => ['Not selected yet', 'Δεν έχει επιλεγεί ακόμη'],
|
'cart.shipping_pending' => ['Not selected yet', 'Δεν έχει επιλεγεί ακόμη'],
|
||||||
'cart.tax' => ['VAT', 'ΦΠΑ'],
|
'cart.tax' => ['VAT', 'ΦΠΑ'],
|
||||||
'cart.total' => ['Total', 'Σύνολο'],
|
'cart.total' => ['Total', 'Σύνολο'],
|
||||||
'cart.checkout' => ['Checkout', 'Ολοκλήρωση παραγγελίας'],
|
'cart.checkout' => ['Checkout', 'Ταμείο'],
|
||||||
'cart.coupon_label' => ['Coupon code', 'Κωδικός κουπονιού'],
|
'cart.coupon_label' => ['Coupon code', 'Κωδικός κουπονιού'],
|
||||||
'cart.coupon_placeholder' => ['Coupon code', 'Κωδικός κουπονιού'],
|
'cart.coupon_placeholder' => ['Coupon code', 'Κωδικός κουπονιού'],
|
||||||
'cart.coupon_apply' => ['Apply', 'Εφαρμογή'],
|
'cart.coupon_apply' => ['Apply', 'Εφαρμογή'],
|
||||||
@@ -153,7 +153,7 @@ class CheckoutTranslationsSeeder extends Seeder
|
|||||||
"You have a 14-day right of withdrawal. <a href=':link' target='_blank'>See details</a>.",
|
"You have a 14-day right of withdrawal. <a href=':link' target='_blank'>See details</a>.",
|
||||||
"Έχεις δικαίωμα υπαναχώρησης εντός 14 ημερών. <a href=':link' target='_blank'>Δες λεπτομέρειες</a>.",
|
"Έχεις δικαίωμα υπαναχώρησης εντός 14 ημερών. <a href=':link' target='_blank'>Δες λεπτομέρειες</a>.",
|
||||||
],
|
],
|
||||||
'page.place_order' => ['Place order — payment obligation', 'Παραγγελία με υποχρέωση πληρωμής'],
|
'page.place_order' => ['Complete purchase', 'Ολοκλήρωση αγοράς'],
|
||||||
'page.choose_payment_method' => ['Choose a payment method.', 'Επίλεξε τρόπο πληρωμής.'],
|
'page.choose_payment_method' => ['Choose a payment method.', 'Επίλεξε τρόπο πληρωμής.'],
|
||||||
'page.shipping_method_required' => [
|
'page.shipping_method_required' => [
|
||||||
'Choose a shipping method below to continue.',
|
'Choose a shipping method below to continue.',
|
||||||
|
|||||||
@@ -10,33 +10,31 @@ use Lunar\Models\Product;
|
|||||||
/**
|
/**
|
||||||
* lunarphp/meilisearch's own `lunar:meilisearch:setup` only pushes
|
* lunarphp/meilisearch's own `lunar:meilisearch:setup` only pushes
|
||||||
* filterableAttributes/sortableAttributes (see MeilisearchSetup::handle())
|
* filterableAttributes/sortableAttributes (see MeilisearchSetup::handle())
|
||||||
* — it has no notion of typo tolerance or prefix search, and Meilisearch's
|
* — it has no notion of typo tolerance or prefix search. This tunes both
|
||||||
* defaults for both are loose enough to produce bad matches on short Greek
|
* on the product index; run it after `lunar:meilisearch:setup` (the app's
|
||||||
* words. Confirmed via showMatchesPosition that a query for "Κάπτεν" was
|
* entrypoint runs it on every boot).
|
||||||
* matching "κανένας" purely through prefixSearch's default 'indexingTime'
|
|
||||||
* behavior (their edit distance is far past anything typo tolerance would
|
|
||||||
* bridge) — fixed by disabling prefix search below, verified afterward with
|
|
||||||
* "Super"/"Superheroes"-style prefix probes returning no results for a
|
|
||||||
* partial word. minWordSizeForTypos is tightened defensively alongside it
|
|
||||||
* so short words in general get less typo-tolerant fuzzing, even though a
|
|
||||||
* separate short-word collision case ("Κάπτεν" vs "κάποτε", high letter
|
|
||||||
* overlap despite real edit distance) persisted after both settings were
|
|
||||||
* confirmed live and wasn't fully root-caused — treated as a known,
|
|
||||||
* narrow edge case rather than a blocker. Run this after
|
|
||||||
* `lunar:meilisearch:setup`, whenever Product's index needs
|
|
||||||
* (re)provisioning.
|
|
||||||
*
|
*
|
||||||
* Disabling prefix search here is a deliberate tradeoff: it also turns off
|
* Typo tolerance: one typo only from 10, two from 16. Meilisearch measures
|
||||||
* legitimate partial-word matching (typing "car" matching "cart" before
|
* these thresholds so that Greek words count about double (verified
|
||||||
* you finish the word) — useful for a future autocomplete/search-as-you-
|
* 2026-10-19: with the old 8/12, the 6-letter "μπαλόκ" still matched
|
||||||
* type UI. If that's built later, re-enable prefixSearch deliberately then,
|
* "μπρελόκ" with two typos, while 7-letter Latin words got none). Combined
|
||||||
* informed by real UX needs, rather than leaving it on by accident today.
|
* with prefix search, that let short Greek queries match almost anything
|
||||||
|
* ("κατανα" → 179 products, "Κάπτεν" → "Μπανάνα Κατάνα"). At 10/16 a Greek
|
||||||
|
* word gets one typo from 5 letters and two from 8 ("κατανα" → 9,
|
||||||
|
* "Κάπτεν" → 1); Latin words from 10 and 16 letters.
|
||||||
|
*
|
||||||
|
* Prefix search is ON (`indexingTime`, Meilisearch's default): the last
|
||||||
|
* word of a query also matches words starting with it, so "παπ" finds
|
||||||
|
* "Παπάκι" and "cli" finds "clicker" — what the storefront's live search
|
||||||
|
* needs as the shopper types (3+ characters). It had been disabled before
|
||||||
|
* live search existed, while the loose Greek typo matching above was
|
||||||
|
* being traced.
|
||||||
*/
|
*/
|
||||||
class TuneProductSearchCommand extends Command
|
class TuneProductSearchCommand extends Command
|
||||||
{
|
{
|
||||||
protected $signature = 'lunar:meilisearch:tune-product-search';
|
protected $signature = 'lunar:meilisearch:tune-product-search';
|
||||||
|
|
||||||
protected $description = 'Tighten typo-tolerance and disable prefix search on the product search index';
|
protected $description = 'Tighten typo tolerance and enable prefix search on the product search index';
|
||||||
|
|
||||||
public function handle(EngineManager $engineManager): void
|
public function handle(EngineManager $engineManager): void
|
||||||
{
|
{
|
||||||
@@ -49,16 +47,16 @@ class TuneProductSearchCommand extends Command
|
|||||||
|
|
||||||
$task = $index->updateTypoTolerance([
|
$task = $index->updateTypoTolerance([
|
||||||
'minWordSizeForTypos' => [
|
'minWordSizeForTypos' => [
|
||||||
'oneTypo' => 8,
|
'oneTypo' => 10,
|
||||||
'twoTypos' => 12,
|
'twoTypos' => 16,
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$engine->waitForTask($task['taskUid']);
|
$engine->waitForTask($task['taskUid']);
|
||||||
|
|
||||||
$this->components->info('Disabling prefix search for product search...');
|
$this->components->info('Enabling prefix search for product search...');
|
||||||
|
|
||||||
$task = $index->updatePrefixSearch('disabled');
|
$task = $index->updatePrefixSearch('indexingTime');
|
||||||
|
|
||||||
$engine->waitForTask($task['taskUid']);
|
$engine->waitForTask($task['taskUid']);
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,11 @@ class StorefrontTranslationsSeeder extends Seeder
|
|||||||
// ── Search ──────────────────────────────────────────────────
|
// ── Search ──────────────────────────────────────────────────
|
||||||
'search.placeholder' => ['Search products…', 'Αναζήτηση προϊόντων…'],
|
'search.placeholder' => ['Search products…', 'Αναζήτηση προϊόντων…'],
|
||||||
'search.results_for' => ['Search results for ', 'Αποτελέσματα αναζήτησης για '],
|
'search.results_for' => ['Search results for ', 'Αποτελέσματα αναζήτησης για '],
|
||||||
|
// Live search: the link under the suggestions to the full results page.
|
||||||
|
'search.view_all' => [
|
||||||
|
'{1} View :count result|[2,*] View all :count results',
|
||||||
|
'{1} Δες :count αποτέλεσμα|[2,*] Δες όλα τα :count αποτελέσματα',
|
||||||
|
],
|
||||||
|
|
||||||
'customer_reviews' => [
|
'customer_reviews' => [
|
||||||
'{0} No customer reviews|{1} :count customer review|[2,*] :count customer reviews',
|
'{0} No customer reviews|{1} :count customer review|[2,*] :count customer reviews',
|
||||||
|
|||||||
Reference in new issue
Block a user