cancel
Showing results for 
Search instead for 
Did you mean: 

How to override promotionsTab.zul?

Former Member
0 Kudos

Hello,

I would like to inquire how to override the promotionsTab.zul?, promotionsTab.zul is used in displaying the "Promotions" tab of the Order. I need to remove <label sclass="promo-description" value="${each.description}" />

FROM:

 <div sclass="promo-heading">
                     <label if="${each.applied}" sclass="promo-result" value="${c:l('hmc.msg.poe.applied')}" />
                     <label if="${!each.applied}" sclass="promo-result" value="${c:l('hmc.msg.poe.notapplied')}" />
                     <label sclass="promo-code" value="${each.promotion.code}" />
                     ***<label sclass="promo-description" value="${each.description}" />***
                 </div>

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

There are two ways to do that

  1. Add the extension in your extensioninfo.xml file and create the same exact file with your changes in it. This is helpful when you need to make changes more specific to the extension rather than a single file.

  2. In your custom extensions folder under config - customize folder create the same exact folder structure for promotionsTab.zul, add your version of file(promotionsTab.zul) with the changes in it and run ant clean customize at least once after the changes. This way only one file can be overridden which seems to be beneficial in your case.