- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2020
02:28 AM
02-25-2020
02:28 AM
Attribute in list.html
Hallo,
ich möchte gerne hinterlegte Produkt-Atrribute auf der "list.html" ausgeben
Es sind einfache Textfelder die dort abgebildet werden sollen!
In der Datei "attribute.phtml" habe ich das so hinbekommen:
echo 'Preis pro ', $_product->geteinheit(),' ', $_product->getgroesse(),' Liter';
Bei der list.html funktioniert das leider nicht!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2020
05:44 PM
02-25-2020
05:44 PM
Re: Attribute in list.html
Hi @markus_stange,
Try the below one:
$_product->getUnit()
$_product->getGroesse()
First attribute character should be CAPs after get.
or try the below
$_product->getData('unit'); $_product->getData('groesse');
Also make sure that you have selected Used in Product Listing=>Yes in the product attribute settings.
I hope it will help you!