---
title: Fields (einzelne Produktdaten)
description: "Mit den sogenannten *Fields* können einzelne Produktdaten wie bspw. der Titel, die Beschreibung oder der Button per Shortcode (oder direkt im PHP-Template) platziert werden. ### Voraussetzungen - ASIN bzw. ISBN bei Büchern (siehe [Artikelnummern herausfinden](https://aawp.de/docs/article/artikelnummern-herausfinden/)) ### Shortcode-Beispiele **Ausgabe des Produkt-Titels** Shortcode ```…"
url: "https://aawp.de/docs/article/fields-einzelne-produktdaten/"
updated: "2015-12-06"
category: Funktionen
---

# Fields (einzelne Produktdaten)

Mit den sogenannten *Fields* können einzelne Produktdaten wie bspw. der Titel, die Beschreibung oder der Button per Shortcode (oder direkt im PHP-Template) platziert werden.

### Voraussetzungen

- ASIN bzw. ISBN bei Büchern (siehe [Artikelnummern herausfinden](https://aawp.de/docs/article/artikelnummern-herausfinden/))

### Shortcode-Beispiele

**Ausgabe des Produkt-Titels**

 Shortcode

```
[amazon fields="ASIN" value="title"]
```

#### Ausgabe des Produkt-Bildes

 Shortcode

```
[amazon fields="ASIN" value="thumb"]
```

#### Ausgabe des Verkaufspreises

 Shortcode

```
[amazon fields="ASIN" value="price"]
```

#### Ausgabe des "Kaufen"-Buttons

 Shortcode

```
[amazon fields="ASIN" value="button"]
```

 Eine Übersicht aller verfügbaren Werte findest du [am Ende dieses Artikels](#fields-overview-table).

Die oben genannten Shortcodes können durch Hinzufügen von "Attributen" erweitert werden. Wir haben dir eine [Übersicht aller Shortcodes und Erweiterungen](https://aawp.de/docs/article/shortcodes/) des Amazon Affiliate WordPress Plugins zusammengestellt.

---

### Verwendung der PHP-Funktionen in den Templates

#### Wert ausgeben

 PHP

```
echo aawp_get_field_value('3424201200', 'price');
```

#### Wert in einer Variable speichern

 PHP

```
$value = aawp_get_field_value('3424201200', 'price');
```

#### Weitere Attribute übergeben

 PHP

```
$value = aawp_get_field_value('3424201200', 'price', array( 'button_detail' => '/testberichte/produktname/' );
```

### Übersicht aller verfügbaren Werte

### IDs

| Parameter | Description |
| --- | --- |
| **asin** | ASIN of the product |
| **ean** | EAN of the product (only if available) |
| **isbn** | ISBN of the product (only if available) |

### Content

| Parameter | Description |
| --- | --- |
| **title** | Title of the product |
| **url** | URL to the product detail page |
| **link** | Link to the product detail page (HTML) |
| **image** | URL to the product image |
| **image_count** | Amount of available product images |
| **thumb** | Thumbnail (HTML, incl. link) of the product |
| **description** | Product description (HTML, unordered list) |

### Star-/Ratings

| Parameter | Description |
| --- | --- |
| **rating** | Rating as a number (e.g. 1.5, 3 or 5.2) |
| **star_rating** | Star-rating (HTML) |
| **reviews** | Amount of collected reviews |

### Pricing

| Parameter | Description |
| --- | --- |
| **price** | Advertised price (formatted incl. currency) |
| **list_price** | List price (formatted incl. currency) |
| **amount_saved** | Current savings (formatted incl. currency) |
| **percentage_saved** | Current savings in percentage (only the number) |

### Other

| Parameter | Description |
| --- | --- |
| **button** | Buy button (HTML, incl. link) |
| **button_detail** | Detail button (HTML, incl. link) |
| **prime** | Amazon Prime logo (only if prime is available) |
| **premium** | Amazon Prime logo (only if prime is available) |
| **last_update** | Date of last product update |
