Contributions
Add Multi Products Checkbox v1.0
Add Multi Products Checkbox 1.0 (March 24, 2005)
This Add Multi Products Checkbox Contribution adds a checkbox in your products listing behind every product.
You can simply check multiple products at once and add them to the Cart with one click.
This contribution is tested for osCommerce 2.2 Milestone 2 (CVS-2)
-------------------------------
This contribution was first released as a contribution called Add Multi Produtcs in 2003 by Ian C Wilson for osCommerve 2.2.
http://www.oscommerce.com/community/contributions,1129
Later in 2004, it was changed by Steve Oliveira and called Add Multi Products Revived.
http://www.oscommerce.com/community/contributions,3022
This last contribution from Steve was changed for osCommerce 2.2 Milestone 2. Both contributions removed the Buy Now
option and replaced it with a text field so customers could add a quantity before they adding the products to the shoppingcart.
Because of many request I saw in the Community Support regarding a checkbox in the productlisting instead of a Buy Now or quantity
field and I need ths solution for a customer, I changed the contribution from Steve Oliveira a little so we have now CHECKBOXES!!!
Also there was a little bug in the last contribution from Steve, if you tried to add the last product of the page in the
shoppingcart, it didn't work. That is solved!
Have Fun!!
Expand All / Collapse All
If previous version works okay for you, don't try this. You will know if add to cart doesn't add the first two products selected in product listing page.
in ReadMe.txt change this:
for ($i=1; $i<=sizeof($HTTP_POST_VARS['products_id']);$i++) {
to this
for ($i=-1; $i<=sizeof($HTTP_POST_VARS['products_id']);$i++) {
Because it started at the third element in the array before but with this it starts with the first.
Add to Cart wasn't working because incorrect php syntax:
<input type="hidden" name="products_id[<?=sizeof($list_box_contents)?>]" value="<?php echo $listing['products_id']; ?>">
changed to use
...<?php echo sizeof($list_box_contents)?>...
th last edit only display on index.php,I want to also display on the advanced_search_result.php.
so I change it bellow
in product_listing_multi.php find
if ($cateqories_products['total'] > 0) {
change to
if ($listing_split->number_of_rows > 0) {
solve add to cart can not work
This fix will hide the 'Checkout' and 'Add to cart' buttons if there are no products in the category.
Add Multi Products Checkbox 1.0 (March 24, 2005)
This Add Multi Products Checkbox Contribution adds a checkbox in your products listing behind every product.
You can simply check multiple products at once and add them to the Cart with one click.
This contribution is tested for osCommerce 2.2 Milestone 2 (CVS-2)
-------------------------------
This contribution was first released as a contribution called Add Multi Produtcs in 2003 by Ian C Wilson for osCommerve 2.2.
http://www.oscommerce.com/community/contributions,1129
Later in 2004, it was changed by Steve Oliveira and called Add Multi Products Revived.
http://www.oscommerce.com/community/contributions,3022
This last contribution from Steve was changed for osCommerce 2.2 Milestone 2. Both contributions removed the Buy Now
option and replaced it with a text field so customers could add a quantity before they adding the products to the shoppingcart.
Because of many request I saw in the Community Support regarding a checkbox in the productlisting instead of a Buy Now or quantity
field and I need ths solution for a customer, I changed the contribution from Steve Oliveira a little so we have now CHECKBOXES!!!
Also there was a little bug in the last contribution from Steve, if you tried to add the last product of the page in the
shoppingcart, it didn't work. That is solved!
Have Fun!!
Note: Contributions are used at own risk.