Hallo,
laut Prüfungsprotokoll von Trusted Shops gehören auf der Bestellseite zu den Produkten auch eine kurze Produktbeschreibung über die wesentlichen Merkmale der Ware.
Dazu wollte ich einfach im Template iso_collection_default.html5 die Metadescription [meta_description] mißbrauchen, die auch zur Verfügung steht:
(Auszug)
Code:
Array
(
[items] => Array
(
[0] => Array
(
[id] => 218
[sku] => AL 001
[name] => Pfoten-Balsam
[options] => Array
(
)
[quantity] => 1
[price] => 14.90 <span class="currency">€</span>
[tax_free_price] => 12.52 <span class="currency">€</span>
[total] => 14.90 <span class="currency">€</span>
[tax_free_total] => 12.52 <span class="currency">€</span>
[tax_id] => 1
[hasProduct] => 1
[product] => Isotope\Model\Product\Standard Object
(
[objPrice:protected] => Isotope\Collection\ProductPrice Object
(
[strTable:protected] => tl_iso_product_price
[intIndex:protected] => 0
[arrModels:protected] => Array
(
[0] => Isotope\Model\ProductPrice Object
(
[arrTiers:protected] => Array
(
[1] => 14.90
)
[arrData:protected] => Array
(
[id] => 1
[pid] => 1
[tstamp] => 1393430878
[tax_class] => 1
[config_id] => 0
[member_group] => 0
[start] =>
[stop] =>
)
[arrModified:protected] => Array
(
)
[arrRelations:protected] => Array
(
[pid] => Array
(
[table] => tl_iso_product
[field] => id
[type] => belongsTo
[load] => lazy
)
[tax_class] => Array
(
[table] => tl_iso_tax_class
[field] => id
[type] => hasOne
[load] => lazy
)
[config_id] => Array
(
[table] => tl_iso_config
[field] => id
[type] => hasOne
[load] => lazy
)
[member_group] => Array
(
[table] => tl_member_group
[field] => id
[type] => hasOne
[load] => lazy
)
)
[arrRelated:protected] => Array
(
[pid] => Isotope\Model\Product\Standard Object
*RECURSION*
[tax_class] => Isotope\Model\TaxClass Object
(
[arrData:protected] => Array
(
[id] => 1
[tstamp] => 1393764058
[name] => Standardsatz 19%
[fallback] => 1
[includes] => 2
[label] => inkl. Mehrwertsteuer 19%
[rates] =>
[applyRoundingIncrement] => 1
[notNegative] =>
)
[arrModified:protected] => Array
(
)
[arrRelations:protected] => Array
(
[includes] => Array
(
[table] => tl_iso_tax_rate
[field] => id
[type] => hasOne
[load] => eager
)
[rates] => Array
(
[table] => tl_iso_tax_rate
[field] => id
[type] => hasMany
[load] => lazy
)
)
[arrRelated:protected] => Array
(
[includes] => Isotope\Model\TaxRate Object
(
[arrData:protected] => Array
(
[id] => 2
[tstamp] => 1393763987
[name] => Mehrwertsteuer 19%
[label] => inkl. Mehrwertsteuer 19%
[address] => a:2:{i:0;s:7:"billing";i:1;s:8:"shipping";}
[countries] => de
[subdivisions] =>
[postalCodes] =>
[rate] => a:2:{s:4:"unit";s:1:"%";s:5:"value";s:2:"19";}
[amount] => a:2:{i:0;s:0:"";i:1;s:0:"";}
[config] => 1
[stop] =>
[guests] =>
[protected] =>
[groups] =>
)
[arrModified:protected] => Array
(
)
[arrRelations:protected] => Array
(
[pid] => Array
(
[table] => tl_iso_tax_class
[field] => id
[type] => belongsTo
[load] => lazy
)
[config] => Array
(
[table] => tl_iso_config
[field] => id
[type] => hasOne
[load] => lazy
)
[groups] => Array
(
[table] => tl_member_group
[field] => id
[type] => hasMany
[load] => lazy
)
)
[arrRelated:protected] => Array
(
)
[blnPreventSaving:protected] =>
)
)
[blnPreventSaving:protected] =>
)
)
[blnPreventSaving:protected] =>
)
)
)
[arrAttributes:protected] => Array
(
[0] => type
[1] => pages
[2] => alias
[3] => sku
[4] => name
[5] => description
[6] => teaser
[7] => price
[8] => baseprice
[9] => images
[10] => published
[11] => start
[12] => stop
[13] => meta_description
)
[arrVariantAttributes:protected] => Array
(
)
[arrVariantIds:protected] =>
[arrOptions:protected] => Array
(
)
[arrCategories:protected] => Array
(
[0] => 4
)
[strFormId:protected] => iso_product_1
[hasUpload:protected] =>
[doNotSubmit:protected] =>
[arrData:protected] => Array
(
[id] => 1
[pid] => 0
[gid] => 1
[tstamp] => 1404294193
[language] => de
[dateAdded] => 1393430632
[type] => 2
[orderPages] => a:1:{i:0;s:1:"4";}
[inherit] =>
[alias] => Pfoten-balsam
[sku] => AL 001
[name] => Pfoten-Balsam
[teaser] => 50 ml
[description] => <p>PFOTEN BALSAM (50 ml)</p>
<p>Unser Pfoten-Balsam schützt und entspannt die Pfoten Deines Hundes auf besonders natürliche Weise und ist ideal für die tägliche Anwendung nach ausgiebigen Spaziergängen.</p>
<p>Durch die Zugabe von hochwertigem BIO Jojoba-Öl sowie Argan-Öl werden die beanspruchten Pfoten wohltuend beruhigt und nachhaltig gepflegt.<br>Der Pfoten-Balsam schützt die Ballen durch einen langanhaltenden, wasserabweisenden Schutzfilm vor Nässe, Schnee, Streusalz und negativen Umwelteinflüssen und beugt der Entstehung von trockenen, rissigen und spröden Pfoten vor.</p>
<p>Um einen möglichst natürlichen Schutz gewährleisten zu können, stellen wir unser Produkt:</p>
<ul>
<li>ohne Alkohol</li>
<li>ohne Parabene</li>
<li>ohne Farbstoffe und ohne Mineralöl her.</li>
</ul>
<p>Die Entwicklung und Herstellung findet ausschließlich in Deutschland und ohne Tierversuche statt.</p>
[meta_description] => Pfoten-Balsam schützt und entspannt die Pfoten Deines Hundes auf besonders natürliche Weise.
[baseprice] => a:2:{s:4:"unit";s:1:"1";s:5:"value";s:2:"50";}
Meine PHP-Kenntnisse tendieren gegen Null, versucht habe ich folgendes:
Code:
<?php echo $item['meta_description']; ?>
Ich weiß, das kann nicht funktionieren weil es in einem Array liegt.
Aber wie komme ich an die Ausgabe?
Gruß Michael
Lesezeichen