Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2010
    Location
    Michigan
    Posts
    14
    Plugin Contributions
    0

    Default Customer Can't Delete Addresses in Address Book

    I just found this problem with my site and I have no idea when it started. When the customer clicks "Delete" to remove an address, the question "Are you sure you would like to delete the selected address from your address book?" shows up. The customer then clicks on delete again and the same question shows up and the address isn't deleted. Attached is an image fo the screen that keeps showing up over and over.

    I'm running v1.5
    www.healthydentalproducts.com

    Name:  Address_Book.jpg
Views: 155
Size:  8.9 KB

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: Customer Can't Delete Addresses in Address Book

    What happens if you switch to the Classic Template ... does it work?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Aug 2010
    Location
    Michigan
    Posts
    14
    Plugin Contributions
    0

    Default Re: Customer Can't Delete Addresses in Address Book

    I just tried it in the classic template and it works properly there. Do you know what specific files deal with deleting addresses? I guess my template has some glitches

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: Customer Can't Delete Addresses in Address Book

    Compare your templates and override files to the original default files and that should help you locate the issue ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5

    Default Re: Customer Can't Delete Addresses in Address Book

    I'm running 1.5. I upgraded back in Feb.with no significant issues.

    I'm having the same problem with address deletion as mentioned in the beginning of this thread. However, it does not matter if I use the classic template or my own. When a customer navigates to my account/view or change addresses/delete they are asked "Are you sure you would like to delete the selected address from your address book?" and if one selects "Delete" nothing happens. I'm not sure if this problem has existed since the upgrade or is a new problem. I do know that before upgrading, this feature worked fine.

    My site www.immortalitea.com

  6. #6
    Join Date
    Dec 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Customer Can't Delete Addresses in Address Book

    I also had the problem, addresses could not be deleted from address book in any templates in v1.5 .
    The only way i found to get it to work was to change:

    Code:
    if (isset($_GET['action']) && ($_GET['action'] == 'deleteconfirm') && isset($_POST['delete']) && is_numeric($_POST['delete'])) {
      $sql = "DELETE FROM " . TABLE_ADDRESS_BOOK . "
              WHERE  address_book_id = :delete
              AND    customers_id = :customersID";
    
      $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
      $sql = $db->bindVars($sql, ':delete', $_POST['delete'], 'integer');
      $db->Execute($sql);
    to:
    Code:
    if (isset($_GET['action']) && ($_GET['action'] == 'deleteconfirm') && isset($_GET['delete']) && is_numeric($_GET['delete'])) {
      $sql = "DELETE FROM " . TABLE_ADDRESS_BOOK . "
              WHERE  address_book_id = :delete
              AND    customers_id = :customersID";
    
      $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
      $sql = $db->bindVars($sql, ':delete', $_GET['delete'], 'integer');
      $db->Execute($sql);
    Ajeh, is it ok to use _GET['delete'] here?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: Customer Can't Delete Addresses in Address Book

    Could you check the files:
    \includes\templates\template_default\templates\tpl_address_book_process_default. php
    \includes\modules\pages\address_book_process\header_php.php

    \includes\templates\your_template_dir\templates\tpl_address_book_process_default .php

    against the original files in Zen Cart v1.5 and see if they are current ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Email Address Exporter - How can I export the email addresses of every customer?
    By SpencerW in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Oct 2011, 07:35 AM
  2. Button missing on page to allow customers to delete address book entries?
    By design4dotcom in forum Managing Customers and Orders
    Replies: 0
    Last Post: 24 Jul 2009, 02:47 PM
  3. Allowing the customer to delete / edit address book entries
    By prodigious in forum Managing Customers and Orders
    Replies: 6
    Last Post: 3 Nov 2008, 04:42 PM
  4. Replies: 0
    Last Post: 17 Sep 2008, 12:35 AM
  5. Replies: 2
    Last Post: 26 Feb 2008, 06:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •