Previously reported here: http://www.zen-cart.com/showthread.p...lder-attribute
What I did to work around the issue was to create the file /includes/extra_cart_actions/fix_genesis_multiple_add_to_cart.php containing:
Code:
<?php
// -----
// Correct the multiple-add-to-cart processing for the genesis theme. There's an incompatibility between /includes/modules/genesis/product_listing.php's
// use of the HTML5 "placeholder" attribute and the shopping-cart class. The "placeholder", if not filled in, results in a blank value being returned on
// the "multiple-add-to-cart" request which the shopping-cart interprets as an invalid value because it's not numeric.
//
if (isset ($_GET['action']) && $_GET['action'] == 'multiple_products_add_product' && is_array ($_POST['products_id'])) {
foreach ($_POST['products_id'] as $pid_check => &$quantity_check) {
if ($quantity_check == '') {
$quantity_check = 0;
}
}
unset ($pid_check, $quantity_check);
reset ($_POST['products_id']);
}
Bookmarks