类别中的产品列表使用未知模板
product list in category use unknown template
在示例类别中,结果产品使用未知模板列出。我有 pagayo electronics 主题,因为 default.It 使用名为 item-review 和 item-bottom 的 class 用于列表。它们不在 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 包裹 classes):
<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">.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">9.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">9.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>
在
/app/design/frontend/default/pagayo-theme-001/template/catalog/product/list.phtml
它已正确包装,但它似乎使用了另一个不包装它的主题。
我没有为类别或任何产品指定自定义模板。
令人惊奇的是我检查了基本模板的 list.phtml 并将 pagayo list.phtml 复制到基本模板。什么都没发生。
我希望它使用我在配置中指定的默认主题或者至少找到这段代码的phtml文件来编辑并使其正确。
没有看到它必须推断解决方案。可能性是:
1) 可能存在未正确 selected Magento 包的问题。
系统->配置->设计->打包
2)如果你想在模板路径提示上查看使用哪个模板
system->configuration-> Developer -> Debug -> Template Path Hints select 开启
清除缓存并刷新页面。
在示例类别中,结果产品使用未知模板列出。我有 pagayo electronics 主题,因为 default.It 使用名为 item-review 和 item-bottom 的 class 用于列表。它们不在 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 包裹 classes):
<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">.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">9.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">9.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>
在
/app/design/frontend/default/pagayo-theme-001/template/catalog/product/list.phtml
它已正确包装,但它似乎使用了另一个不包装它的主题。 我没有为类别或任何产品指定自定义模板。 令人惊奇的是我检查了基本模板的 list.phtml 并将 pagayo list.phtml 复制到基本模板。什么都没发生。
我希望它使用我在配置中指定的默认主题或者至少找到这段代码的phtml文件来编辑并使其正确。
没有看到它必须推断解决方案。可能性是:
1) 可能存在未正确 selected Magento 包的问题。 系统->配置->设计->打包 2)如果你想在模板路径提示上查看使用哪个模板 system->configuration-> Developer -> Debug -> Template Path Hints select 开启 清除缓存并刷新页面。