Forums / Managing Customers and Orders / Delete extra address'

Delete extra address'

Results 1 to 18 of 18
02 Jun 2010, 11:55
#1
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Delete extra address'

We enable the customer to have up to 5 address in their address book, however, if you try to delete one it won't delete!

When you click delete you are taken to the confirmation page, then you confirm you want to delete the address and it bounces you back to the home page.

If you make your way back to the address page, the address is still there, any ideas what is going wrong?
03 Jun 2010, 10:14
#2
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Anyone?
03 Jun 2010, 10:18
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Delete extra address'

I cannot reproduce this problem ...

The only address that cannot be deleted is the Primary Address ...

To rule out some type of template issue, if you switch to the Classic Template, does the delete work on the addresses? :unsure:
03 Jun 2010, 12:43
#4
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Good thought, two seconds
03 Jun 2010, 12:49
#5
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Right, changed back to standard template, the issue is still the same, what file deals with the call to the database to delete the entry? I will check the code see if I can spot anything daft.
03 Jun 2010, 13:01
#6
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Is there a mismatch between the table name and what the template page thinks it should be?
03 Jun 2010, 13:14
#7
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

It link on the delete button goes to ......./index.php?main_page=address_book_process&delete=2679&action=deleteconfirm

is something not allowing the deleteconfirm action to go ahead?
03 Jun 2010, 13:17
#8
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Editing and updating works just fine, but delete doesn't.
03 Jun 2010, 14:23
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Delete extra address'

Are you hitting, on the NON-Primary Address, the Delete button ... then see the address displayed and then hitting the Delete button again? :unsure:
03 Jun 2010, 14:38
#10
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

Yes, that is what I'm doing..
03 Jun 2010, 14:43
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Delete extra address'

If in v1.3.9 ... are you seeing any debug logs in your /cache directory?

NOTE: be sure to refresh it in your FTP program ...

If not in v1.3.9 what version?

Could you get the Debug Tool from the Free Software Add Ons ...
04 Jun 2010, 08:16
#12
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

I'm running 1.3.8a

No log is created when trying to do this process.

It has been like this since the begining, the database table is being found, but for some reason it won't delete the entry, is there any other place within the shop that allows the client to delete something that is stored on the database, could it be that the permissions aren't set correctly?
04 Jun 2010, 11:05
#13
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

I looked through the code and compared mine to a default install and nothing is different.
04 Jun 2010, 11:18
#14
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

I think there must be something in the database blocking the deletion of a row from the front end? perhaps a setting is turned off?

Where should i look?
05 Jun 2010, 12:19
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Delete extra address'

Nothing in the database would block this ...

It has to be something in the code preventing this from happening ...

Without actually going through the code on your site it is very hard to determine what changes may have happened to prevent this from working properly ...

You might, for the sake of testing, load a clean Zen Cart into a test directory with a test database and just see that this is working properly ...

You could then try to load a copy of your live database to this test database and again test that it is working ...

Once that is known to work, then proceed from there to see what is blocking this from happening ...
08 Jun 2010, 13:45
#16
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Delete extra address'

What files are used during the delete process?

I could reload those from a default install and see if that fixes it.
08 Jun 2010, 14:58
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Delete extra address'

All of the address_book_process files ...

At a minimum, that would be:

/includes/modules/pages/address_book_process/*.*
/includes/templates/template_default/templates/tpl_address_book_process.php

and if you have override files, you should check those too ...
05 Apr 2011, 15:20
#18
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Delete extra address'

I know this thread is almost a year old, but I'm wondering if you ever figured out what the problem was? I am having the same problem!

None of the address_book_process files have ever been modified...