如何找到从atg优惠券中应用的促销活动

时间:2014-01-29 10:06:26

标签: atg coupon oracle-commerce

我们可以为优惠券分配促销并在ATG 10.0.x中兑换优惠券。我们如何才能找出哪种促销适用于哪种优惠券?

我们是否已开箱即用或需要进行任何自定义才能添加此内容?

3 个答案:

答案 0 :(得分:1)

我想问题是查找/查询应用特定优惠券和促销的订单。 可以通过将订单价格 - 信息对象映射到标记为price-info对象的调整来实现。

一个简单的查询就像..

select * from dcspp_order where price_info in (
select amount_info_id from dcspp_amtinfo_adj where adjustments in 
(select dcspp_price_adjust.ADJUSTMENT_ID from dcspp_price_adjust where coupon_id = '<coupon_code>'));

答案 1 :(得分:0)

已应用的促销活动存储为 adjust 针对其应用的PriceInfo组件。因此,如果您有Free Shipping的优惠券,您可以按照以下方式取回已应用的折扣:

        OrderPriceInfo orderPriceInfo = order.getPriceInfo();
        Map<String, OrderPriceInfo> shippingItemsPriceInfos = orderPriceInfo.getShippingItemsSubtotalPriceInfos();

        OrderPriceInfo shippingItemsPriceInfo = shippingItemsPriceInfos.get(shippingGroup.getId());

        List<PriceAdjustment> adjs = shippingItemsPriceInfo.getAdjustments();

答案 2 :(得分:0)

dcs_usr_actvpromo:此表是xref表,其中包含promo stat table的序列号。

dcs_usr_promostat:这将包含已将有效期限标记到个人资料的促销列表

dcs_usr_usedpromo:此表格将包含个人资料中使用过的促销信息(已从客户处使用的促销活动)

相关问题