Supplier - Item Name - Price on Separate Rows in CatalogList
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Supplier - Item Name - Price on Separate Rows in CatalogList
Hi,
OK I've implemented your steps but still not seeing the brand. Specifically:
1.) Created brand attributes and assigned them to products
2.) TS->Setup now has:
3/4.) Modified products-standard.php ... Full disclosure: In the interest of getting a proof of concept as fast as possible, I modified like this:
... but the result is still the same - see attached - just shows media, then description, then price. Need media, then brand, then product/description, then price.
-S.
OK I've implemented your steps but still not seeing the brand. Specifically:
1.) Created brand attributes and assigned them to products
2.) TS->Setup now has:
Code: Select all
plugin.tx_aimeos.settings.client.html.catalog.lists.domains {
0 = media
1 = price
2 = text
3 = attribute
}
Code: Select all
<div class="text-list">
<h2 itemprop="name"><?= $enc->html( $productItem->getName(), $enc::TRUST ); ?></h2>
<?php foreach( $productItem->getRefItems( 'text', 'short', 'default' ) as $textItem ) : ?>
<!-- /* Added by Scott 20190719 to show brand in FE catagloue list */ -->
<?php if( ( $attrItem = current( $productItem->getRefItems( 'attribute', 'brand', 'default' ) ) ) !== false ) : ?>
<?= $enc->html( $attrItem->getName() ) ?>
<?php endif ?>
<div class="text-item" itemprop="description">
<?= $enc->html( $textItem->getContent(), $enc::TRUST ); ?><br/>
</div>
<?php endforeach; ?>
</div>
... but the result is still the same - see attached - just shows media, then description, then price. Need media, then brand, then product/description, then price.
-S.
- Attachments
-
- Screenshot_2019-06-29 Car Racks.png (22.84 KiB) Viewed 1544 times
Re: Supplier - Item Name - Price on Separate Rows in CatalogList
Your code is correct. Can you show how you've assigned the attribute to the product? Is the attribute and type enabled?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 95
- Joined: 13 May 2019, 08:09
Re: Supplier - Item Name - Price on Separate Rows in CatalogList
Hi,
Thanks for the confirmation. Product attribute assignment attached, as well as confirmation the Brand attribute is enabled
-S.
Thanks for the confirmation. Product attribute assignment attached, as well as confirmation the Brand attribute is enabled
-S.
- Attachments
-
- Screenshot_2019-07-18-2 [TYPO3 CMS 8 7 4].png (21.73 KiB) Viewed 1543 times
-
- Screenshot_2019-07-18 [TYPO3 CMS 8 7 4].png (27.5 KiB) Viewed 1543 times
Re: Supplier - Item Name - Price on Separate Rows in CatalogList
Types are case sensitive, so "Brand" and "brand" are different entities.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star