【问题标题】:how to findout a promotion applied from a coupon in atg如何在 atg 中查找优惠券中应用的促销活动
【发布时间】:2014-02-21 01:24:57
【问题描述】:

我们可以将促销分配给优惠券并在 ATG 10.0.x 中兑换。我们如何才能从 atg order 中的哪个优惠券中找出应用了哪个促销活动?

我们是开箱即用的还是需要进行任何自定义才能添加它?

【问题讨论】:

    标签: atg coupon oracle-commerce


    【解决方案1】:

    我想问题是查找/查询应用了特定优惠券和促销的订单。 可以通过将订单价格信息对象映射到价格信息对象的调整来做到这一点。

    一个简单的查询就像..

    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>'));
    

    【讨论】:

      【解决方案2】:

      应用的促销作为 调整 存储在它们所应用的 PriceInfo 组件中。因此,如果您有Free Shipping 的优惠券,您可以按以下方式取回应用的折扣:

              OrderPriceInfo orderPriceInfo = order.getPriceInfo();
              Map<String, OrderPriceInfo> shippingItemsPriceInfos = orderPriceInfo.getShippingItemsSubtotalPriceInfos();
      
              OrderPriceInfo shippingItemsPriceInfo = shippingItemsPriceInfos.get(shippingGroup.getId());
      
              List<PriceAdjustment> adjs = shippingItemsPriceInfo.getAdjustments();
      

      【讨论】:

      • 如果您想以编程方式查找优惠券,ClaimableTools 中还有一种方法可以获取促销优惠券。 RepositoryItem[] getCouponsForPromotion(String pPromotionId)
      • 感谢您的回复。 @radimpe:我想知道我们如何获得由于这张特殊优惠券而应用此 PriceAdjustment 的关系?
      【解决方案3】:

      dcs_usr_actvpromo:此表是外部参照表,带有促销统计表的序列号。

      dcs_usr_promostat:这将包含带有到期日期标记到配置文件的促销列表

      dcs_usr_usedpromo:此表将包含配置文件中已使用的促销活动(客户已使用的促销活动)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-04-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-12-31
        • 1970-01-01
        • 1970-01-01
        • 2021-04-09
        相关资源
        最近更新 更多