1b.app
Link kopiert -

So schreiben Sie den HTML-Code richtig in einen Brief, damit eine Liste aller Produkte aus der Bestellung gesendet wird

Es gibt die Aktion „Nachricht per E-Mail senden“, mit der ein Brief an den Kunden gesendet werden kann

Im Brief wird jedoch nur EIN Produkt aus der gesamten Liste verschickt.

Wie schreibe ich, damit der Brief alle Produkte der Bestellung anzeigt?

Jetzt verwende ich den folgenden HTML-Code für die Produkttabelle aus dem Brief:

<p><span style="font-family: arial, helvetica, sans-serif;">{|foreach from=$basketsArray item="b"|}{|/foreach|}</span></p>

<table border="1" style="width: 100%; border-collapse: collapse; border-style: solid;" cellpadding="5"><caption></caption>

<tbody>

<tr>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 16px;">Produkt ID</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 16px;">Bild</span></strong></span></td>

<td style="width: 50%; text-align: center;"><span style="color: #003d6a; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 16px;">Name</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 16px;">Nummer</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 16px;">Preis</span></strong></span></td>

</tr>

<tr>

<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;">{|$b.productid|}<br /></span></td>

<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;"><img src="https://icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>

<td style="width: 50%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;">{|$b.name|}</span></td>

<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;">{|$b.count|}</span></td>

<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; color: #000080;">{|$b.price|}</span></td>

</tr>

</tbody>

</table>
Die ursprüngliche Frage ist in der Version verfügbar: ua Вячеслав Легеза

Antworten:

Ja!
Versuchen Sie es auch mit:
<table border="1" style="width: 100%; border-collapse: Collapse; border-style: solid;" cellpadding="5">
<tbody>
<tr>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Produkt-ID</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Bildnachweis</span></strong></span></td>
<td style="width: 50%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Informationen</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Übersicht</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Цена</span></strong></span></td>
</tr>
<p>{|foreach from=$basketsArray item="b"|}</p>
<tr>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.productid|} <br /></span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;"><img src="https:/ /icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>
<td style="width: 50%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; цвет: #000080;">{|$b.name|} </span></td>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; цвет: #000080;">{|$b.count|} </span></td>
<td style="width: 10%;"><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; цвет: #000080;">{|$b.price|} </span></td>
</tr>
<p>{|/foreach|}</p>
</tbody>
</table>
19.06.2023, 16:13
Originalkommentar zur Version verfügbar: en

Легеза Вячеслав iCOLOR OneBox (ФЛП ЛЕГЕЗА ВЯЧЕСЛАВ ВАЛЕРИАНОВИЧ)
ФОП Легеза В.В.
Nominelle Lizenz
Hinterlassen Sie eine Nachricht in diesem Thread und Sie sehen die Kontakte des Benutzers
[zitieren]

Luts Bogdan Alexandrowitsch

WANBOX CORP schrieb:

Ich lebe!

Probieren Sie die Achse so aus:

<table border="1" style="width: 100%; border-collapse: Collapse; border-style: solid;" cellpadding="5">

<Körper>

<tr>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Produkt-ID</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Bild</span></strong></span></td>

<td style="width: 50%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Titel</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Nummer</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Preis</span></strong></span></td>

</tr>

<p>{|foreach from=$basketsArray item="b"|}</p>

<tr>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.productid|} <br /></span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;"><img src="https:/ /icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>

<td style="width: 50%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.name|} </span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.count|} </span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.price|} </span></td>

</tr>

<p>{|/foreach|}</p>

</tbody>

</table>

[/zitieren]

entschuldige Nein

funktioniert nicht
19.06.2023, 16:30
Вячеслав Легеза Originalkommentar zur Version verfügbar: ru

Mehr dazu:
Mehr dazu:
<table border="1" style="width: 100%; border-collapse: Collapse; border-style: solid;" cellpadding="5">
<tbody>
<tr>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Produkt-ID</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Bildnachweis</span></strong></span></td>
<td style="width: 50%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Informationen</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Übersicht</span></strong></span></td>
<td style="width: 10%; text-align: центр;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Цена</span></strong></span></td>
</tr>
{|foreach from=$basketsArray item="b"|}
<tr>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.productid|} <br /></span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;"><img src="https:/ /icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>
<td style="width: 50%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.name|} </span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.count|} </span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.price|} </span></td>
{|/foreach|}
</tr>
</tbody>
</table>
19.06.2023, 16:46
Originalkommentar zur Version verfügbar: en

Легеза Вячеслав iCOLOR OneBox (ФЛП ЛЕГЕЗА ВЯЧЕСЛАВ ВАЛЕРИАНОВИЧ)
ФОП Легеза В.В.
Nominelle Lizenz
Hinterlassen Sie eine Nachricht in diesem Thread und Sie sehen die Kontakte des Benutzers
[zitieren]

Luts Bogdan Alexandrowitsch

WANBOX CORP schrieb:

Bewegen Sie die Achse wie folgt:

Bewegen Sie die Achse wie folgt:

<table border="1" style="width: 100%; border-collapse: Collapse; border-style: solid;" cellpadding="5">

<Körper>

<tr>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Produkt-ID</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Bild</span></strong></span></td>

<td style="width: 50%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Titel</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Nummer</span></strong></span></td>

