2016-03-19 9 views
0

Magento 2をコンポーザにインストールしてサンプルデータをインポートしたら、新しいテーマを作成したいと思います。私はfrontend developer guideに従っていますが、私の新しいテーマを適用すると、カテゴリー内で自分の製品を見ることができません。フィルタ付きの左メニューはまだ表示されていますが、商品は表示されません。Magento 2 - テーマを表示する製品の問題を作成する

私のための解決策はありますか?

PS:私の英語のため申し訳ありません... :)

+0

あなた自身のテーマのいくつかのコードを共有できますか?私たちは何が間違っているのか分からない。また、スクリーンショットは問題を示すのに役立ちます。 – FelisCatus

答えて

0

Here are my files

registration.php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME, 
    'frontend/OORun/running', 
    __DIR__ 
); 

theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> 
    <title>Running</title> 
    <parent>Magento/blank</parent> 
    <media> 
     <preview_image></preview_image> <!-- the path to your theme's preview image --> 
    </media> 
</theme> 

Screenshot : no products

編集: 私は問題は、私はこのファイルを削除すると

<images module="Magento_Catalog"> 
    <image id="category_page_grid" type="small_image"> 
     <width>150</width> 
     <height>150</height> 
    </image> 
</images> 

を/etc/view.xmlに関連することがわかったが、すべての製品が正しく表示されます。 私はドキュメントの例をコピーしましたが、私が間違ったことを理解していません...

関連する問題