Show "Quantity" choices for particular Catalog item

monika141
Kilo Contributor

Hello All,

I have requirement to increase "Quantity" choices upto 100 for single Catalog Item.

1)I have added 100 choices in sc_cart_item table. But here challenge is it has updated for all Catalog items.

find_real_file.png

2)Is there any way to restrict it for particular catalog item?

Thanks

Monika

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Monika,



You may find the below thread helpful.


Adding Quantity value for particular Ctalog Item


View solution in original post

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Monika,



You may find the below thread helpful.


Adding Quantity value for particular Ctalog Item


Hello Pradeep,


Thank you for instant reply. I already tried that script but it is not working for me. I wrote catalog client script for that item. It is working fine for that catalog item but it is showing 100 choices for other items also


find_real_file.png


Try the below in an onload catalog client script



function onLoad() {


    //Type appropriate comment here, and begin script below


try{


    var x = document.getElementById("quantity");


      var option = document.createElement("option");




      option.text = 12;


      x.add(option);


}


catch(e)


{


alert("There is some error");


}



}



You can use it to add multiple options


Anyone have this working for Service Portal? using $('quantity) or document.getElementByID('quantity') won't work for SP.