WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Delete Item without page refresh
  • Print
Pages: [1]   Go Down

Author Topic: Delete Item without page refresh  (Read 4583 times)

Offline sky writer

  • Posts: 926
Delete Item without page refresh
« on: October 01, 2015, 04:13:31 PM »
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
Logged

freeSbee

  • Guest
Re: Delete Item without page refresh
« Reply #1 on: October 05, 2015, 01:12:28 PM »
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:
Code: [Select]
function mod_bakery_delete_item_f(id) {
if (id != '') {
document.getElementById('id_' + id).value = 0;
document.getElementById('update').click();
}
}

by:
Code: [Select]
function mod_bakery_delete_item_f(id) {
if (id != '') {
document.getElementById('id_' + id).value = 0;
/* document.getElementById('update').click(); */
}
}

Regards Christoph
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Delete Item without page refresh
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2