Commenting out xml code for a UI macro

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2015 07:15 AM
Good morning to you all,
I have a question about commenting out .xml code for a UI macro. I saw this information that was provided and I was trying to follow it but not really that familiar with .xml code
My name is Karen and I am having the same issue with the Delivery time. I am trying to follow your instructions of commenting out the .xml code but I am not familiar with .xml. Can you tell me exactly which line(s) need to be commented out and can you show me exactly how to comment it out. I know that you use the < !-- for the commenting, but am I commenting just one line of code or start it at one line and close it at another. I guess what I am asking is does every line that have DeliveryTime need to be commented out. See your instructions below (line 3, 5, 7, and 9):
- Navigate to UI Macros
- Locate the sc_cart_main UI macro
- Review the XML. Towards the bottom of the script is the delivery_time variable definition
- Delete or use REM marks (<!-- blahblah -->) to exclude this bit:
- <j:set var="jvar_wf" value="${sc_cat_item.workflow}"/>
- <j:if test="${!empty(jvar_wf)}">
- <g:evaluate var="jvar_wf_delivery_time" jelly="true" expression="new Workflow().getEstimatedDeliveryTime(jelly.jvar_wf);" />
- <tr>
- <j:if test="${jvar_wf_delivery_time != ''}">
- <td>
- <strong>${gs.getMessage('catalog_delivery_time')}</strong>
- </td>
- <td>${jvar_wf_delivery_time}</td>
- </j:if>
- </tr>
- </j:if>
- <j:if test="${empty(jvar_wf)}">
- <j:if test="${sc_cat_item.delivery_plan.total_delivery_time.getDisplayValue().length > 0}">
- <tr>
- <td>
- <strong>${gs.getMessage('catalog_delivery_time')}</strong>
- </td>
- <td>
- ${sc_cat_item.delivery_plan.total_delivery_time.getDisplayValue()}
- </td>
- </tr>
- </j:if>
- </j:if>
Save your changes and your delivery time should now be

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2015 07:25 AM
I think you could do <!-- on line 13 and --> on line 26.