Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hallo, wir haben das DAWN Theme und das folgeden Problem:
Wir wurden wegen einer vermeintlichen Falschdarstellung seitens Google gesperrt, nach Rücksprache mit Mitarbeitern liegt dies am Vergleichspreis bzw. dem UVP Preis. Dieser wird ausgeblendet bei uns im Shop. Aber im Quelltext als 0,00 € bei Produkten mit angegeben. Daher kommt es zu einer falschen Wertedarstellung, was Google ablehnt. Wir haben zusätzlich 38,00 euro als UVP bei einem Artikel hinterlegt, da in unserem Warenwirtschaftsssystem, kein leerer Wert eingetragen werden kann. Dieses übergibt einen leeren Wert per API als 0,00€ was dennoch ein Wert ist. Heißt im Shopifybackend löschen des Vergleichpreises ist nicht möglich. Da aber nun auch der normale Verkaufspreis und der Vergleichspreis ausgegeben werden und der Google Bot die Prüfung über den HTML code durchführt wird eine Falschdarstellung wegen irreführender preise ausgelöst.
Nun wäre der weg zur Lösung dies aus der Produktseite auszuschließen und nicht nur zu blenden, da der Bot den HTML code ja scannt und dort falsche werte hinterlegt sind.
Kann uns jemand helfen, wie wir dies nicht nur per CSS ausgeblendet bekommen, sondern im Theme generell deaktiviert?
Vielen Dank.
In Shopify dawn you can edit your theme code and comment line compare at price or totally remove it
@fmueller, hey, thanks for posting here.
Can you please share the link so we can inspect it? thanks
sleec-shop.de thank you!
@fmueller, please go to the theme editor, then search price.liquid, then find this one code :
{% if product.compare_at_price > product.price %}
<span class="compare-at-price">
{{ product.compare_at_price | money }}
</span>
{% endif %}
and replace with :
{% if product.compare_at_price > product.price and product.compare_at_price != 0 %}
<span class="compare-at-price">
{{ product.compare_at_price | money }}
</span>
{% endif %}
I hope it will solve your issue.