【问题标题】:discount calculation not working in Products and cart page折扣计算在产品和购物车页面中不起作用
【发布时间】:2017-03-02 09:46:41
【问题描述】:

我有 magento(v 1.9.2.4) 网站,我必须在每个产品及其在某些产品上的工作中付出 30%,而不是在其他一些产品上工作。

现在我正在编辑任何产品详细信息(更改名称或价格)然后,它适用于该特定产品并显示该产品的折扣。

对于解决方案,我做了索引管理,但它不起作用。

我们将不胜感激任何帮助或建议。

【问题讨论】:

  • `cron 是否在站点中工作`?
  • @user5348fh8y5:没有。
  • 如果可能的话从服务器端设置 cron 作业,如果你不确定 cron,你可以通过安装 aoe 调度器扩展来检查
  • @user5348fh8y5 : 我有 调度程序扩展 并且没有 cron。
  • 我不确定,这可能是原因......点击一次Apply rules按钮并检查......

标签: php magento magento-1.9 product discounts


【解决方案1】:

首先您可能需要与Catalog Price Rules核实

尝试点击Apply Rules按钮,您还需要在System->configuration->system->cron进行正确配置并关注this link

您定义了 catalog_product_save_commit_after 事件的观察者,以便在产品保存后将所有规则应用于产品:

<?xml version="1.0"?>

<!-- app/code/core/Mage/CatalogRule/etc/config.xml -->

<config>

    <!-- Other code -->

    <adminhtml>

        <!-- Other code -->

        <events>

            <!-- Other code -->

            <catalog_product_save_commit_after>
                <observers>
                    <catalogrule>
                        <class>catalogrule/observer</class>
                        <method>applyAllRulesOnProduct</method>
                    </catalogrule>
                </observers>
            </catalog_product_save_commit_after>

            <!-- Other code -->

        </events>
    </adminhtml>
</config>

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-07-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-09-27
  • 2011-04-24
相关资源
最近更新 更多