Hallo zusammen, der Pfad zu den Thumbnails war media/image/thumbnail … Ich hole mir den Thumbnail-Pfad in meinem Plugin über das MediaServieInterface.php. Nun erhalte ich immer noch diesen oben genannten Pfad. Allerdings hat doch Shopware die gesamte Mediastruktur umgestellt. Über welches Interface erhalte ich denn nun den neuen Pfad zu den Thumbnails? Anbei ein Auszug aus meinem Plugin. [code]<?php namespace ShopwarePlugins\RiconAdvancedProductListing\StoreFrontBundle;
use Shopware\Bundle\StoreFrontBundle\Service\ListProductServiceInterface;
use Shopware\Bundle\StoreFrontBundle\Service\MediaServiceInterface;
use Shopware\Bundle\StoreFrontBundle\Service\ProductServiceInterface;
use Shopware\Bundle\StoreFrontBundle\Struct;
class ListProductService implements ListProductServiceInterface
{
private $service;
private $mediaService;
private $productService;
function __construct(ListProductServiceInterface $service, MediaServiceInterface $mediaService, ProductServiceInterface $productService) {
$this->service = $service; $this-\>mediaService = $mediaService; $this-\>productService = $productService; } public function getList(array $numbers, Struct\ProductContextInterface $context) { $products = $this-\>service-\>getList($numbers, $context); $media = $this-\>mediaService-\>getProductsMedia($products, $context); $productData = $this-\>productService-\>getList($numbers, $context); foreach($numbers as $number) { if (!is\_object($products[$number])) { } else { $product = $products[$number]; if (isset($media[$number])) { $attribute = new Struct\Attribute(['images' =\> $media[$number]]); $product-\>addAttribute('ricon\_plugin\_system', $attribute); } $attributeP = new Struct\Attribute(['info' =\> $productData[$number]]); $product-\>addAttribute('ricon\_plugin\_system\_2', $attributeP); $products[$number] = $product; } } return $products; } public function get($number, Struct\ProductContextInterface $context) { $products = $this-\>getList([$number], $context); return array\_shift($products); } }[/code] Danke schon mal für eure Hilfe. Gruß Max