duan02143 2016-07-01 17:52
浏览 40
已采纳

Magento自动销售类别未正确显示产品

I am trying to do an automatic sales category for my magento webshop. - I have followed this tutorial: https://www.creativemgroup.com/creative-media-web-services/magento-blog/68-create-a-magento-on-sale-category-the-right-way

The php script itself works as intended, as it shows the products with specialprice/on sale on sales category.

Problem: The product does not show the right way, the products needs to be shown as they are shown on my frontpage (With flags, shortdescription and so on)

see frontpage: Link Deleted

see salescategory: Link Deleted

I am almost sure, the problem is with the "Custom Design" xml for my category:

    <reference name="content">
    <remove name="product_list"/>
    <block type="catalog/product_sale" name="product_sale" alias="sale" template="catalog/product/list.phtml">
    <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
    <block type="page/html_pager" name="product_list_toolbar_pager"/>
    </block>
    <action method="setLimit"><limit>32</limit></action>
    <action method="setColumnCount"><columns>3</columns></action>
    <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
    <action method="addPriceBlockType">
    <type>bundle</type>
    <block>bundle/catalog_product_price</block>
    <template>bundle/catalog/product/price.phtml</template>
    </action>
    </block>
    </reference>
    <reference name="product_list_toolbar">
    <action method="setDefaultGridPerPage">
    <limit>32</limit>
    </action>
    </reference>

How do i get the right "Product" design for my sales category? I am not skilled in neither xml nor magento blocks

Hoping for a helping hand here.

  • 写回答

1条回答 默认 最新

  • dsgdg46465 2016-07-01 19:03
    关注

    As i kept searching for solutions to this problem, i came across the fact that.. maybe the php file did not bring my "custom" product-attributes to the array, from wich the product is build.

    I added these attributes to the php file, and boom - everything worked like a charm. (Hopefully this will help others in my situation)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