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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?