Appearance
<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /changelog/Changelog.4.125.md for this page in Markdown format</div>
Version 4
version 4.125
- [4.125.0] feat(rest/product):
filter[priceDrop]=1|0onGET /rest/product/productkeeps the products with a genuine Omnibus price drop (or all the others), using the same rules as the verdict the storefront and the price-tracking graph display, so a headless client can offer a yes/no "Discount" facet (#876) - [4.125.0] fix(checkout): confirming or cancelling the same PENDING order twice at once no longer runs the side effects twice — the PENDING -> PAID and PENDING -> CANCELED transitions are now a single conditional write, and only the call whose write changed the order dispatches
OrderPaid/OrderCanceledor restores stock. A confirm racing a gateway signal no longer sends a second confirmation email, fires the ERP webhook twice or decrements gift stock twice, and overlapping cancels no longer restore stock twice. A cancel whose stock release fails now rolls back and leaves the order PENDING instead of leaving it CANCELED with its stock never returned (#880) - [4.125.0] fix(price-tracking): the Omnibus price-drop verdict (
GET /rest/product/price-tracking/graph, the storefront «Πτώση Τιμής» badge and the headless app) is now built on the real selling price instead of the newest tracked row, so a stale or stopped price-tracking feed can hide a price-drop claim but no longer invent one (#876) - [4.125.0] feat(rest/auth):
POST /rest/auth/customer/logoutandPOST /rest/auth/admin/logoutrevoke the presented refresh token; idempotent, always200, no access token needed (Advisable-com/ecommercen#790) - [4.125.0] fix(customer): the storefront change-password form no longer reports "password updated" when the write failed: it shows the generic "try again" message and the form again (Advisable-com/ecommercen#873)
- [4.125.0] fix(customer): a password reset (REST
reset-passwordand the storefront reset form) and a password change on the storefront account page now revoke every REST refresh token the customer holds, ending their other sessions (Advisable-com/ecommercen#790) - [4.125.0] fix(rest/checkout): promotional gifts are awarded as the WeCare storefront awards them.
gift_user_choice_countis the number of DISTINCT pool products the customer receives:0, or a count at or above the in-stock pool, awards the whole pool automatically; otherwise the customer must pick exactly that many distinct pool products, and any other selection (none, too few, too many, a duplicate, a product outside the in-stock pool) is refused with 422gift_selection_invalidonPOST /rest/checkout/place-orderinstead of being trimmed; when a collection order is also under the collection minimum,collection_below_minimumis reported first. Every awarded product is given at the EARNED count (earned 2 → 2 of each), capped so the units awarded never exceed the gift's remaining stock; a gift too low on stock to give each product one unit is not awarded or listed.POST /rest/checkout/totalsquotes the same award and lists refused selections asinvalidGiftSelections;GET /rest/cartgiftspublishesselectCount,quantityPerProductandautoAwards, andgiftsNearMisspublishesselectCount(Advisable-com/ecommercen#761) - [4.125.0] fix(checkout/vivawallet):
POST /rest/checkout/confirm-payment/{orderId}now counts Viva BitPay (42) and Payconiq (58) charges as payments. The #865 charge allow-list had missed both. They failed closed, so a paid order by either method stayedPENDING. Pay On Delivery (68) stays excluded on purpose: the money is not in at placement (#865) - [4.125.0] fix(domains): locale-scoped translation filters (
filter[name.{lang}],filter[slug.{lang}]and every othertranslationskey a ListRequest declares) now filter on all 19 list endpoints that used to answer 500 for them:product/promo,product/tag,product/tag-category,product/line,product/attribute,product/attribute-group,product/variation,product/variation-group,product/variation-value,product/badge,product/supplier,product/related-group,cms/offer,cms/offer-category,event/event,event/event-category,order/store,promotion/gift,transporter.BuildsFilterSpecifications::filterSpecification()now routes everytranslationsfilter through one sharedSupport\Repository\Specification\FilterByTranslationsubquery, built from the repository's owntranslationsrelation, so a domain no longer needs its own specification class (Advisable-com/ecommercen#762) - [4.125.0] fix(domains): a read whose SQL the database rejects now throws a typed
QueryFailedExceptionthat is logged with the driver's error and the statement (its literal values replaced by?, so no email, token or id reaches the log), instead of dying incount_all_results()withCall to a member function num_rows() on bool. A rejectedmatch()/get()no longer reads as "no rows" (an empty list, or a 404 on/itemand/{id}) (Advisable-com/ecommercen#763) - [4.125.0] fix(eshop): a gift rule whose reward pool is empty is no longer shown as earned — a rule that never had any
gift_choicesrows slipped pastAdv_gifts_model::filterApplicableGiftRules()(only a pool emptied by stock was dropped), so the cart announced a gift that checkout, which already skips an empty pool, never awarded. Rule 13 (cheapest required product free) is unchanged (#686) - [4.125.0] feat(rest/order):
pbbExpiresAtonGET /rest/order/order(index,/item,/{id}) — the deadline of a Pay by Bank payment code, computed by the same rule theCancelIncompleteOrdersjob enforces (entry_datetime+PAY_BY_BANK/EXPIRATION, 24 h fallback), now one class,Advisable\Domains\Checkout\Payment\PayByBankExpiration, that the job delegates to (#870) - [4.125.0] fix(paybybank): every
PayByBank\Configconstruction (modern place-order and polling,Factories::payByBank(), the legacy status job, admin order creation and order-model cancellation) takes its expiration fromPayByBankExpiration::secondsFrom(), so the gateway'spayment_code_life, the cancellation job andpbbExpiresAtshare one validated value; the storefront's Pay by Bank success view and order-created mail still compute their hours from the raw setting (follow-up; client forks override those views) (#870) - [4.125.0] fix(checkout/vivawallet):
POST /rest/checkout/confirm-payment/{orderId}now verifies avivawalletorder server-side by the order code stored at placement (Viva merchantGET /api/transactions/?ordercode=), so a paid order confirms without the client forwarding Viva's transaction id; thetransactionIdrequest field is removed. The order is confirmed only when a returned transaction names the stored order code, is completed (F), is a charge type and matches the order total. A missingMERCHANT_ID/API_KEYfails closed:vivawalletis not advertised bypayment-methods, is refused byplace-order, andconfirm-paymentanswersconfirmed: false(#865) - [4.125.0] fix(checkout):
POST /rest/checkout/place-orderrefuses a payway with no registered adapter with 422payway_not_availablebefore anything is written, instead of writing the order and answering 400 (#865) - [4.125.0] fix(domains): translation updates no longer delete and re-insert
_muirows. In all 38 modern domains,WriteService::update()now upserts each sent language in place by (fk, lang): a sent language keeps its row id and only the sent fields change (an explicit null is written); a language not sent is kept; a new language is added as one row; duplicate languages in one payload are merged (later wins);translations: []changes nothing. Update can no longer remove a language. (Advisable-com/ecommercen#857) - [4.125.0] feat(checkout): collection at a store on REST — place-order and totals take a
storeIdand write the order as the storefront's ORDER_ADDRESS_ESHOP (no courier, no shipping, blankshipping_*), under one CollectionPolicy that refuses a store with a courier, an unknown or inactive store, cash on delivery collected, pay-at-store without a store, and a cart under the merchant's minimum; the minimum is published onGET /rest/storefront-config(#853) - [4.125.0] fix(checkout):
POST /rest/checkout/shippingno longer prices every courier at 0 for pay-at-store — collection is astoreId, never a courier (#853) - [4.125.0] fix(checkout): REST orders carry the storefront's initial
sms_status, so a collection order gets its "ready for pickup" SMS (#853) - [4.125.0] fix(checkout): read a transporter's
DELIVERY_OPTION_TYPEas the storefront does — no row or an empty value is home delivery only, and a SmartPoint carrier needs a pickup point only for0/2— soPOST /rest/checkout/shippingstops demanding a locker for a carrier the merchant never configured for points (GTV2 on WeCare); DHL and ASAP always require their carrier data, which is not a pickup point (#852) - [4.125.0] fix(rest/product): variation group names (
product_variations_mui) are now keyed by the variation's own group, not by the variation id.DELETE rest/product/variation/{id}no longer deletes anyproduct_variations_muirows (it used to delete the rows of the group whose id equalled the variation id), andPOST rest/product/variation/POST rest/product/variation/{id}withtranslationsnow write the variation's own group name (they used to write the group whose id equalled the variation id) (Advisable-com/ecommercen#864) - [4.125.0] fix(mcp): the MCP connector now negotiates
protocolVersiononinitialize— a supported requested version (2024-11-05,2025-03-26,2025-06-18,2025-11-25) is echoed back, anything else gets the latest (2025-11-25), instead of always answering2025-11-25(#861) - [4.125.0] feat(rest/product): the storefront's own "Top Sellers" on
GET /rest/product/product—sort=sales,filter[topSeller]and anisTopSellerfield, all from one definition of the ranking the storefront badges «Top Seller» (order lines per product in thetmp_shop_order_basketwindow);hitscounts page views and is not that ranking (#854) - [4.125.0] feat(rest/customer):
DELETE /rest/customer/me— a signed-in customer deletes their own account (password-confirmed, throttled); required by the app stores for any app that lets people create an account (Advisable-com/ecommercen#855) - [4.125.0] fix(customer): deleting or sanitising a customer now erases their personal data everywhere — every entry point (storefront "delete my account", admin sanitise, the guest-sanitising job, REST) runs one complete erasure; the legacy sanitiser left reviews, marketing consents, contact messages, the message log, segment memberships, marketplace and gift-card buyer data, REST sessions, audit payloads and postal/region/county data behind (Advisable-com/ecommercen#855)
- [4.125.0] fix(audit): request bodies no longer store secrets — passwords, tokens and card codes are masked before they reach
user_audit_logs.params, and a one-time patcher masks the rows already written (Advisable-com/ecommercen#855)
Notes
- [4.125.0] REQUIRES
php migrator.php migrate:20261003120000_create_product_price_drop.php— createsproduct_price_drop, the persisted Omnibus price-drop verdict behindfilter[priceDrop](#876)20260929120000_redact_audit_log_secrets.php— runsPatches\RedactAuditLogSecrets, which masks secret-looking keys in existinguser_audit_logs.paramsrows, a page at a time (#855)
- [4.125.0] Check for overrides:
Advisable\Domains\Product\PriceTracking\Jobs\TrackPrices::__construct()gains requiredPriceDropRefresherandCurrentPricearguments, andGraphService::productPricesBulk()gains an optional second argument; a fork that extends or re-declares either, or the Productcontainer.phpPriceTracking block, must follow. - [4.125.0] Check for overrides: the 3600-second freshness window is the constant
PriceDropStore::FRESH_FOR_SECONDS, chosen for the modernTrackPricesjob running every 5 minutes. A fork that schedulesTrackPricesless often than hourly (for example every 6 hours) gets an EMPTYfilter[priceDrop]=1most of the time, and=0returns the whole catalogue; raise the constant (overridePriceDropStoreand theFilterByPriceDropargument) or schedule the job at least hourly. - [4.125.0] Check for overrides: the filter only works where the MODERN
TrackPricesjob is scheduled. Forks still on the legacyAdvTrackPricesjob never fillproduct_price_drop, sofilter[priceDrop]=1returns nothing and=0returns everything until they move to the modern job. - [4.125.0] Check for overrides:
TrackPricesnow pagesshop_productwith an explicitORDER BY id ASC(LIMIT/OFFSET needs a stable order), which changes the recording loop's query; a fork overriding the job's paging must keep a stable order. - [4.125.0] UI Update: the stored verdict is computed with the product's default VAT rate and no viewer context, so on forks with
enableOrderVatManipulationthe filter can list a product whose badge is hidden for a particular viewer. - [4.125.0] UI Update: send
filter[priceDrop]=1for the discounted set and=0for the rest; readpagination.totalfor the facet count (it composes with the other filters). The set is empty right after deploy until the price-tracking job has run once (within 5 minutes), and empties if that job stops for an hour. - [4.125.0] UI Update: REST contract note 1.105.
POST /rest/checkout/confirm-payment/{orderId}andPOST /rest/checkout/cancel-payment/{orderId}answer a call that lost a race to another confirmation or cancellation with the same shape they already use for an order that was settled before the call:confirmed: falsewithreason: already_paid(orinvalid_status), andcanceled: falsewithreason: already_canceled(orinvalid_status). Previously the loser answeredconfirmed: true/canceled: true. A client that treatsstatus: PAID(orCANCELED) in the response as the outcome needs no change; one that readsconfirmed/canceledas "I did it" should readstatusinstead. - [4.125.0] Check for overrides:
PaymentConfirmationService::confirmPayment()andcancelPayment()now returnAdvisable\Domains\Checkout\PaymentTransition(Applied,AlreadyApplied,Rejected) instead ofbool;isSettled()is true for the first two and matches the oldtrue. A fork that overrides either method, overrides the controller actionsRest\Checkout\Controllers\Checkout::confirmPayment()/cancelPayment()orRest\Order\Controllers\Order::cancel()(which now compare the result withPaymentTransition::Applied/AlreadyApplied/Rejectedinstead of using it as a bool), or calls the service methods and tests the result as a bool (if ($service->confirmPayment(...))is now always truthy), must adopt the enum.Order\Order\WriteServicegainstransitionStatus()andtransactional(), andOrder\Order\Repository\WriteRepositorygainstransitionStatus(); a fork that replaces either class through a DI alias must provide them. ThePaymentConfirmationServiceconstructor is unchanged. - [4.125.0] Check for overrides:
Advisable\Domains\Product\PriceTracking\GraphService::__construct()gains requiredPriceDropVerdictCalculatorandCurrentPricearguments, and its protected methods (productPricesFromChanges,loadChanges, the timeline and reference-price helpers) moved toPriceDropVerdictCalculator. A fork that extends or re-declaresGraphService, or the Productcontainer.phpPriceTracking block, must follow. - [4.125.0] UI Update:
shouldDisplayanddiscountPassare now false for a product whose newest tracked price differs from its real selling price, anddiscountPassrequires the reference price to be strictly above the real price;saveValueis measured against the real price and is STILL returned when the claim is hidden, so a client must show a saving or a price-drop badge only whendiscountPass(andshouldDisplay) is true, never on the presence ofsaveValue. The response shape is unchanged. A storefront that rendered a claim from the newest tracked row will stop doing so for those products, which is the intended fix. - [4.125.0] UI Update: REST contract note 1.103. New routes
POST /rest/auth/customer/logoutandPOST /rest/auth/admin/logout(and their locale twins), body{ "refresh_token": "…" }, response always200 { "message": "Logged out." }— also for an unknown, already-revoked, malformed or missing token;500only on a real database failure. A client should call it with its stored refresh token when the user signs out, and may retry it freely. An access token already issued stays valid until it expires; discard it locally. - [4.125.0] Behaviour change: a password reset, or a password change on the storefront account page, ends the customer's REST sessions — their refresh tokens are deleted, so an app or headless storefront is signed out when its access token expires (at most
JWT_ACCESS_TOKEN_EXPIRY, 1 hour by default) and the customer signs in again with the new password. The revocation runs before the password write: if it fails, the password is not changed (REST reset:500, the link stays valid; storefront forms: a generic "try again" message with the form again). A failed password write is reported the same way instead of as success, and a reset link consumed between the check and the write now gets the invalid-link answer (REST422{errors: {token: "Invalid token."}}; storefront: the invalid-link message) instead of "Password updated.".POST /rest/customer/me/passwordis unchanged and does not revoke: the customer holds a single refresh token, and it is the caller's. - [4.125.0] Check for overrides:
Adv_customer::update_my_password()andsetNewPasswordForm()now revoke REST sessions before the password write and showcustomer.password.recover.alert.errorwhen that fails (new protected helpersrevokeRestSessionsBeforePasswordWrite()/reportPasswordWriteFailure()); a client controller overriding either must do the same.Adv_customer_model::resetPassword()now reads the customer by the reset token, calls the new publicrevokeRestSessions()(which throwsRuntimeExceptionon a DB error) and only then writes the password; a clientCustomer_modeloverridingresetPassword()must revoke first itself to keep the guarantee.Advisable\Rest\Auth\RefreshTokenModelgainedrevoke().update_my_password()now writes through the newAdv_customer_model::updatePassword()(throwsRuntimeExceptionon a driver error; a zero-row write is not a failure) instead ofupdate_customer(); an override of the action must use it, or check the write itself, to keep the failure message. A fork whoseapplication/config/rest_routes.phpdiverges from its upstream merge base must add the four logout routes by hand (a fork whose copy is unmodified gets them from the 3-way merge):POST rest/auth/customer/logoutandPOST rest/auth/admin/logout, plus their(\w{2})/locale twins, otherwise logout answers404after the upstream merge. - [4.125.0] Not in scope: refresh-token rotation, hashing refresh tokens at rest (with an index on the lookup column) and multi-device sessions are follow-ups on #790;
refreshis unchanged. - [4.125.0] UI Update: REST contract note 1.102. BEHAVIOUR CHANGE: before this, REST capped the TOTAL gift units at the earned count, silently dropped picks beyond it, and awarded nothing for a multi-product pool without a selection. A client that posts one
selectedGiftsentry per product withqty= earned units, or relies on extra picks being dropped, must now send exactlyselectCountdistinct products per gift (renderselectCount, notgiftUserChoiceCount);qtyis ignored except thatqty <= 0withdraws the entry. Handle the new 422 code. DEPLOY ORDER: release the client build that readsselectCountfirst, deploy the backend the same day, and raise theAPP_UPDATEminimum version so builds that still cap picks atearnedCountare retired. This is BREAKING for those builds. The OpenAPI JSON is regenerated at the release cut. - [4.125.0] Stock: each awarded product is a basket row, and its quantity is the earned count CAPPED so that products awarded × quantity never exceeds
gifts.remaining(GiftChoicePolicy::quantityPerProduct()=min(earned, intdiv(remaining, N)), N = the whole in-stock pool when no choice is needed, else the number of picks; unlimited whenremainingis NULL). So the award fitsgifts.remainingat placement and the paid-order decrement (DecrementGiftStockOnPaidListener→Gift\Repository\WriteRepository::decrementRemaining(), guardedremaining >= units) can take it, and a limited promotion keeps counting down. A concurrent online order can still drainremainingbefore the paid confirmation (pre-existing, #203/#688); that fails in the customer's favour. A gift whose stock cannot give each product one unit is treated as EXHAUSTED: not awarded by /place-order or /totals, not listed inGET /rest/cartgifts, and never agift_selection_invalidrefusal (no selection could fix it). The same cap governs the cart, the quote and the order. LEGACY DIVERGENCE: the rendered storefront is unchanged — it caps only the earned count atremainingand gives it per posted product, so there units can exceedremainingandupdateCounter()drives it negative; REST now awards fewer units than the storefront whenever stock is that low. - [4.125.0] Check for overrides:
Adv_gifts_model::getGiftForProductsInCart()now also returnsgift_user_choice_countandremainingper gift. A fork overriding it without calling the parent loses those keys, and REST then treats every such gift as count0— the whole pool — with UNLIMITED stock (no cap), which can over-issue a limited gift.GiftMatcher::match()andPlaceOrderData::$selectedGifts/normalizeSelectedGifts()changed shape from[giftId => [productId => qty]]to[giftId => [productId, ...]], andGiftOutcomegained a third constructor argument (selectionViolations, defaulted). - [4.125.0] Check for overrides (views): WeCare's
checkoutProcessing.phppostsgiftCountToGiveper pool product, which is what REST now does. Upstream's defaultmain(anddefault) view posts 1 per product whenever the awarded pool holds more than one product (the earned count only for a single-product pool), so a fork on the upstream view keeps awarding 1 each on the rendered storefront while REST awards the earned count: the two channels diverge for multi-product awards with an earned count above 1. - [4.125.0] Check for overrides:
Advisable\Rest\Checkout\Controllers\Checkout::VIVA_CHARGE_TRANSACTION_TYPESgained 42 and 58. A fork that copies the list must add both. - [4.125.0] UI Update: REST contract note 1.101. The 19 endpoints above now return only the rows whose translation matches, where they used to answer 500.
Exactkeys match exactly,Partialkeys match a substring with%and_taken literally, and a{lang}key matches that locale only.product/related-group'sfilter[name]has no locale, so it matches in any locale. A query the database rejects is still a 500. On the generic list/show/item actions it now carries their{"success":false,"message":"Error retrieving entit…: Database <operation> query failed."}body. The redacted SQL and the driver error go to the log only, never into the response. - [4.125.0]
event/category: that route was reported as 404. It is really published asrest/event/event-category, which had the same 500 and is fixed here. - [4.125.0] Check for overrides: there are four additions and no signature changes. The shared
FilterByTranslationhandlesExactandPartialonly and throws\LogicExceptionfor any other filter type, and a newSupport\Repository\SqlRedactorredacts the logged SQL. The trait gainstranslationFilterSpecification(),BaseRepositorygainsrelationLocalKey()andlogQueryFailure(), andProduct\Variation\Repository\RepositoryoverridesrelationLocalKey()to anchor translations ongroup_id. A fork Service that overridesfilterSpecification()and does not handletranslationsitself should delegate totranslationFilterSpecification()instead ofoperatorFilterSpecification()for those filters. A fork repository that keys atranslationsrelation on a column other than its primary key, the way Variation does, must overriderelationLocalKey(). - [4.125.0] Per-domain
FilterByTranslationclasses are kept. The 19 existing domain classes and their Service overrides are unchanged, and client forks copy and reference them. - [4.125.0] UI Update: REST contract note 1.100. The
GET /rest/cartgiftsblock no longer lists a non-rule-13 gift rule with an empty reward pool, whether the pool was never filled or was emptied by stock. The legacy storefront cart's gifts payload (AdvCartResource::getGiftRules()) and the admin order editor's gift-rule list change the same way. What an order is awarded does not change. Headless clients that already filter out rules with an empty reward pool themselves now have a redundant filter; it is harmless and can be removed. - [4.125.0] Check for overrides: a fork overriding
Adv_gifts_model::filterApplicableGiftRules(), or copying its oldisset($availableGiftRule->choices[$productReqOptionType]) && count(...) < 1guard (theisset(...choices[1])form) elsewhere, must adopt the new predicate,count($availableGiftRule->choices[$productReqOptionType] ?? []) < 1, which also drops a rule with nogift_choicesrows (nochoiceskey at all); otherwise that rule is still shown as earned. - [4.125.0] Behaviour change: an unset, empty or non-numeric
PAY_BY_BANK/EXPIRATIONnow sendspayment_code_life=24(hours) to the Pay by Bank gateway instead of0on the REST place-order path — and on the legacy paths (storefront checkout viaFactories::payByBank(), the admin order-create hook, order-model cancellation,PayByBankGetStatus, and the gateway cancel insideCancelIncompleteOrders) it no longer throws aTypeErrorout ofPayByBank\Config'sintconstructor. A valid configured value sends exactly the same hours as before (seconds rounded up to whole hours, unchanged). Unusable values are not only unset, empty or non-numeric ones: free text such as "3 hours" used to be cast to(int) 3, so the REST place-order and polling paths sentpayment_code_life=1, and now sends 24; zero and negative values used to send 0 and now send 24 as well (therest_api_versionsentry says "non-positive"). - [4.125.0] Check for overrides: a fork overriding
getPayByBankSettings(),AdvFactories::payByBank(),AdvPayByBankGetStatus::payByBankFactory(),Adv_orders_admin::createAdminPayByBankOrder()or theAdv_order_modelPayByBank cancel block, and buildingPayByBank\Configitself, should passPayByBankExpiration::secondsFrom(<raw value>)as the expiration to stay aligned. - [4.125.0] UI Update: headless clients show a Pay by Bank order's payment-code deadline from
pbbExpiresAt— ISO 8601 with offset (e.g.2026-09-30T14:05:00+03:00), authenticated-only likepbbPaymentCode,nullunless the order ispaybybankwith a code issued, and present whatever thestatus. Read the deadline from it rather than re-deriving it fromentryDatetime: the window is the deployment'sPAY_BY_BANK/EXPIRATIONsetting, which clients cannot see. - [4.125.0] Check for overrides:
Advisable\Rest\Order\Controllers\Order::__construct()gains a requiredPayByBankExpiration $payByBankExpirationargument afterTrackingUrlResolver $trackingUrlResolver(wired by name insrc/Rest/Order/container.php) — a fork that redeclares the constructor or its container definition must pass it.AdvCancelIncompleteOrders::payByBankExpirationSeconds()keeps its signature and is still whatcancelPendingPayByBank()applies, so an override of it still wins; it now delegates to a new protectedpayByBankExpiration()factory, andorderEntryDate()parses throughAdvisable\Domains\Order\Order\EntryDatetime::parse()(same semantics, same log line). - [4.125.0] Check for overrides:
Advisable\Rest\Checkout\Controllers\Checkout— gainedprotected vivaOrderTransactions(Config): OrderTransactions(a test seam); the privateverifyWithGateway()andverifyVivaWalletPayment()lost their transaction-id parameter, andgatewayConfirms(),transactionBelongsToOrderCode()andamountConfirms()were removed in favour of a settlement check over Viva's transaction list. A fork that overridesCheckout, or copies those private methods, must reconcile with the new verification.confirmPayment()no longer reads the request body. - [4.125.0] Check for overrides:
Advisable\VivaWallet\Config—$recurringUrlrenamed to$transactionsUrl(same values) andhasMerchantCredentials()added;isConfigured()is unchanged. Any fork code reading$recurringUrlmust switch to$transactionsUrl. - [4.125.0] Check for overrides:
Advisable\Domains\Checkout\PlaceOrderService::placeOrder()gate 0 now also refuses a payway with no registered adapter (422payway_not_available, before any write), andPaymentInitializerFactory::registerVivaWallet()additionally requireshasMerchantCredentials(). A fork that overrides either must carry the new checks. - [4.125.0] UI Update: REST contract change for headless storefronts.
confirm-paymentno longer acceptstransactionId/transaction_id; a client that still sends it is ignored (same result as one that does not), so the Vivatreturn-URL parameter no longer needs to be forwarded.place-orderanswers 422payway_not_available(not 400) for a payway with no registered adapter. - [4.125.0] Deployment action — fail-closed, not backward compatible by default. A deployment that upgrades without
VIVAWALLET.MERCHANT_IDandVIVAWALLET.API_KEYset registers novivawalletadapter for the external channel:vivawalletsilently disappears fromGET /rest/checkout/payment-methods,place-orderrefuses it with422 payway_not_available, andconfirm-paymentanswersconfirmed: false— nothing is logged, it is simply a missing payway. To restore it, save the Viva merchant id and API key in admin under Payment settings → Viva Wallet (Merchant Id, Api key) — the same pair the Viva webhook verification already uses. There is no migration to run. The legacy storefront Viva path is unchanged. - [4.125.0] Why: delete + re-insert re-keyed every translation row on each update (breaking anything keyed on
_mui.id, e.g. client id-keyed bridges — see #863) and deleted omitted languages and columns. - [4.125.0] Side fix: a REST update by a non-ADVISABLE caller no longer blanks translation
slug/url/redirect_url(field protection strips them before the write). - [4.125.0] Side fix: an exception inside a write service's transaction now rolls back explicitly (previously a long-lived process such as the MCP server or a CLI job could keep a partial write).
- [4.125.0] Data: existing duplicate rows and already-damaged data are NOT repaired (#863 for the bridge; #698 for
UNIQUE(fk, lang)). - [4.125.0] Check for overrides:
MuiWriteRepository::replaceForEntity()is REMOVED in all 38 domains, replaced byupsertForEntity(int|string $entityId, array $translations, array $insertRows = [])($translations= present-only rows;$insertRows= the fulltoArray()rows used when a language is new, so a language added via update is stored exactly as create would store it). All 38…\Repository\MuiWriteRepositoryclasses now extend the new abstractAdvisable\Domains\Support\Repository\BaseMuiWriteRepository(properties$table,$foreignKey;insertForEntity/deleteForEntitysignatures are nowint|string). Every…\MuiWriteDatanow usesAdvisable\Domains\Support\Data\TracksPresentColumnsand must declarecolumnAliases().WriteService::parseMuiData()gained abool $presentOnly = falseparameter. Each WriteService also gained a privateparseMuiInsertRows()(private; context only, for forks that copy WriteService bodies).Advisable\Domains\Support\Repository\BaseWriteRepository::transactional()now catches anyThrowable, calls CI3trans_rollback()and rethrows (success path unchanged) — a fork overridingtransactional()or relying on an exception leaving the transaction open must re-check. A fork class extending any of these, or a fork DTO subclass, must be reconciled. Fork COPIES of integration tests:test_update_replaces_translationswas renamedtest_update_upserts_translations(now in ALL 38 domains) andtest_round_tripnow expects the unsent language to survive everywhere. Fork checkouts carrying copies oftests/Integration/Domains/**(Evaspharmacy, Evripidis, FastpassAdmin, Joypharmacy, Pharm16, SeajetsAdmin, Smile, Wecare; measured 2026-09-30) hold them byte-identical todevelop, so the upstream merge brings the rewritten tests with no conflict; only a fork that has edited its copy oftest_update_replaces_translations/test_round_tripneeds to reconcile it. Smile:custom/Translation/ProductTranslationWriter.phpstill works unchanged (it sends complete rows), but its docblock (:17-24) still describes delete + re-insert and should be corrected on the merge. - [4.125.0] UI Update: REST contract note 1.97 — behaviour change on every write endpoint accepting
translations; the OpenAPI descriptions are updated (regenerated at the release cut). A client that relied on omission or[]to delete a language has no replacement via update. - [4.125.0] Deployment note / UI Update — BREAKING for headless clients; ship the client release FIRST. After this deploys, a client that still treats
paid_at_storeas a payway on a courier order breaks at the QUOTE step, not only at the charge:POST /rest/checkout/totalsandPOST /rest/checkout/place-orderanswer 422payway_requires_storeforpaid_at_storewithout astoreId, andPOST /rest/checkout/shippingnow prices every courier normally forpaid_at_store(the #568 AC5 zeroing is reversed), so a client that read a €0 row there as "pay at the shop" now shows a courier price. Known affected: the WeCare app up to and including 1.4.0. Every client must sendstoreId(a store fromGET /rest/order/store?filter[active]=1, not atransportId) forpaid_at_store— and should gate pay-at-store / collection oncollection.minimumCartTotalfromGET /rest/storefront-config— in a release that is live before this ships. New 422error.codes on place-order and totals:store_and_transporter,store_not_available,payway_not_allowed_for_collection,payway_requires_store,collection_below_minimum(witherror.minimumCartTotal/error.cartTotal). No migration:store_idandsms_statusalready exist onshop_order, and the minimum is the existing registry key the admin already edits. - [4.125.0] Behaviour change — REST orders can now be texted.
shop_order.sms_statusis now written on EVERY REST order the storefront'ssetUpAdminOrderDataSmsValid()would set it on — not only collection orders: a REST courier order whose payway is listed in registrySMS/FOR_PAYWAYnow gets1(SMS-capable phone) or0, where before this change every REST order wasNULL. The order-SMS jobs gate on this column (AdvSendEmailAndSMSBasedOnSentStatusandAdvSendEmailAndSMSBasedOnFromStoreStatussend the SMS only whensms_status == 1), so a merchant withFOR_PAYWAYconfigured starts texting REST customers on those jobs' next run after deploy — the same messages its storefront orders already get. This is deliberate legacy parity. Check the SMS provider credentials and theFOR_PAYWAYselection on each deployment (staging especially) before deploying; an emptyFOR_PAYWAYkeeps REST courier ordersNULL, while collection orders are always evaluated, as on the storefront. - [4.125.0] Check for overrides:
Advisable\Domains\Checkout\PlaceOrderService::__construct()gains two REQUIRED arguments,CollectionPolicy $collectionPolicyandOrderSmsStatus $orderSmsStatus, afterCashOnDeliveryPolicy $cashOnDeliveryPolicyand before?Registry $registry; a fork that redeclares the constructor or instantiates the service by hand must pass them (the container autowires both).Advisable\Rest\Checkout\Controllers\Checkout::__construct()gains a trailing requiredCollectionPolicy $collectionPolicy.StorefrontConfigProvider::__construct()gains a trailing requiredCollectionConfigResolver $collection.ShippingCalculatordrops itspaid_at_storezeroing. InPlaceOrderService::placeOrder()the guest customer is now created after the cart's items and totals are read (step 2 moved below step 4), so a refusal that needs the cart still leaves no guest row. A fork that overridesplaceOrder()or builds its ownshop_orderrow does not get the newstore_id/sms_statuscolumns. - [4.125.0] Check for overrides: new
Advisable\Domains\Checkout\DeliveryOptionTypeholds the setting's vocabulary (SETTING_KEY,ALL,HOME_ONLY,PICKUP_ONLY,DEFAULT) and the storefront's reading of it.Advisable\Domains\Checkout\CashOnDeliveryPolicyloses the public constantsSETTING_DELIVERY_OPTION_TYPEandDELIVERY_OPTION_TYPE_SMART_POINT_ONLY— useDeliveryOptionType::SETTING_KEY/DeliveryOptionType::PICKUP_ONLY. - [4.125.0] UI Update:
POST /rest/checkout/shippingrows —deliveryOptionTypeis the PICKUP-POINT policy only and reads"1"for an unconfigured transporter (was"0");requiresCarrierDatais the one signal to collect carrier data (a pickup point, a DHL product code, an ASAP service) and is now always true for DHL and ASAP. A client showing a locker picker wheneverrequiresCarrierDatais true stops showing one for an unconfigured SmartPoint carrier.codAllowed, place-order and totals are unchanged. - [4.125.0] Cause:
product_variations_muiholds a variation group's name keyed bygroup_id. The modernVariation\WriteServiceused the variation id as that key, so updating or deleting variation N rewrote or deleted group N's name. - [4.125.0] Data note: rows already misplaced on live installs are NOT repaired by this change.
- [4.125.0] Check for overrides: no public or protected signatures changed; the only addition is a new private method
resolveGroupId()onAdvisable\Domains\Product\Variation\WriteService, so there is no compile impact. A fork overridingVariation\WriteService::delete()/create()/update(), or callingVariation\Repository\MuiWriteRepository::insertForEntity()/replaceForEntity()/deleteForEntity()with a variation id, should re-check it: that argument is the variation GROUP id. - [4.125.0] UI Update: REST contract note 1.94.
Variation.translationsis now documented in OpenAPI as the group's name, shared by all variations in the group. Behaviour changes are as in the entry above; the OpenAPI JSON is regenerated at the release cut. - [4.125.0] Check for overrides:
Advisable\Mcp\Server\McpServerFactory::create()— gained a trailing?\Mcp\Schema\Enum\ProtocolVersion $protocolVersion = nullparameter. A clientCustom\subclass overridingcreate()must add it and callsetProtocolVersion()or delegate toparent::create(); otherwise PHP fatals on the incompatible declaration, and the override would also skip negotiation. - [4.125.0] Check for overrides:
Advisable\Rest\Product\Controllers\Product::__construct()gains a requiredTopSellers $topSellersargument afterWriteService $writeService(wired by name insrc/Rest/Product/container.php) — a fork that redeclares the constructor or its container definition must pass it.Advisable\Rest\Support\Controllers\HandlesRestfulActionsgains a protected no-op hook,prepareForOutput(array $entities): void, called fromindex()andview()— a fork controller that overrides either wholesale bypasses it. - [4.125.0] UI Update: headless clients list best sellers with
filter[topSeller]=1&sort=-sales,id— the storefront's badged set (at most 500, fewer when fewer products sold) withpagination.totalas its real size; every product-endpoint row carriesisTopSellerfor a «Top Seller» badge (products embedded in other resources do not). Everything reads the windowcronjob updateTempOrderBasketTablebuilds: before it has run the set is empty and the sort is a no-op, exactly as the storefront shows no best sellers then. - [4.125.0] What erasure does, and why —
Advisable\Domains\Customer\Customer\Erasure\CustomerErasure, one step per data set, one transaction, fails loud (ErasureFailed) and nothing is reported deleted:- DELETED: product reviews (the product's stored rating is recomputed), the review-request log, wish-list, tags/campaigns, segment memberships, SMS-marketing consents, contact messages, the message log, the REST cart, REST refresh tokens, waiting-list requests, blog comments by the customer's address, staff notes about the customer and their orders.
- KEPT, every personal field cleared: orders, gift-card orders, marketplace orders and Skroutz invoice details (tax records; the billing/shipping country is kept for VAT), and the customer row itself (flagged
is_sanitized, unusable password, access revoked). - KEPT for security, identity and payload cleared: the customer's
REST_CUSTOMERaudit rows. - Personal columns become NULL (NOT NULL ones ''), the address a unique undeliverable placeholder — no longer random UUIDs, which did not fit the 20-character phone columns.
- [4.125.0] Completeness is enforced:
CustomerErasureCoverageTest(Database suite) reads the migrated schema and fails when a customer-linked column (a table withcustomer_id/user_id/mail/email) holds a personal-looking column that no erasure step claims andErasureCoverage::RETAINEDdoes not justify. A new table holding customer data must decide what account deletion does to it. - [4.125.0] Check for overrides:
Adv_sanitize_modellost its protected helpers (userSanitize,orderSanitize,wishListSanitize,reviewsSanitize,customersTagsSanitize,waitingListSanitize) andsanitizeAll()now delegates toCustomerErasureand throwsErasureFailedon failure. A clientSanitize_modeloverriding any helper must move that behaviour into an erasure step (rebindCustomerErasure's$stepsin the client container). A client-only table or column that holds customer data belongs in a client step or in the retained list. - [4.125.0] Check for overrides:
Advisable\Rest\Customer\Controllers\Customer::__construct()gainedAccountDeletionService $accountDeletionandLoginThrottle $throttle, wired insrc/Rest/Customer/container.php. - [4.125.0] Not in scope: the storefront route is still a GET with no confirmation (#846); it now erases completely, but its HTTP method and confirmation are a separate change.
- [4.125.0] UI Update: REST contract note 1.92. New route
DELETE /rest/customer/me(and its locale twin), customer auth, body{ "password": "…" }: 200{success, message}on deletion; 400 without a password; 401 on a wrong one; 429 withRetry-Afterafter repeated failures (the sign-in throttle's limits, own realm); 404 no such customer; 500 when the erasure did not complete (rolled back, nothing deleted). The client must discard its tokens on 200 — an access token already issued stays valid until it expires, but nothing can renew it.