Liquid, JavaScript, Themes
Guten Tag, besteht die Möglichkeit ein extra Feld auf der Artikelseite hinzuzufügen, was erst ausgefüllt werden muss bevor der kauf getätigt werden kann?
Als Beispiel:
Ich möchte zum Beispiel Tassen verkaufen auf denen ein kleiner Satz stehen soll. Also biete ich den Artikel Tasse an.
Wenn die Tasse gekauft wurde weiß ich aber leider nicht was der Kunde auf die Tasse gedruckt haben möchte, also bräuchte ich hierzu ein extra Feld
in den die Leute dann ihren Satz, Name oder ect.
Könntet ihr mir damit helfen?
Liebe Grüße Dennis
Gelöst! Zur Lösung
Erfolg.
Hey @dennis1990
Danke für die Frage und um ein obligatorisches Eingabe Feld oder Kästchen zu deiner Produktseite hinzuzufügen so dass die Kunden den Tassen-Satz eingeben haben wir ein paar Code Tutorials wenn man sich das zutraut das DIY zu machen (aber bitte zuerst in einer Testumgebung und nicht im Live Theme!).
Ein Tutorial habe ich hier und diesen kann man auch für die Produktseite verwenden, nur muss man die Variablen etwas ändern (auf EN) und wenn dies nur für bestimmte Produkte gelten soll dann sollte man eine separate Produktvorlage nur für die betroffene Produkte erstellen:
You can add as many custom form fields to your cart form as you need. You can use the Shopify UI Elements Generator tool to easily generate the HTML and Liquid code for each form field that you want to add to your cart page. This tool was created by Shopify to help simplify the process of adding custom user interface elements, such as form fields and icons, to Shopify themes.
To add a custom form field:
cart-template.liquid
. If your theme doesn't have acart-template.liquid
, then, in the Templates directory, click cart.liquid
.</form>
tag in the code.</form>
tag, paste the code that you copied from the Shopify UI Elements Generator. You can experiment with putting the code in different places to see where the form field appears on your cart page.novalidate
attribute from the checkout form. Find novalidate
, which is inside the opening <form>
tag. The code might look something like this:<form action="/cart" method="post" novalidate class="cart">Delete
novalidate
:<form action="/cart" method="post" class="cart">
The new field is shown on the order page of your admin in the Additional Details section.
Note: Cart attributes can be added only to a cart page, and are not compatible with cart drawers, or cart popups. To change your cart style, go to the theme editor.
You can show cart attribute information for orders in your email notification templates. To add cart attributes to an email template, add the following code to the template in the place that you would like the cart attributes to be shown:
<h4>Additional details</h4> <p> {% for attribute in attributes %} {{ attribute | first }}: {{ attribute | last }}<br> {% endfor %} </p>
If you use the Order Printer app to print your orders, you can add some code to your templates to show cart attributes on your printouts. To add cart attributes to an Order Printer template, add the following code to the very bottom of the template:
{% for attribute in attributes %} {{ attribute | first }}: {{ attribute | last }}<br> {% endfor %}
Typischerweise verwenden Händler eine App eines Drittanbieters, um ein Notizfeld auf Produktseiten hinzuzufügen, wie z. B. die folgenden Apps, die du ausprobieren kannst:
Dies kann auch DIY, sprich, durch die Anpassung des Themes erreicht werden, wenn du einen Entwickler hast, der oder die mit dir zusammenarbeitet, um bei der Implementierung dieser Anpassung im Shop zu helfen.
Gabe | Social Care @ Shopify
- War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen!
- Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung
- Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog
Erfolg.
Hey @dennis1990
Danke für die Frage und um ein obligatorisches Eingabe Feld oder Kästchen zu deiner Produktseite hinzuzufügen so dass die Kunden den Tassen-Satz eingeben haben wir ein paar Code Tutorials wenn man sich das zutraut das DIY zu machen (aber bitte zuerst in einer Testumgebung und nicht im Live Theme!).
Ein Tutorial habe ich hier und diesen kann man auch für die Produktseite verwenden, nur muss man die Variablen etwas ändern (auf EN) und wenn dies nur für bestimmte Produkte gelten soll dann sollte man eine separate Produktvorlage nur für die betroffene Produkte erstellen:
You can add as many custom form fields to your cart form as you need. You can use the Shopify UI Elements Generator tool to easily generate the HTML and Liquid code for each form field that you want to add to your cart page. This tool was created by Shopify to help simplify the process of adding custom user interface elements, such as form fields and icons, to Shopify themes.
To add a custom form field:
cart-template.liquid
. If your theme doesn't have acart-template.liquid
, then, in the Templates directory, click cart.liquid
.</form>
tag in the code.</form>
tag, paste the code that you copied from the Shopify UI Elements Generator. You can experiment with putting the code in different places to see where the form field appears on your cart page.novalidate
attribute from the checkout form. Find novalidate
, which is inside the opening <form>
tag. The code might look something like this:<form action="/cart" method="post" novalidate class="cart">Delete
novalidate
:<form action="/cart" method="post" class="cart">
The new field is shown on the order page of your admin in the Additional Details section.
Note: Cart attributes can be added only to a cart page, and are not compatible with cart drawers, or cart popups. To change your cart style, go to the theme editor.
You can show cart attribute information for orders in your email notification templates. To add cart attributes to an email template, add the following code to the template in the place that you would like the cart attributes to be shown:
<h4>Additional details</h4> <p> {% for attribute in attributes %} {{ attribute | first }}: {{ attribute | last }}<br> {% endfor %} </p>
If you use the Order Printer app to print your orders, you can add some code to your templates to show cart attributes on your printouts. To add cart attributes to an Order Printer template, add the following code to the very bottom of the template:
{% for attribute in attributes %} {{ attribute | first }}: {{ attribute | last }}<br> {% endfor %}
Typischerweise verwenden Händler eine App eines Drittanbieters, um ein Notizfeld auf Produktseiten hinzuzufügen, wie z. B. die folgenden Apps, die du ausprobieren kannst:
Dies kann auch DIY, sprich, durch die Anpassung des Themes erreicht werden, wenn du einen Entwickler hast, der oder die mit dir zusammenarbeitet, um bei der Implementierung dieser Anpassung im Shop zu helfen.
Gabe | Social Care @ Shopify
- War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen!
- Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung
- Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog
Mit dem Lernpfad der Shopify Academy und dem Verified Skills-Badge Expanding Your Sho...
By Shopify Feb 7, 2025Den Verkauf im Großhandel steigern: In der Shopify Academy lernst du, wie das geht, zum...
By Shopify Feb 3, 2025Teil 2 - Wie die Prinzipien des UX-Designs dir dabei helfen können einen großartigen Shop ...
By Kai Sep 16, 2024