Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用分级价格,并且对介于 1 和 4 之间的数量设置了价格,对于超过 4 的数量设置了每件商品的价格。
我想修改我的购物车,为数量 >= 1 && 数量 <=4 的商品设置价格
我怎么做?
这是我测试的项目:http ://stjamestutorials.com/ppptransportation/index.php/mayfield-falls-tours-negril-jamaica-tours.html
尝试为此事件创建一个观察者:
catalog_product_get_final_price
在类中找到:
app\code\core\Mage\Catalog\Model\Product\Type\Price.php
该事件附带产品和数量,因此您可以编写逻辑,然后在final_price产品属性中设置自定义价格。
final_price