Adding Quantity value for particular Ctalog Item

sach1
Tera Guru

Hello Everyone,

 

I want to add some new value to the quantity field in Shopping cart of catalog item.

 

I tried using the sys_choice table to enter new values but this new values reflect for every catalog item present.

 

To increase or reduce the quantities that a customer can select for catalog items:

  1. Navigate to System Definition > Choice Lists.
  2. Filter the list for records with Table set to sc_cart_item and the Element set to quantity. The existing quantity choices appear.

 

Is there any way to restrict the new choices only to a particular catalog item ??

 

Regards,

Sachin

1 ACCEPTED SOLUTION

sach1
Tera Guru

Well at the end catalog client script helped.



Wrote a small onLoad script for the catalog item.



function onLoad() {


  document.getElementById("quantity").innerHTML ='<option value="1" SELECTED="SELECTED">1</option><option value="4">4</option><option value="8">8</option><option value="12">12</option><option value="16">16</option><option value="20">20</option>';


}


View solution in original post

7 REPLIES 7

sach1
Tera Guru

Well I thought may be Catalog client script would be of some help but i got stucked.



Quantity dropdown on the shopping cart is not a variable. Can any one help me to get this by modifying the macro 'catalog_cart_default'


sach1
Tera Guru

Well at the end catalog client script helped.



Wrote a small onLoad script for the catalog item.



function onLoad() {


  document.getElementById("quantity").innerHTML ='<option value="1" SELECTED="SELECTED">1</option><option value="4">4</option><option value="8">8</option><option value="12">12</option><option value="16">16</option><option value="20">20</option>';


}


Naveen6
Tera Contributor

HI Sachin,



I have same situation like above..


I used this script and it is working in chrome, firefox and It is not working in IE8 browser.



Is there any other way to do this...


Ram it worked for me on all the browsers