cancel
Showing results for 
Search instead for 
Did you mean: 

Hide or deactivate a Button in HMC UI on a certain type of voucher

Former Member
0 Kudos

Our Problem is that we had to introduce a new type of voucher that is generated on a 3rd party system. The Hybris HMC user should therefor not be able to "generate" a new voucher code on this type of voucher.

We would therefor like to deactivate or remove the button "Generate" only on this type of voucher.

Former Member
0 Kudos

I have also found https://wiki.hybris.com/display/forum/HMC+Action+Items, but I don't know how/where to overwrite the isActive() method for the (action type="item" classname="de.hybris.platform.voucher.hmc.GeneratePromotionVoucherCodeAction" name="btn.generate.voucher.code.action"/).

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

well that can be achieved with some hmc.xml overrides in one of your project's extensions.

Former Member
0 Kudos

How can I override only for a certain type of voucher? What attribute do I have to set to hide a button? How can I select the button under the generate action (action type="item" classname="de.hybris.platform.voucher.hmc.GeneratePromotionVoucherCodeAction" name="btn.generate.voucher.code.action"/) to add the hidden/removed attribute?