Beschreibungstemplates

Hier können Sie sich die Dokumentation der Skriptsprache Vogon herunterladen:
Download Vogon.pdf


Allgemeine Variablen

Alle grundlegenden Werte, die Sie für Ihr Beschreibungstemplate verwenden können.

Produkttitel ${Product.Title}
Produktbeschreibung ${Product.Description}
Produkt-Kurzbeschreibung ${Product.ShortDescription}
Herstellernummer – MPN ${Product.Mpn}
EAN ${Product.Ean}
ISBN ${Product.Isbn}
UPC ${Product.Upc}
Produktpreis (einfache Produkte) ${Product.Price}
Bestand des Produktes ${Product.Stockamount}
Listen-Bild ${Product.ListingImage}
Angebots-Bild ${Product.OfferImage}
Galerie-Bild ${Product.GalleryImage1} – bis 10
Verkäufer-Name ${Seller.EbayName}
Verkäufer-Logo ${Seller.Logo}
eBay Artikelnummer ${Product.EbayItemId}

Alle Produktmerkmale ausgeben

Alle Produktmerkmale der Reihenfolge nach in der eBay Beschreibung ausgeben lassen.

%[ foreach (Specific in Product.Specifics) { ]%
%[ Print(Specific.Name); ]%
:
%[ Print(Specific.Value); ]%
%[ } ]%


Alle Zusatzinformationen ausgeben

Alle Zusatzinformationen der Reihenfolge nach in der eBay Beschreibung ausgeben lassen. (Die Zeilenumbrüche müssen bestehen bleiben)

%[ foreach (OptionalProductAttribute in Product.OptionalProductAttributes) { ]%
%[ Print(OptionalProductAttribute.Name); ]%
:
%[ Print(OptionalProductAttribute.Value); ]%
%[ } ]%


Bestimmtes Merkmal ausgeben

Gibt ein bestimmtes Merkmal aus. Im Beispiel das Merkmal „Lieferzeit“.

%[ foreach (Specific in Product.Specifics) {
if (Specific.Name == "Marke") { Print(Specific.Value); }
}]%


Bestimmte Zusatzinformation ausgeben

Gibt eine bestimmte Zusatzinformation aus. Im Beispiel die Zusatzinformation „Inhaltsstoffe“.

%[ foreach (OptionalProductAttribute in Product.OptionalProductAttributes)
{
if (OptionalProductAttribute.Name == "Inhaltsstoffe") {
Print(OptionalProductAttribute.Value);
}}]%


Wert einer Zusatzinformation als HTML-Element nutzen

Der Wert einer bestimmten Zusatzinformation (LogoURL) wird als Element ({0}) eines HTML-Tags (img >> src) genutzt.

%[
foreach (OptionalProductAttribute in Product.OptionalProductAttributes) {
if (OptionalProductAttribute.Name == "Freitext-1")
{
Print(Format("<img src='{0}‘ alt=’Herstellerlogo‘ />", OptionalProductAttribute.Value));
}
}]%