Jump to content

Incresed the QTY option to +24 in check out page?


Recommended Posts

Hi to all

 

I would like to change the number of + and - sign in prestashop store check out page. I have used 1.5.6 version.

 

By the default in the check out page when we have clicked the + or - sign normally the product QTY has been increased or decreased +1 or -1.

 

But here i would like to increased or decreased +24 or -24.

 

So please help me would be better.

 

Please find attached as well.

 

http://wholesale-genie.com/

post-618037-0-68488600-1394882500_thumb.png

Edited by Prabukaran (see edit history)
Link to comment
Share on other sites

Go to your theme folder/js/cart-summary.sj

Find here: 

function upQuantity(id, qty)
{
	if (typeof(qty) == 'undefined' || !qty)
		qty = 1;
	var customizationId = 0;
	var productId = 0;
	var productAttributeId = 0;
	var id_address_delivery = 0;
	var ids = 0;
	ids = id.split('_');

And change qty = 1; on qty = 24;

 

Also find here: 

function downQuantity(id, qty)
{
	var val = $('input[name=quantity_'+id+']').val();
	var newVal = val;
	if(typeof(qty) == 'undefined' || !qty)
	{
		qty = 1;
		newVal = val - 1;
	}
	else if (qty < 0)
		qty = -qty;

	var customizationId = 0;

And change qty = 1; on qty = 24;

Link to comment
Share on other sites

×
×
  • Create New...