|
|
|
|
"This contribution will make the remove checkbox in the shopping cart automatically update and remove the item when customer clicks the checkbox (no need for them to click "update")
1 ) Add this between the tags in shopping_cart.php (around line 25)
--------------------------------------
----------------------------------------
2 ) Search for:
----------------------------------------
'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));
----------------------------------------
Change to:
----------------------------------------
'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'], ' ', 'onClick="DoSubmission();"'));
----------------------------------------
3 ) in file includes/functions/html_output.php search for: (around line 189)
----------------------------------------
if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
$selection .= ' CHECKED';
------------------------------------------
Change to:
-----------------------------------------
if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
$selection .= '';
-----------------------------------------
and thats it, enjoy" |
|
|
|
 |
| For more information, visit the official osCommerce contribution webpage. |
 |
|
|