简体   繁体   English

magento购物车价格规则中的可配置产品

[英]Configurable products in shopping cart price rules in magento

I have set up some cart price rules that provide a bulk discount for products in a certain category. 我已经建立了一些购物车价格规则,可以为特定类别的产品提供大量折扣。 It works fine for simple products but unfortunately it seems to ignore configurable products. 它适用于简单的产品,但不幸的是,它似乎忽略了可配置的产品。 My rules are: 我的规则是:

购物车规则

Is there a setting I need to change to include configurable products? 是否需要更改设置以包括可配置产品?

Based on the comments I think we both agree this is irregular. 根据评论,我认为我们都同意这是不正常的。 Double check that the configurable and the simple products are in the same category, and then (you are probably doing this already) add a simple product to the cart and add the same simple product via a configured product and take a look at the results. 仔细检查可配置产品和简单产品是否在同一类别中,然后(您可能已经在做)将简单产品添加到购物车,并通过已配置产品添加相同的简单产品,然后查看结果。

But before you do that, follow carefully my (paranoid) process for applying sale rules (this is what I do for Catalog Price Rules and shouldn't really be necessary for shopping cart rules but when Magento-based paranoia creeps in I turn to my obsessive-compulsive behaviour): 但是在您执行此操作之前,请仔细遵循我的适用销售规则的(偏执狂)过程(这是我对商品目录价格规则所做的事情,对于购物车规则来说并不是真正必要的,但是当基于Magento的偏执狂蔓延时,我转向我的强迫行为):

  1. Re-index everything 重新索引所有内容
  2. Refresh the caches 刷新缓存
  3. 'Save and apply' the rule to apply it to the fresh indexes “保存并应用”规则以将其应用到新索引
  4. Re-index again 重新索引
  5. Refresh the caches again 再次刷新缓存

Now test the sales rules. 现在测试销售规则。 The process is paranoid because for sure not everything needs re-indexed nor cache-refreshed and I haven't read all the code to understand from which tables or caches Magento build's its sale rule information from, but from real-life practice I know it can be difficult to get Magento to apply the rules. 这个过程是偏执狂,因为可以肯定的是,并非所有内容都需要重新索引或缓存刷新,而且我还没有阅读所有代码来了解Magento从哪个表或缓存中构建销售规则信息,但是从现实生活中我知道让Magento应用规则可能很困难。

I am not aware of a setting to explicitly include configurable products. 我不知道明确包含可配置产品的设置。

Check that there are not other rules with logic that excludes the configurable product. 检查是否存在没有其他逻辑排除可配置产品的规则。

If it remains a mystery, maybe creating a new configurable with only one simple item would help flush out the setting or glitch that is causing this behaviour - I think that would be a good point to start debugging if you need to roll up your sleeves and get into the code. 如果仍然是一个谜,也许只用一个简单的项目创建一个新的可配置项目将有助于消除导致此行为的设置或故障-我认为如果需要卷起袖子并开始调试,这将是开始调试的好方法进入代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM