类别中的产品列表使用未知模板

时间:2015-06-02 14:54:39

标签: php html magento templates magento-1.9

在示例类别中,使用未知模板列出结果产品。我将pagayo电子主题作为默认值。它使用名为item-review的类和item-bottom进行列表。它们不是html代码。 代码是这样的:

<ul class="products-grid">
                <li class="item first">
            <a href="http://magicfly.ir/mentalism/13-steps-to-mentalism.html" title="13 Steps to Mentalism" class="product-image"><img src="http://magicfly.ir/media/catalog/product/cache/1/small_image/135x/9df78eab33525d08d6e5fb8d27136e95/1/3/13steps2.jpg" width="135" height="135" alt="13 Steps to Mentalism" /></a>
            <h2 class="product-name"><a href="http://magicfly.ir/mentalism/13-steps-to-mentalism.html" title="13 Steps to Mentalism">13 Steps to Mentalism</a></h2>
                                <div class="ratings">
            <span class="amount"><a href="#" onclick="var t = opener ? opener.window : window; t.location.href='http://magicfly.ir/review/product/list/id/10/category/15/'; return false;">1 نظر</a></span>
</div>



<div class="price-box">
                                                            <span class="regular-price" id="product-price-10">
                                        <span class="price">30٬000 تومان</span>                                    </span>

    </div>

                            <div class="actions">

                                                        <p><button type="button" title="افزودن به سبد" class="button btn-cart" onclick="setLocationAjax('http://magicfly.ir/checkout/cart/add/uenc/aHR0cDovL21hZ2ljZmx5LmlyL21lbnRhbGlzbS5odG1s/product/10/form_key/Ql6smZ0IvKikUDgX/','10')"><span><span>افزودن به سبد</span></span></button></p>

                                                                                    <ul class="add-to-links">
                                                        <li><a href="#" onclick='ajaxWishlist("http://magicfly.ir/wishlist/index/add/product/10/form_key/Ql6smZ0IvKikUDgX/","10");return false;' class="link-wishlist">افزودن به لیست دلخواه</a></li>
                                                                                    <li><span class="separator">|</span> <a href="#" onclick='ajaxCompare("http://magicfly.ir/catalog/product_compare/add/product/10/uenc/aHR0cDovL21hZ2ljZmx5LmlyL21lbnRhbGlzbS5odG1s/form_key/Ql6smZ0IvKikUDgX/","10");return false;' class="link-compare">افزودن به مقایسه</a></li>

                    </ul>

虽然它应该是这样的(包含item-review和item-bottom类):

<ul class="products-grid first odd">
                <li class="item first">
                            <a href="http://demo.pagayo.com/pagayotheme001/accessories/apple-tv.html" title="Apple TV" class="product-image"><img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/a/p/apple-tv-1.jpg" alt="Apple TV" height="210" width="210"></a>
            <div class="item-review">
                                                                            </div>
            <div class="item-bottom">
                <h2 class="product-name"><a href="http://demo.pagayo.com/pagayotheme001/accessories/apple-tv.html" title="Apple TV">Apple TV</a></h2>



<div class="price-box">
                                                        <span class="regular-price" id="product-price-9">
                                        <span class="price">$99.00</span>                                    </span>

    </div>

                <div class="actions">
                                                <button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/9/')"><span><span>Add to Cart</span></span></button>
                                        </div>
            </div>

        </li>
                                <li class="item">
                            <a href="http://demo.pagayo.com/pagayotheme001/accessories/bose-sounddock-portable-digital-music-system.html" title="Bose SoundDock Portable Digital Music System" class="product-image"><img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/4/_/4.jpg" alt="Bose SoundDock Portable Digital Music System" height="210" width="210"></a>
            <div class="item-review">
                                            <div class="ratings">
                <div class="rating-box">
            <div class="rating" style="width:97%"></div>
        </div>
            <span class="amount"><a href="#" onclick="var t = opener ? opener.window : window; t.location.href='http://demo.pagayo.com/pagayotheme001/review/product/list/id/22/category/13/'; return false;">2 Review(s)</a></span>
</div>
                                </div>
            <div class="item-bottom">
                <h2 class="product-name"><a href="http://demo.pagayo.com/pagayotheme001/accessories/bose-sounddock-portable-digital-music-system.html" title="Bose SoundDock Portable Digital Music System">Bose SoundDock Portable Digital Music System</a></h2>



<div class="price-box">
                                                        <span class="regular-price" id="product-price-22">
                                        <span class="price">$399.95</span>                                    </span>

    </div>

                <div class="actions">
                                                <button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/22/')"><span><span>Add to Cart</span></span></button>
                                        </div>
            </div>

        </li>
                                <li class="item last">
                            <a href="http://demo.pagayo.com/pagayotheme001/accessories/bose-soundlink-bluetooth-mobile-speaker-ii.html" title="Bose SoundLink Bluetooth Mobile speaker II" class="product-image"><img src="http://demo.pagayo.com/media/catalog/product/cache/1/small_image/210x/9df78eab33525d08d6e5fb8d27136e95/1/_/1.jpg" alt="Bose SoundLink Bluetooth Mobile speaker II" height="210" width="210"></a>
            <div class="item-review">
                                                                            </div>
            <div class="item-bottom">
                <h2 class="product-name"><a href="http://demo.pagayo.com/pagayotheme001/accessories/bose-soundlink-bluetooth-mobile-speaker-ii.html" title="Bose SoundLink Bluetooth Mobile speaker II">Bose SoundLink Bluetooth Mobile speaker II</a></h2>



<div class="price-box">
                                                        <span class="regular-price" id="product-price-21">
                                        <span class="price">$349.95</span>                                    </span>

    </div>

                <div class="actions">
                                                <button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('http://demo.pagayo.com/pagayotheme001/checkout/cart/add/uenc/aHR0cDovL2RlbW8ucGFnYXlvLmNvbS9wYWdheW90aGVtZTAwMS9hY2Nlc3Nvcmllcy5odG1s/product/21/')"><span><span>Add to Cart</span></span></button>
                                        </div>
            </div>

        </li>
            </ul>

in

  

/app/design/frontend/default/pagayo-theme-001/template/catalog/product/list.phtml

它被正确包装但似乎它使用了另一个不包装它的主题。 我没有为类别或任何产品指定自定义模板。 这里令人惊奇的是我检查了基本模板的list.phtml并将pagayo list.phtml复制到了base。什么也没发生。

我希望它使用我在配置中指定的默认主题或至少找到这段代码的phtml文件进行编辑并使其正确。

1 个答案:

答案 0 :(得分:1)

没有看到它必须推断解决方案。可能性是:

1)可能存在未正确选择的Magento包的问题。 系统 - &GT;配置 - &GT;设计 - &GT;包 2)如果要查看使用模板路径提示的模板 系统 - &GT;配置 - &GT;开发者 - &gt;调试 - &gt;模板路径提示选择为打开 清除缓存并刷新页面。