Skip to Content
author's profile photo Former Member
Former Member

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

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.

alt text

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 11:52 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.