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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?