Change Text under Price

Hey there so i am using the debut theme for my one product store and i want to change/ add text like in the picture from another store i attached “Weihnachtsrabatt endet bald” .

I edit the translation for “tax included” but i wasn’t able to make the text bold or change color. Could someone help me out?

1 Like

Nachdem Du im deutschen Community-Forum gepostet hast und auch der Screenshot deutschsprachig ist, antworte ich jetzt frecherweise auch auf Deutsch. Hoffe, dass das ok ist.

Zusammengefasst, Du hast den Text “tax included” als “Vorweihnachtsrabatt endet bald” übersetzt – korrekt?

Dazu ein paar Anmerkungen:

  • Schlechte Idee das so zu machen
  • So lange Du zumindest in der EU verkaufen willst, muss der Zusatz “inkl. Mwst.” (dem Sinne nach) hier angeführt sein
  • Du weisst nicht, wo überall dieser String verwendet wird. Auf der Bestellübersicht z.B. würde die Rabattnotiz überhaupt keinen Sinn ergeben.
  • Den Text “Vorweihnachtsrabatt endet bald” im products Template zu ergänzen ist eine bessere Fingerübung und die Gestaltung wird dann auch flexibler
  • Schlechte Idee das so zu machen
  • Hab ich schon erwähnt: Schlechte Idee das so zu machen

Ein Link zur Seite würde helfen in Sachen Styling konkreten Input zu geben. Wobei: der Text sieht zumindest schon ziemlich bold aus.

LG, Mario

1 Like

https://stickyballstore.com/products/stickyball is der Produktlink.

Danke für die Antwort. Alles klar habs jetzt wieder geändert.

Der Anhang den ich gesendet habe ist ein Screenshot von einem anderen Shop und ich würde dies gerne in meinem eigenen Shop so einfügen. Könntest du mir die product template coding Anweisungen geben? Das wäre sehr hilfreich!

Vielen Dank,

Nicolas

https://stickyballstore.com/products/stickyball is der Produktlink.

1 Like

Schwierig zu sagen, ohne dem Quelltext – da gibt’s mehrere Möglichkeiten, wie das implementiert sein könnte. Kannst Du aus product.liquid die 15 Zeilen vor und nach der Zeile, in der “product__price” vorkommt rauskopieren und hier reinpasten?

1 Like

{{ product.title }}

{% comment %}Start automatically added Judge.me widget{% endcomment %} {% render 'judgeme_widgets', widget_type: 'judgeme_preview_badge', concierge_install: true, product: product %} {% comment %}End automatically added Judge.me widget{% endcomment %}
{% include 'product-price', variant: current_variant, show_vendor: section.settings.show_vendor %}

{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}

{%- if shop.taxes_included -%} {{ 'products.product.include_taxes' | t }} {%- endif -%} {%- if shop.shipping_policy.body != blank -%} {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }} {%- endif -%}
{%- endif -%}

{% capture “form_classes” -%}
product-form product-form-{{ section.id }}
{%- if section.settings.enable_payment_button and product.has_only_default_variant %} product-form–payment-button-no-variants {%- endif -%}
{%- if current_variant.available == false %} product-form–variant-sold-out {%- endif -%}
{%- endcapture %}

{% form ‘product’, product, class:form_classes, novalidate: ‘novalidate’, data-product-form: ‘’ %}
{% unless product.has_only_default_variant %}

{% for option in product.options_with_values %}
{{ option.name }}
{% endfor %}
{% endunless %}

korrekt?

Hier ist der angepasste Code:


# {{ product.title }}

{% comment %}Start automatically added Judge.me widget{% endcomment %}
{% render 'judgeme_widgets', widget_type: 'judgeme_preview_badge', concierge_install: true, product: product %}
{% comment %}End automatically added Judge.me widget{% endcomment %}

{% include 'product-price', variant: current_variant, show_vendor: section.settings.show_vendor %}

{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}

{%- if shop.taxes_included -%}
{{ 'products.product.include_taxes' | t }}
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}

{%- endif -%}

  Vorweihnachtsrabatt endet bald!

{% capture "form_classes" -%}
product-form product-form-{{ section.id }}
{%- if section.settings.enable_payment_button and product.has_only_default_variant %} product-form--payment-button-no-variants {%- endif -%}
{%- if current_variant.available == false %} product-form--variant-sold-out {%- endif -%}
{%- endcapture %}

{% form 'product', product, class:form_classes, novalidate: 'novalidate', data-product-form: '' %}
{% unless product.has_only_default_variant %}

{% for option in product.options_with_values %}

{% endfor %}

{% endunless %}

Dazu brauchst Du noch am Ende deiner theme.scss.liquid sowas in der Richtung:

/* r8r: promo string – https://community.shopify.com/c/Technische-Fragen-Antworten/Change-Text-under-Price/m-p/984164/highlight/false#M4169 */
.smdm-promo-string {
  color: #00ff00;
  font-weight: bold;
  text-transform: uppercase;
}
/* r8r: promo string END */

Getestet hab ich’s nicht – also proceed with caution :wink:

1 Like

Erster Code hat funktioniert :slightly_smiling_face: , allerdings kann ich die Datei theme.scss.liquid nicht finden

Im Prinzip kannst du den Code überall, von wo CSS Code zugeladen wird hinklatschen. Das ist nur fürs Styling dieser Nachricht. Schlimmstenfalls gehts auch als inline CSS.
freut mich geholfen zu haben! Freu mich über eine markierte Lösung. :wink:

1 Like

Alles geklappt, vielen Dank!

1 Like

Keine Ursache - freut mich, dass ich helfen konnte!

Mario

1 Like