How do you remove/hide "Delivery Time" from the "Order this item" summary?

salvadormarchan
Kilo Guru

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

1 ACCEPTED SOLUTION

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.


View solution in original post

13 REPLIES 13

A small clarification on John's response. . .   The "set value to push a zero time"   means on the workflow's "Schedule" property section, you need to set the days/hours/minutes/seconds to zero.   It took me a bit to understand where to find the right time value.


Hi John,


        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):



  1. Navigate to UI Macros
  2. Locate the sc_cart_main UI macro
  3. Review the XML.   Towards the bottom of the script is the delivery_time variable definition
  4. Delete or use REM marks (<!-- blahblah -->) to exclude this bit:
  5. <j:set var="jvar_wf" value="${sc_cat_item.workflow}"/>  
  6.       <j:if test="${!empty(jvar_wf)}">  
  7.               <g:evaluate var="jvar_wf_delivery_time" jelly="true" expression="new Workflow().getEstimatedDeliveryTime(jelly.jvar_wf);" />  
  8.               <tr>  
  9.                       <j:if test="${jvar_wf_delivery_time != ''}">  
  10.                               <td>  
  11.                                     <strong>${gs.getMessage('catalog_delivery_time')}</strong>  
  12.                                     </td>                                
  13.                               <td>${jvar_wf_delivery_time}</td>  
  14.                       </j:if>  
  15.               </tr>  
  16.       </j:if>  
  17.  
  18.       <j:if test="${empty(jvar_wf)}">  
  19.               <j:if test="${sc_cat_item.delivery_plan.total_delivery_time.getDisplayValue().length > 0}">  
  20.                       <tr>  
  21.                               <td>  
  22.                                       <strong>${gs.getMessage('catalog_delivery_time')}</strong>                                                
  23.                               </td>                                
  24.                               <td>  
  25.                                       ${sc_cat_item.delivery_plan.total_delivery_time.getDisplayValue()}                                          
  26.                               </td>  
  27.                       </tr>  
  28.               </j:if>  
  29.       </j:if>        


Save your changes and your delivery time should now be


In Fuji you can hide Delivery Time using:


Service Catalog->Catalog Definitions->Maintain Cart Layouts



Once there, navigate to Target type: Browser Widget


Then choose Item Ordering Widget.



Uncheck the Delivery time checkbox.


Thanks Daniel for replying. We are using the Eureka version and I figured out what I needed to do in that version to remove it.



Have an Awesome Weekend.



Karen


Thanks a lot Daniel for your valuable information



Have a Nice Weekend Cheers..



Karthikeyan Durairaj