Supplier - Item Name - Price on Separate Rows in CatalogList

Questions around the TYPO3 integration and plugins
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!
superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Re: Supplier - Item Name - Price on Separate Rows in CatalogList

Post by superscotty19 » 17 Jul 2019, 23:07

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:

Code: Select all

plugin.tx_aimeos.settings.client.html.catalog.lists.domains {
   0 = media
   1 = price
   2 = text
   3 = attribute
}
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:

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
Screenshot_2019-06-29 Car Racks.png (22.84 KiB) Viewed 1434 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Supplier - Item Name - Price on Separate Rows in CatalogList

Post by aimeos » 18 Jul 2019, 17:18

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, Image give us a star

superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Re: Supplier - Item Name - Price on Separate Rows in CatalogList

Post by superscotty19 » 18 Jul 2019, 21:10

Hi,

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
Screenshot_2019-07-18-2 [TYPO3 CMS 8 7 4].png (21.73 KiB) Viewed 1433 times
Screenshot_2019-07-18 [TYPO3 CMS 8 7 4].png
Screenshot_2019-07-18 [TYPO3 CMS 8 7 4].png (27.5 KiB) Viewed 1433 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Supplier - Item Name - Price on Separate Rows in CatalogList

Post by aimeos » 19 Jul 2019, 08:42

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, Image give us a star

Post Reply