Contributions
Add Multiple Products
This is a replacement for the products_listing module. I presents a list of all products in a sub-category, including the attributes realated to each product and a quantity box for each product.
What this means is that with 1 click you can add multiple products(with multiple quantities to the cart)
You can see a demo at
http://www.zenwarehouse.com/new_credit_class/catalog/default.php?cPath=1_4
Expand All / Collapse All
Same great contribution. I just added Plus/Minus javascript button to make it more user friendly.
updated file with two corrections
This contribution is a simplified version of the Add Multiple Products mod
It allows customers to add multiple quantities of listed products with one Add To Cart button.
It differs from the original mod in that it makes the smallest changes possible on product_listing.php to
take into account the many different modified versions of that page someone might have.
Multiple product adding processing code in application_top.php is same as original mod.
Couple of bugs in v1.1 fixed.
FIXED - Would only add quantities of 2 and over.
FIXED - On product listing if the location of the prev next bar was located at the bottom of the page the form would not submit.
Entire package included.
The last part of the read me file has the wrong filename listed. It said to change the define of FILENAME_PRODUCT_LISTING in application_top.php
that define is actually found in catalog/includes/filenames.php
This makes the product_listing_multi.php look and work like the standard product_listing.php. This means the images will be displayed and the colums can be sorted correctly.
case 'add_multi':
for ($i=1; $i<=sizeof($HTTP_POST_VARS['products_id']);$i++) {
##add this if statement to prevent items with 0 quantity being added to cart
if($_POST['add_id'][$i] < 1)
continue;
##end fix $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['id'][$i]))+($HTTP_POST_VARS['add_id'][$i]), $HTTP_POST_VARS['id'][$i]);
}
tep_redirect(tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params($parameters), 'NONSSL'));
break;
Posted again, due to problems withe server
This is a replacement for the products_listing module. I presents a list of all products in a sub-category, including the attributes realated to each product and a quantity box for each product.
What this means is that with 1 click you can add multiple products(with multiple quantities to the cart)
You can see a demo at
http://www.zenwarehouse.com/new_credit_class/catalog/default.php?cPath=1_4
Note: Contributions are used at own risk.