- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2014 01:22 PM
Hi All,
I need some help on this scenario:
When ordering a catalog item, there is a "Order this item" summary, normally located at the upper-mid right side of the screen. (Please see screenshot.)
Basically, we do not need the 'Delivery time 7 Days' ...how do I hide/remove it?
Thanks in advance.
Dor
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2014 07:53 AM
I forgot to add a very important caveat: If you use this method, you will "OWN" the macro, meaning that when you upgrade, this macro will not be updated.
Another alternative would be to set a workflow "set value" to push a zero time. A zero time will not display and therefore the Delivery Time information will not display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2014 02:07 PM
Start off like this:
First off: MAKE A BACKUP OF THE SC_CART_MAIN UI MACRO...
don't forget to backup your stuff before making changes !
Next, do the following
- 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 gone from the form.
Please flag this as helpful if it in fact helped
Cheers
John Duchock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2014 07:53 AM
I forgot to add a very important caveat: If you use this method, you will "OWN" the macro, meaning that when you upgrade, this macro will not be updated.
Another alternative would be to set a workflow "set value" to push a zero time. A zero time will not display and therefore the Delivery Time information will not display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2014 03:58 AM
Hi John,
I have a similar kind of requirement but I want to hide delievery,quantity and price for only particular catalog items and categories.
Is this is possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2014 05:26 AM