Jesse James
Jesse James

Reputation: 1223

Hybris - Setting "including free shipping" to "No" for all vouchers in HMC

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?

enter image description here

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: enter image description here

Upvotes: 0

Views: 549

Answers (2)

dj_frunza
dj_frunza

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

mkysoft
mkysoft

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

Related Questions