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

john_duchock
Kilo Guru

Start off like this:



ss2.jpg



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



  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:


<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.



SS.jpg


Please flag this as helpful if it in fact helped



Cheers



John Duchock


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.


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.


Hi,



I think for individual catalog items you can personalize the form to include the two fields below. This is probably the easiest option for omitting the price and quantity from specific catalog items.


personalize cat item.png