【发布时间】:2014-02-21 01:24:57
【问题描述】:
我们可以将促销分配给优惠券并在 ATG 10.0.x 中兑换。我们如何才能从 atg order 中的哪个优惠券中找出应用了哪个促销活动?
我们是开箱即用的还是需要进行任何自定义才能添加它?
【问题讨论】:
标签: atg coupon oracle-commerce
我们可以将促销分配给优惠券并在 ATG 10.0.x 中兑换。我们如何才能从 atg order 中的哪个优惠券中找出应用了哪个促销活动?
我们是开箱即用的还是需要进行任何自定义才能添加它?
【问题讨论】:
标签: atg coupon oracle-commerce
我想问题是查找/查询应用了特定优惠券和促销的订单。 可以通过将订单价格信息对象映射到价格信息对象的调整来做到这一点。
一个简单的查询就像..
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>'));
【讨论】:
应用的促销作为 调整 存储在它们所应用的 PriceInfo 组件中。因此,如果您有Free Shipping 的优惠券,您可以按以下方式取回应用的折扣:
OrderPriceInfo orderPriceInfo = order.getPriceInfo();
Map<String, OrderPriceInfo> shippingItemsPriceInfos = orderPriceInfo.getShippingItemsSubtotalPriceInfos();
OrderPriceInfo shippingItemsPriceInfo = shippingItemsPriceInfos.get(shippingGroup.getId());
List<PriceAdjustment> adjs = shippingItemsPriceInfo.getAdjustments();
【讨论】:
RepositoryItem[] getCouponsForPromotion(String pPromotionId)
dcs_usr_actvpromo:此表是外部参照表,带有促销统计表的序列号。
dcs_usr_promostat:这将包含带有到期日期标记到配置文件的促销列表
dcs_usr_usedpromo:此表将包含配置文件中已使用的促销活动(客户已使用的促销活动)
【讨论】: