Delete Item without page refresh

freeSbee

Hi sky writer

You could, using Ajax, but this requires a greater programing effort. You can, however, set the quantity field value to 0 without reloading the page.

Go to the file /bakery/frontend.js, about line 21. Replace the js code:

function mod_bakery_delete_item_f(id) {
if (id != '') {
document.getElementById('id_' + id).value = 0;
document.getElementById('update').click();
}
}


by:

function mod_bakery_delete_item_f(id) {
if (id != '') {
document.getElementById('id_' + id).value = 0;
/* document.getElementById('update').click(); */
}
}


Regards Christoph

sky writer

Is it possible for the page not to refresh after deleting an item from the cart?  I am not using minicart.
I know there seemed to be this kind of functionality being worked on (for minicart, anyway) some time ago, but it looks like it was abandoned - http://forum.websitebaker.org/index.php/topic,18490.msg123213.html#msg123213