如何插入数据以配置促销(条件,动作及其相关产品),而不是从后台进行。

2020-09-19 23:51发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我需要为600种产品创建促销数据。 我在下面发现了impex INSERT_UPDATE PromotionSourceRule; code [unique = true]; priority; maxAllowedRuns; stackable [default = false]; ruleGroup(code);条件; actions; website(Identifier)[default = $ defaultPromoGrp]; order_threshold_free_gift; 600; 1 ; true; orderPromotionRuleGroup;" [{"" children"":[],"" parameters"":{"" value"":{"" type"":"" Map(Reference(Currency),java.math。 BigDecimal)"","" uuid"":"" d504e38b-2abe-4ff2-a962-02f2eb3b9146"","" value"":{"" USD"":500}},""运算符"":{" " type"":"" java.lang.Enum(de.hybris.platform.ruledefinitions.AmountOperator)"","" uuid"":"" 0cc4f793-b83d-4e5b-990a-1b8207bd8ff9"",""值" ":"" GREATER_THAN_OR_EQUAL""}},"" definitionId"":"" y_cart_total""}]"";" [[""参数"":{""产品"":{""类型"":"" ItemType(产品)"","" uuid"":"" 70b1c6ce-9626-4801-8956-3b51345c2b5c"",""值"":"" 1687508""}},""数量"":{""类型 "":"" java.lang.Integer"","" uuid"":""" 4debb80d-8d1c-4ca5-be0d-ab65e7c9b17d"","" value"":1}},"" definitionId"":" " y_free_gift""}]";

这里的UUID是什么?

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我需要为600种产品创建促销数据。 我在下面发现了impex INSERT_UPDATE PromotionSourceRule; code [unique = true]; priority; maxAllowedRuns; stackable [default = false]; ruleGroup(code);条件; actions; website(Identifier)[default = $ defaultPromoGrp]; order_threshold_free_gift; 600; 1 ; true; orderPromotionRuleGroup;" [{"" children"":[],"" parameters"":{"" value"":{"" type"":"" Map(Reference(Currency),java.math。 BigDecimal)"","" uuid"":"" d504e38b-2abe-4ff2-a962-02f2eb3b9146"","" value"":{"" USD"":500}},""运算符"":{" " type"":"" java.lang.Enum(de.hybris.platform.ruledefinitions.AmountOperator)"","" uuid"":"" 0cc4f793-b83d-4e5b-990a-1b8207bd8ff9"",""值" ":"" GREATER_THAN_OR_EQUAL""}},"" definitionId"":"" y_cart_total""}]"";" [[""参数"":{""产品"":{""类型"":"" ItemType(产品)"","" uuid"":"" 70b1c6ce-9626-4801-8956-3b51345c2b5c"",""值"":"" 1687508""}},""数量"":{""类型 "":"" java.lang.Integer"","" uuid"":""" 4debb80d-8d1c-4ca5-be0d-ab65e7c9b17d"","" value"":1}},"" definitionId"":" " y_free_gift""}]";

这里的UUID是什么?

付费偷看设置
发送
2条回答
木偶小白
1楼-- · 2020-09-20 00:21

感谢Venki。 但在这里,我想配置一个免费的礼物操作,例如使用impex而不是从后台购买" buy 1 x get 1 y"。 您能否在这里建议我

xfwsx85
2楼-- · 2020-09-20 00:20

您好,

Rule uuid唯一地定义了规则,您可以在impex中给出一些唯一的值。 从后台创建时,OOTB代码可能会生成该值。

请参阅一些类如何使用Hybris:PromotionRuleCompilerListenerUnitTest和AbstractSourceRulesAwareIT

谢谢, Venki

一周热门 更多>