Forums / General Questions / Order total module problem

Order total module problem

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
09 May 2008, 22:44
#1
rottiejoe avatar

rottiejoe

New Zenner

Join Date:
Mar 2007
Posts:
86
Plugin Contributions:
0

Order total module problem

Hi everybody,

I have a big problem an am unable to rectify i. When I click order total in admin under modules I get the the following error

Fatal error: Call to a member function format() on a non-object in /home/shop/public_html/includes/modules/order_total/ot_gv.php on line 29

line 29 is

$this->checkbox = $this->user_prompt . '<input type="text" size="6" onchange="submitFunction()" name="cot_gv" value="' . number_format($_SESSION['cot_gv'], 2) . '" onfocus="if (this.value == \'' . number_format($_SESSION['cot_gv'], 2) . '\') this.value = \'\';" />' . ($this->user_has_gv_account($_SESSION['customer_id']) > 0 ? '<br />' . MODULE_ORDER_TOTAL_GV_USER_BALANCE . $currencies->format($this->user_has_gv_account($_SESSION['customer_id'])) : '');

I have replaced this file with a clean one but it means this is not the problem file does anyone have an idea as to what may be happening

Thanks

Rottie
10 May 2008, 01:46
#3
rottiejoe avatar

rottiejoe

New Zenner

Join Date:
Mar 2007
Posts:
86
Plugin Contributions:
0

Re: Order total module problem

Hi Kobra,
No this was of no help ans I did find someone who had the same error occure and AJ advised re-uploading the files to

includes/modules/order_total/ot_gv.php
includes/languages/english/modules/order-total/ot_gv.php

which I did nemerious times but to no avail. I did delete the first ot_gv.php file from modules and the other order total files work in admin but the gift vouchers no longer appear. Can anyone please advise as people are unable to use the gift vouchers as they no longer appear on checkout.
10 May 2008, 01:55
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Order total module problem

Replace the files and try switching to the classic template to see if this is a template issue or not.
10 May 2008, 05:01
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Order total module problem

Perhaps you need to explain which version of Zen Cart you're using along with a list of addons you've installed, and what versions you've upgraded your site from/to.
10 May 2008, 20:54
#6
rottiejoe avatar

rottiejoe

New Zenner

Join Date:
Mar 2007
Posts:
86
Plugin Contributions:
0

Re: Order total module problem

Hi DrByte,

I have so many add-ons installed I would not know where to start but all is OK now obviously the isp I use had some sort of caching and it took a while for the new files to make a difference. That’s my thoughts in any case but all is OK now so AJ’s solution was correct.

Thanks all
21 Dec 2010, 08:54
#7
aseem avatar

aseem

New Zenner

Join Date:
Dec 2010
Posts:
2
Plugin Contributions:
0

Re: Order total module problem

Hi everyone

I am not able to send the values to the paypal .
I am not able to change the total price value of the product .
Actually i want to send some other total price (not the actual one). how can i do this....

urgent

thanks
21 Dec 2010, 09:33
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Order total module problem

Aseem:

Actually i want to send some other total price (not the actual one). how can i do this...

You can not
You will get a cost mis-match if you try as they must match