Zen Cart Logo
Forums / General Questions / lost ability to delete customer please help

lost ability to delete customer please help

Locked

Views: 1,183

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
8 Jul 2010, 11:30 PM
#1
kpkev avatar

kpkev

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

lost ability to delete customer please help

version 1.3.9d

I was adding the simple admin create order addon and I lost the ability to see the box on the right of the customer page in admin that has the customer info and the delete button. Can anyone help me figure out how to return this and possibly keep the addon. I have put a new customer.php in admin from an untouched test site and still didnt work. :frusty:Here is an image of what I am missing
http://img35.imageshack.us/img35/5681/mycustomerspage.gif

9 Jul 2010, 4:24 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: lost ability to delete customer please help

https://www.zen-cart.com/tutorials/index.php?article=82

What are the debug logs telling you as the cause of the blank page? That will usually tell you which PHP file is reporting the problem, and often also the one that contains the problem.

9 Jul 2010, 6:08 AM
#3
kpkev avatar

kpkev

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: lost ability to delete customer please help

can you tell me where I need to be looking ? (what .php file)
I have replaced the module a few times and the problem is there with the mod and without, so I am lost as to what file I need to be looking in for the customer delete code.

I did read your reply and the all of the page you sent me to.
Thanks for helping me
Kev

9 Jul 2010, 7:03 AM
#4
kpkev avatar

kpkev

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: lost ability to delete customer please help

Ok the logs said

[08-Jul-2010 23:53:56] PHP Fatal error: Call to undefined function: zen_user_has_gv_balance() in /home/content/k/e/v/kev122275/html/backend/customers.php on line 1188

I went and commented out zen_user_has_gv_balance
and I have my box back and can delete customers. :clap:

But what does the error refer to and how can I fix it so my GV system will work?

Thanks
Kev

9 Jul 2010, 7:37 AM
#5
kpkev avatar

kpkev

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: lost ability to delete customer please help

ok I think I figured it out.
I think the error was in my general.php
I added
function zen_user_has_gv_balance($c_id) {
global $db;

** CODE REMOVED BY MODERATOR **
return 0;
}

to the general.php at the end before ?>
and then I uncommented

$customer_gv_balance = zen_user_has_gv_balance($cInfo->customers_id);

in customer.php and all seems good now. I think

9 Jul 2010, 3:28 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: lost ability to delete customer please help

So, basically you're saying that your /admin/functions/general.php file was damaged/incomplete, presumably because you overwrote it with a much older version from some addon you installed?

9 Jul 2010, 8:03 PM
#7
kpkev avatar

kpkev

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: lost ability to delete customer please help

yup it was. I believe it's all fine now.
I copied over a modified general.php from an eariler version ( I think it was from 1.3.8) and it was missing that function.
Thanks for you help I was stumped and needed the nudge toward looking in the logs.

14 Nov 2010, 5:08 PM
#8
etcc_1002 avatar

etcc_1002

New Zenner

Join Date:
Nov 2010
Posts:
4
Plugin Contributions:
0

Re: lost ability to delete customer please help

Hi,

Could anyone help me?
I am a newbie and I encounter this problem, too.
I try to add some modules lately and then now I realize that I can't delete my customer too. The button is disappear and I don't know what is the cause. :dontgetit

Could anyone assist me. Appreciate it.

Thank you:smile:

15 Nov 2010, 1:55 AM
#9
etcc_1002 avatar

etcc_1002

New Zenner

Join Date:
Nov 2010
Posts:
4
Plugin Contributions:
0

Re: lost ability to delete customer please help

I have this error, too
[14-Nov-2010 18:43:03] PHP Fatal error: Call to undefined function zen_user_has_gv_balance() in /home/content/96/6425496/html/themoment/admin/customers.php on line 1188

I tried to follow the step by changing the customer.php. But it turns out worse. When I click on the "customer" tab, I can't see the submenu at all...

:blink: