我正在写我的magento商店的延期,基本上给所有订阅的订阅客户提供5%的折扣 . 扩展程序正在运行,但现在问题是它没有显示客户输入的促销代码折扣 . 我正在使用此代码获得折扣:
$address->setDiscountAmount($total - $discountAmount);
$address->setDiscountDescription("5% Discounted Subtotal");
$address->setBaseDiscountAmount($total - $discountAmount);
我想知道是否有任何magento方法或函数获得购物车所有应用折扣的数组 . 或者如果有人能告诉我在哪里可以找到magento中所有可用功能的列表 .
1 回答
要获得购物车中所有商品的总折扣,您可以试试这个,