Händler und Endkundenpreis in Newsletter darstellen

Globe

Aktives Mitglied
5. September 2010
17
0
Hallo zusammen

Ich würde gerne in unseren Newsletter, die wir an Händler schicken die Händlerpreise und den Empfohlenen Verkaufspreis (unser Endkundenpreis) darstellen lassen. Leider bekomme ich das trotz verschiedener Versuche nicht hin. Zur Info momentan arbeiten wir noch mit dem JTL Shop 3.19.

Nachfolgend könnt ihr den Quellcode sehen, welcher ich bis jetzt verwende um die Artikel und die Händlerpreise darstellen lasse, was soweit auch gut funktioniert.
Code:
<!-- ######   ANFANG ARTIKELLISTE  ######   -->
             {if $Artikelliste}
            <tr>
                <td width="570" colspan="3">
                    <table width="570" border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    <tr>
                        <td width="570">
                            <font face="arial,helvetica,sans-serif" size="1" color="#666" style="font-size: 13px; ">
                            <strong><strong>Unsere aktuellen Angebote / Our current offers:</strong>
                            </font>
                        </td>
                    </tr>
                    </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="3">
                </td>
            </tr>
            <tr>
                <td width="570" height="1" bgcolor="#2a2a2a" colspan="3">
                </td>
            </tr>
            <tr>
                <td height="10">
                      
                </td>
            </tr>
            <tr>
                <td width="570" align="left" valign="top">
                    <table width="570" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                         {foreach name=artikelliste from=$Artikelliste item=Artikel} {if $smarty.foreach.artikelliste.iteration % 3 == 0}
                        <td>
                            <table width="180" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                            <tr>
                                <td width="180" align="left" valign="top" style="line-height:15px;">
                                    <a href="{$Artikel->cURL}" target="_blank"><img width="180" height="180" border="0" style="border-radius: 4px!important; width: 180px;" src="{$Artikel->Bilder[0]->cPfadNormal}" alt="{$Artikel->cName}"/></a><br>
                                    <br>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="180" border="0" cellspacing="0" cellpadding="0">
                                    <tbody>
                                    <tr>
                                        <a href="{$Artikel->cURL}" target="_blank" style=" font-size:13px; text-decoration: none; color: #666"><strong>{$Artikel->cName|strip_tags|truncate:40}</strong></a>
                                        <br>
                                        <br>
                                    </tr>
                                    <tr>
                                        <a target="_blank" style="font-size: 12px; text-decoration: none; color: #666" href="{$Artikel->cURL}">{$Artikel->cBeschreibung|strip_tags|truncate:90}</a>
                                        <br>
                                        <br>
                                    </tr>
                                    <tr>
                                        <a href="{$Artikel->cURL}" target="_blank" style="font-size: 14px; text-decoration: none; color: #c3512e">{if $Artikel->Preise->fVKNetto==0} Preis auf Anfrage {else} {if $Artikel->nVariationsAufpreisVorhanden == 1}ab {elseif $Artikel->Preise->rabatt>0}jetzt nur {/if} {$Artikel->Preise->cVKLocalized[$NettoPreise]} {/if}</a><br>
     <br>
        <br>

                                    </tr>
                                    </tbody>
                                    </table>
                                </td>
                            </tr>
                            </tbody>
                            </table>
                        </td>
                         {if !$smarty.foreach.artikelliste.last}
                        </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td width="570" align="left" valign="top">
                        <table width="570" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr>
                             {/if} {else}
                            <td>
                                <table width="180" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                <tr>
                                    <td width="180" align="left" valign="top" style="line-height:15px;">
                                        <a href="{$Artikel->cURL}" target="_blank"><img width="180" height="180" border="0" style="border-radius: 4px!important; width: 180px;" src="{$Artikel->Bilder[0]->cPfadNormal}" alt="{$Artikel->cName}"/></a><br>
                                        <br>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="180" border="0" cellspacing="0" cellpadding="0">
                                        <tbody>
                                        <tr>
                                            <a href="{$Artikel->cURL}" target="_blank" style="font-size: 13px; text-decoration: none; color: #666"><strong>{$Artikel->cName|strip_tags|truncate:40}</strong></a>
                                            <br>
                                            <br>
                                        </tr>
                                        <tr>
                                            <a target="_blank" style="font-size: 12px; text-decoration: none; color: #666" href="{$Artikel->cURL}">{$Artikel->cBeschreibung|strip_tags|truncate:90}</a>
                                            <br>
                                            <br>
                                        </tr>
                                        <tr>
                                            <a href="{$Artikel->cURL}" target="_blank" style="font-size: 14px; text-decoration: none; color: #c3512e">{if $Artikel->Preise->fVKNetto==0} Preis auf Anfrage {else} {if $Artikel->nVariationsAufpreisVorhanden == 1}ab {elseif $Artikel->Preise->rabatt>0}jetzt nur {/if} {$Artikel->Preise->cVKLocalized[$NettoPreise]}{/if}</a><br>
                                            <br>
                                            <br>
                                        </tr>
                                        </tbody>
                                        </table>
                                    </td>
                                </tr>
                                </tbody>
                                </table>
                            </td>
                             {/if} {/foreach}
                            </tbody>
                            </table>
                        </td>
                    </tr>
                     {/if} 
                    <!-- ######   ENDE ARTIKELLISTE  ######   -->

Ist das überhaupt realisierbar?

Für eure Antworten bzw. Hilfe bedanke ich mich schon im Voraus.
 

x86

Gut bekanntes Mitglied
20. Januar 2014
179
5
localhost
AW: Händler und Endkundenpreis in Newsletter darstellen

Hallo Globe,

technisch wäre es sicherlich möglich, da ich aber nicht weis ob im Newsletter tatsächlich mit dem Artikel Objekt (der Klasse Artikel) gearbeitet wird oder einer stdClass wie bereits oft gesehen, wohl nur über eine technische Anpassungv / Erweiterung deines Newslettertemplates.

Grüsse Stephan
 

Globe

Aktives Mitglied
5. September 2010
17
0
AW: Händler und Endkundenpreis in Newsletter darstellen

Hallo Stephan

Vielen Dank für deine Antwort.
Wenn ich deine Antwort richtig verstanden habe, meist du es ist nicht mit der Code Anpassung möglich, oder?

Hat vielleicht sonst noch jemand eine Idee?

Freundliche Grüsse
 

x86

Gut bekanntes Mitglied
20. Januar 2014
179
5
localhost
AW: Händler und Endkundenpreis in Newsletter darstellen

Hallo Globe,

dass ist korrekt, ohne Anpassung sind immer nur die Preise der Kundengruppe an die der Newsletter geschickt wird
sichtbar. Die anderen Preise sind ohne weiteres nicht verfügbar.

Grüße Stephan
 

Globe

Aktives Mitglied
5. September 2010
17
0
AW: Händler und Endkundenpreis in Newsletter darstellen

Hallo Stephan

Danke dir vielmals für deine Erläuterung.
Da sonst keiner geantwortet hat, nehme ich an, es gibt wirklich keine andere Lösung meinen Wunsch mittels Code-Anpassung zu hinzu bekommen.

Nochmlas danke für deine Bemühugnen.

Grüsse
Globe
 

Ähnliche Themen