How to hide HTML strong text using catalog client script???

mallikarjunared
Tera Contributor

Hi All,

I am unable to hide HTML text using catalog client script.   I want only Order Now button in the form.

Order.JPG

I wrote catalog client script and able to hide everything, but not Order this Item text which doesn't have Id in view source(HTML).

function onLoad()

{

  sc_delivery_time_label_cell.hide();

  sc_delivery_time_cell.hide();

  sc_cart_item_list.hide();

  price_subtotal_span.hide();

  price_subtotal_label_span.hide();

  price_label_span.hide();

  price_span.hide();

  quantity_label_span.hide();

  quantity.hide();

  oi_add_to_cart_button.hide();

}

Someone Plz let me know how to hide this Order this Item text in the form using catalog client script???

1 ACCEPTED SOLUTION

Hi Mallikarjuna,



A couple of observations:



a) you may want to remove the .hide() lines since these could be causing errors and so then stopping the execution of the script


b) try adding the script in an onChange catalog client script. I tried it in Fuji and it works (it removes the Order This Item label)



function onChange(control, oldValue, newValue, isLoading) {


    gel('qty').firstElementChild.childNodes[0].style.display = 'none';




    //Type appropriate comment here, and begin script below


   


}



Thanks,


Berny


View solution in original post

12 REPLIES 12

Hi


Even I am implementing the same. I want to hide the 'Order this item' label. I   am able to do with the scriptgel('qty').firstElementChild.childNodes[0].style.display = 'none';.



But it ll be for a particular catalog item if i write a onLoad script on catalog item. How to make it work for all the catalog item ??


Please help on this.




Thanks in advance


Hi Priya,



If you are using Fuji version, you can go to Service catalog-- Catalog Definitions--Maintain Cart Layouts and you can define the visibility as per your request. This is global, please be sure before making any changes.