Reputation: 1223
I would like to set the "Including free shipping" option to no in HMC for all the vouchers available. Is there any way I can do that in hybris?
To be more precise, I would like to have in default, the free shipping option to No so I won't find this in HMC:
Upvotes: 0
Views: 549
Reputation: 1593
The batch impex which sets the "freeShipping" attribute to false for all of the promotion vouchers is:
UPDATE PromotionVoucher [batchmode=true];itemType(code)[unique=true]; freeShipping[default=false];
;PromotionVoucher;
To run the impex go to hac-> Console -> ImpEx Import.
The above impex works and was tested on Hybris 5.5.1.0
Upvotes: 0
Reputation: 5758
You need make changes on type (xxx-item.xml) for changing default value. You can develop groovy script or batch impex batch for updating existing promotions.
Upvotes: 1