Ligase 2.4.11 — handlingTime/transitTime @type fix + returnShippingFeesAmount
Post-2.4.10 Rich Results Test na makumi.eu wciąż flag'ował 3 ostatnie pola. Wszystkie naprawione.
Naprawione
handlingTime / transitTime: "Nieprawidłowy typ obiektu"
Field_Resolver budował te obiekty z paths offers.shippingDetails.deliveryTime.handlingTime.minValue itp., ale w _containers brakowało deklaracji że handlingTime/transitTime to QuantitativeValue. Wynik: walidator widział nietypowany StructuredValue zamiast QuantitativeValue.
Dodane do field-contract _containers:
deliveryTime→ShippingDeliveryTimehandlingTime→QuantitativeValuetransitTime→QuantitativeValuereturnShippingFeesAmount→MonetaryAmount
Plus dodane pola unitCode = DAY w handlingTime + transitTime (recommended przez schema.org dla jasności jednostki).
returnShippingFeesAmount: "Brakujące pole"
Gdy returnFees: ReturnShippingFees, Google chce wiedzieć ile klient zapłaci za zwrot. Dodane:
returnShippingFeesAmount.value— derived zstore_shipping_rate(zakłada że koszt zwrotu = koszt wysyłki)returnShippingFeesAmount.currency— zstore_currency
Emituje się tylko gdy store_return_fees=ReturnShippingFees ORAZ store_shipping_rate > 0. Dla FreeReturn field nie istnieje (Google nie spodziewa się go).
Test po wgraniu
- Pobierz https://github.com/MarcinZmuda/Ligase-Schema-Markup/releases/download/v2.4.11/ligase-2.4.11.zip
- WP Admin → Wtyczki → Wyślij + Zastąp
- Cache out (WP Rocket / Cloudflare)
- Rich Results Test ponownie na https://makumi.eu/produkt/koldra-hera/ — wszystkie 3 błędy powinny zniknąć.
Jeśli nadal coś — daj screenshot, lecę dalej.