<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Preis</span></strong></span></td>

</tr>

{|foreach from=$basketsArray item="b"|}

<tr>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.productid|} <br /></span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;"><img src="https:/ /icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>

<td style="width: 50%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.name|} </span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.count|} </span></td>

<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.price|} </span></td>

{|/foreach|}

</tr>

</tbody>

</table>

[/zitieren]

das gleiche

nur ein Artikel
19.06.2023, 17:05
Вячеслав Легеза Originalkommentar zur Version verfügbar: ru

https://tppr.me/XQ2tG funktioniert für mich
Vielleicht haben Sie gerade nur ein Produkt im Prozess?
Oder ein Fehler irgendwo im Code
19.06.2023, 18:26
Originalkommentar zur Version verfügbar: ua

Легеза Вячеслав iCOLOR OneBox (ФЛП ЛЕГЕЗА ВЯЧЕСЛАВ ВАЛЕРИАНОВИЧ)
ФОП Легеза В.В.
Nominelle Lizenz
Hinterlassen Sie eine Nachricht in diesem Thread und Sie sehen die Kontakte des Benutzers
[zitieren]

Bohdan Alexandrowytsch Luts

VANBOX CORP schrieb:

Vielleicht haben Sie gerade nur ein Produkt im Prozess?

[/zitieren]

und nein, es gibt viele Produkte

und den Code so kopiert und eingefügt, wie er ist
19.06.2023, 20:03
Вячеслав Легеза Originalkommentar zur Version verfügbar: ua

Легеза Вячеслав iCOLOR OneBox (ФЛП ЛЕГЕЗА ВЯЧЕСЛАВ ВАЛЕРИАНОВИЧ)
ФОП Легеза В.В.
Nominelle Lizenz
Hinterlassen Sie eine Nachricht in diesem Thread und Sie sehen die Kontakte des Benutzers
[zitieren]
Luts Bogdan Alexandrowitsch
WANBOX CORP schrieb:
Bewegen Sie die Achse wie folgt:
Bewegen Sie die Achse wie folgt:
<table border="1" style="width: 100%; border-collapse: Collapse; border-style: solid;" cellpadding="5">
<Körper>
<tr>
<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Produkt-ID</span></strong></span></td>
<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Bild</span></strong></span></td>
<td style="width: 50%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Titel</span></strong></span></td>
<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Nummer</span></strong></span></td>
<td style="width: 10%; text-align: center;"><span style="color: #003d6a; Schriftfamilie: Arial, Helvetica, Sans-Serif;"><strong><span style=" Schriftgröße: 16px;">Preis</span></strong></span></td>
</tr>
{|foreach from=$basketsArray item="b"|}
<tr>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.productid|} <br /></span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;"><img src="https:/ /icoloronebox.crm-onebox.com/app/mailing-template/add/{|$b.image|}" width="60" height="60" /><br /></span></td>
<td style="width: 50%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.name|} </span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.count|} </span></td>
<td style="width: 10%;"><span style="Schriftfamilie: Arial, Helvetica, Sans-Serif; Schriftgröße: 16px; Farbe: #000080;">{|$b.price|} </span></td>
{|/foreach|}
</tr>
</tbody>
</table>
[/zitieren]
Ich nahm nur den nackten Code ohne andere Teile und auf diese Weise lief alles gut
Ich werde hier an einer anderen Stelle der Verzeihung scherzen
danke für die Hilfe
19.06.2023, 20:11
Вячеслав Легеза Originalkommentar zur Version verfügbar: ru

Сусяк Ігор
Integrator.com.ua
Nominelle Lizenz
Wjatscheslaw, hallo
Hier ist ein Beispiel für einen Brief aus einem Arbeitsprojekt:
{|foreach from="$basketsArray" item="e"|}
{|$e.name|} {|$e.shopurl|}
{|/foreach|}
19.06.2023, 20:39
Originalkommentar zur Version verfügbar: ua

Легеза Вячеслав iCOLOR OneBox (ФЛП ЛЕГЕЗА ВЯЧЕСЛАВ ВАЛЕРИАНОВИЧ)
ФОП Легеза В.В.
Nominelle Lizenz
Hinterlassen Sie eine Nachricht in diesem Thread und Sie sehen die Kontakte des Benutzers
[zitieren]
Ihor Susiak
Der Integrator schrieb:
Wjatscheslaw, hallo
Hier ist ein Beispiel für einen Brief aus einem Arbeitsprojekt:
{|foreach from="$basketsArray" item="e"|}
{|$e.name|} {|$e.shopurl|}
{|/foreach|}
[/zitieren]
Wenn kein HTML-Code vorhanden ist, gibt es keine Fragen
Da ist alles klar
aber es gab Probleme mit HTML, die ich dank Luts Bohdan Aleksandrovych behoben habe
Danke :)
19.06.2023, 22:22
Вячеслав Легеза Originalkommentar zur Version verfügbar: ua

Bitte beteiligen Sie sich am Dialog. Wenn Sie etwas zu sagen haben - schreiben Sie bitte einen Kommentar. Für die Teilnahme benötigen Sie ein Mobiltelefon und einen SMS-Code zur Identifizierung. Melden Sie sich an und schreiben Sie einen Kommentar