Skip to content

Ligase 2.4.24 — Suppressor: WooCommerce core JSON-LD (Product duplicate brand fix)

Choose a tag to compare

@MarcinZmuda MarcinZmuda released this 10 Jun 19:57
· 27 commits to main since this release

Krytyczny fix dla sklepów WooCommerce w standalone_mode.

Problem (diagnosed live na makumi.eu)

Rich Results Test dla produktu wariantowego /produkt/koldra-metis/ zgłaszał:

  • Zduplikowane pole "brand" (krytyczny) — Ligase emit "MAKUMI Sp. z o.o" + WooCommerce core emit "Makumi" w osobnych blokach JSON-LD
  • Nieprawidłowy typ obiektu w polu offers (niekrytyczny) — Ligase Offer vs WC AggregateOffer dla produktu z wariantami

Przyczyna

WooCommerce od wersji 7.2 emituje własne JSON-LD @graph bezpośrednio przez wp_footer — niezależnie od jakiegokolwiek pluginu SEO. Ligase Suppressor wyciszał dotychczas 7 pluginów SEO (Yoast / RankMath / AIOSEO / SEOPress / TSF / Slim SEO / The Events Calendar), ale WooCommerce core nie był na liście — bo to nie jest "plugin SEO".

Fix

Nowy wpis woocommerce_core w Ligase_Suppressor::KNOWN_PLUGINS z 4 filter hooks:

woocommerce_structured_data_product        → __return_empty_array
woocommerce_structured_data_review         → __return_empty_array
woocommerce_structured_data_breadcrumblist → __return_empty_array
woocommerce_structured_data_website        → __return_empty_array

Detection przez WC_VERSION constant + WooCommerce class. Aktywne tylko gdy standalone_mode ON.

Plus output-buffer scrubber (od 2.4.13) dodatkowo wycina nawet pusty fragment [] który WC może wyrenderować.

Po wgraniu na sklep WC + standalone_mode

  • 0 błędów krytycznych w Rich Results Test
  • Tylko jeden blok JSON-LD na stronie produktu (Ligase)
  • Czysta Offer struktura (zero AggregateOffer collision)
  • Brand z prawidłową nazwą (z Ligase ustawień, nie WooCommerce fallback)

Download

https://github.com/MarcinZmuda/Ligase-Schema-Markup/releases/download/v2.4.24/ligase-2.4.24.zip

Krok po kroku dla makumi.eu

  1. Pobierz ZIP powyżej
  2. WP Admin → Wtyczki → Dodaj nową → Wyślij wtyczkę → ZIP → Zastąp obecnym
  3. Standalone_mode musi być ON (już masz)
  4. Wyczyść cache (LiteSpeed / Cloudflare)
  5. Rich Results Test → /produkt/koldra-metis/ → 0 krytycznych errors