我一直在通过阅读文档来搜索如何将促销附加到我计划使用发货方法ID作为标识符的发货方法上。
看起来像这样的代码:
dw.order.ShippingLineItem.getShippingPriceAdjustments()但是我不知道如何使用发货方式ID获得促销。
有没有人?
发布于 2015-08-04 17:35:28
PromotionMgr.getActiveCustomerPromotions().getShippingPromotions(shippingMethod : ShippingMethod)解释:
getActiveCustomerPromotions()获取当前用户(storefront用户)的所有已激活促销。您可以通过getActivePromotions()getShippingPromotions()获取全球促销get促销将通过ShippingMgr类为特定的发货方法激活https://stackoverflow.com/questions/27123190
复制相似问题