Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a quantity box next to item??


Guest

Recommended Posts

I have installed a contribution which replaces the BUT NOW button to a checkbox and I am looking for a contribution which will allow me to add a box that customers can enter an amount of items thay want before adding to cart.

 

Can anyone point me to an easy solution?

 

Thanks in advance!

Link to comment
Share on other sites

Try:

 

http://www.oscommerce.com/community/contri...dd+quantity+box

 

here is the text from that solution:

 

easy way add Qty box in your product_info.php

 

1. copy this code near your in_cart button in product_info.php, actually you can add this code anywhere.

 

---------------------------------------------

<input type="text" name="quantity" value="1" maxlength="2" size="2">

--------------------------------------------

 

2. search your application_top.php

 

find this code:

---------------------------------------------

$HTTP_POST_VARS['id']))+1

--------------------------------------------

replace with this one

------------------------------------------

$HTTP_POST_VARS['id']))+$quantity

------------------------------------------

 

done!!

Link to comment
Share on other sites

Try:

 

http://www.oscommerce.com/community/contri...dd+quantity+box

 

here is the text from that solution:

 

easy way add Qty box in your product_info.php

 

1. copy this code near your in_cart button in product_info.php, actually you can add this code anywhere.

 

---------------------------------------------

<input type="text" name="quantity" value="1" maxlength="2" size="2">

--------------------------------------------

 

2. search your application_top.php

 

find this code:

---------------------------------------------

$HTTP_POST_VARS['id']))+1

--------------------------------------------

replace with this one

------------------------------------------

$HTTP_POST_VARS['id']))+$quantity

------------------------------------------

 

done!!

Thanks for the help!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...