Forums / General Questions / Step 2 of checkout showing "Your Total" as $0

Step 2 of checkout showing "Your Total" as $0

Started by b_ssladyt on 26 May 2012, 5:14 PM · Views: 1,642

Results 1 to 17 of 17
26 May 2012, 5:14 PM
#1
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Step 2 of checkout showing "Your Total" as $0

Hello everyone,

I apologize if I am not posting this in the correct spot as I have been looking for answers and frustrated. I am fairly new and I have been working on getting my site up and running on my own for several months now and I have no past programming or computer knowledge so basic layman's answers are appreciated . I have come across a puzzling problem, i am running a test purchase on my actual site and going through the checkout process. When I get to "Step 2 of 3- Payment information" page all the information in the box "Your Total" shows $0 and where the word "shipping" should be is blank. I know part of the problem is in the HTML file but where would I edit that and where do I go to tell the shopping cart to add the numbers together and to display the totals?

Also, if I click on to continue to step 3 it takes me to Step three but all the totals are still $0 then when I click to confirm order it takes me back to the beginning of the shopping cart instead of the final page.

Please help and thanks for your help.

26 May 2012, 6:05 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Step 2 of checkout showing "Your Total" as $0

You shouldn't have to 'tell the shopping cart' anything, and Zencart doesn't have many HTML files that you could edit anyway. There's something wrong with your store. We might be able to spot something with a link to the site.

26 May 2012, 10:09 PM
#3
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

Ok, thank you. Here's the website address: discountbeautyoutlet.com

27 May 2012, 1:18 AM
#4
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

I was just looking over my site and I noticed also that my prices themselves are showing incorrectly but they are right in my zencart admin. Just another piece to add to my problems. Do I need to start over and start with the new version? Any help is appreciated.

27 May 2012, 3:36 AM
#5
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

Nevermind about the prices not showing correctly...I figured that part out put the other problem in the first post is still an issue.

27 May 2012, 4:15 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Step 2 of checkout showing "Your Total" as $0

Is this a Clean install or an Upgrade?

What version Zen Cart are you running?

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 May 2012, 3:59 PM
#7
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

I installed version 1.3.9h right from my hosting company, cPanel that I saw under Fantastico delux. Sorry, I didn't think I needed to restate the version number since the forum asks you to select at the start of the post.

27 May 2012, 4:05 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Step 2 of checkout showing "Your Total" as $0

I just wanted to confirm things ...

If you switch to the Classic Template ... does that change things?

If you look in the directory:
/cache

using FTP, do you see any debug logs in there?

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 May 2012, 4:17 PM
#9
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

I apologize after I hit enter and reread what I said I felt bad. Anyway, I am afraid to revert back to the Classic template to even try it. In fact, all I did was made a copy of the classic template and made my changes to what I wanted through the copy.

As for any debug files, there are quite a few. The last ones were from three days ago when I was trying to install a plugin, but I have since then been able to get that installed. Before that there are a lot too. Do I need to go through those and what am I looking for?

27 May 2012, 4:22 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Step 2 of checkout showing "Your Total" as $0

For now, you can delete the .log files ...

Then keep an eye on it for new ones that might be created ...

As to the Classic Template, if you go to the Tools ... Template Selection ... and click EDIT ... you will see the available Templates, as in Classic Template and your custom template ...

Selecting Classic Template will just change which template is being used to Classic ...

Later, you can do the same thing and select Your Template to reset it back ...

This is a handy way to see if your templates and overrides might be causing issues ...

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 May 2012, 4:28 PM
#11
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

Thank you, you are very helpful.......after posting I looked further into the debug log and there are files showing from yesterday and today dealing with the what looks like the tax, order total directories etc. In fact there are many.

27 May 2012, 4:52 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Step 2 of checkout showing "Your Total" as $0

Delete the .log ... then go try a checkout to where you see the 0.00 prices ...

Now, refresh your /cache and see what is contained in the current debug log(s) and post it here ...

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 May 2012, 6:03 PM
#13
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

Here's what comes up after deleting old debug files and tried to complete a purchase (it doesn't look promising to me):

[27-May-2012 10:39:57] PHP Warning: define() expects at least 2 parameters, 1 given in /home/discou50/public_html/includes/languages/english/beauty/index.php on line 52

[27-May-2012 10:46:02] PHP Warning: define() expects at least 2 parameters, 1 given in /home/discou50/public_html/includes/languages/english/beauty/index.php on line 52

[27-May-2012 10:48:09] PHP Warning: define() expects at least 2 parameters, 1 given in /home/discou50/public_html/includes/languages/english/beauty/index.php on line 52

[27-May-2012 10:48:38] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/pages/checkout_shipping/header_php.php on line 72 and defined in /home/discou50/public_html/includes/classes/order.php on line 13

[27-May-2012 10:48:43] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/pages/checkout_shipping/header_php.php on line 72 and defined in /home/discou50/public_html/includes/classes/order.php on line 13

[27-May-2012 10:48:43] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/pages/checkout_payment/header_php.php on line 88 and defined in /home/discou50/public_html/includes/classes/order.php on line 13
[27-May-2012 10:48:43] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26
[27-May-2012 10:48:43] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26

[27-May-2012 10:48:49] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/pages/checkout_confirmation/header_php.php on line 62 and defined in /home/discou50/public_html/includes/classes/order.php on line 13
[27-May-2012 10:48:49] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26
[27-May-2012 10:48:49] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26

[27-May-2012 10:48:53] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/checkout_process.php on line 56 and defined in /home/discou50/public_html/includes/classes/order.php on line 13

27 May 2012, 11:59 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Step 2 of checkout showing "Your Total" as $0

B_ssLadyT:

I was trying to install a plugin, but I have since then been able to get that installed.
Which addon was that?
What other addons are installed?

B_ssLadyT:

[27-May-2012 10:39:57] PHP Warning: define() expects at least 2 parameters, 1 given in /home/discou50/public_html/includes/languages/english/beauty/index.php on line 52What exactly is on line 52 of that file?
Did you make edits to that file? Why? What exactly were you trying to do?
The error message sounds like you deleted text incorrectly.

B_ssLadyT:

[27-May-2012 10:48:38] PHP Warning: Missing argument 1 for order::order(), ........ defined in /home/discou50/public_html/includes/classes/order.php on line 13You have altered that order.php file in ways that completely break normal operation. Perhaps you did that by replacing that file from an addon?

B_ssLadyT:

[27-May-2012 10:48:43] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26
[27-May-2012 10:48:43] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26

[27-May-2012 10:48:49] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/pages/checkout_confirmation/header_php.php on line 62 and defined in /home/discou50/public_html/includes/classes/order.php on line 13
[27-May-2012 10:48:49] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26
[27-May-2012 10:48:49] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/discou50/public_html/includes/modules/order_total/ot_tax.php on line 26

[27-May-2012 10:48:53] PHP Warning: Missing argument 1 for order::order(), called in /home/discou50/public_html/includes/modules/checkout_process.php on line 56 and defined in /home/discou50/public_html/includes/classes/order.php on line 13
Those are all a result of your order.php file being changed from original code.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 May 2012, 12:34 AM
#15
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

To answer your first question, the plugin was the WePay plugin. The only other plugin was the discount coupon plugin. Based on debug files I discovered were even on files just today, this problem has been in the order.php file well before I installed the plugins.

I personally have not altered any of those files, the only thing I can think of is that I found out in the beginning of this year that just before I started in October, my hosting company had a hacker get in and it was the index.php file that was affected in all of it's accounts. A couple months ago, when I did a backup of my site, I discovered the files were still on my site and had them removed by the hosting company. I have done a backup since and I do not get the same warning from my anti-virus. It is my thought that when the virus was removed it may have accidentally removed important files. Are there any suggestions to resolve this issue or do I need to start from scratch?

28 May 2012, 12:47 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Step 2 of checkout showing "Your Total" as $0

Um ...

if you want my honest opinion, I'd say you should start from scratch. And use the latest version of Zen Cart while you're at it.

The REASON I say that is that from your last post it's pretty clear to me that there wasn't a thorough cleanup done of your site after it got hacked, and thus none of the files on it can be trusted. Normal cleanup process: http://www.zen-cart.com/wiki/index.php/Recovering_From_Hacks

And, since the cleanup process involves many of the same steps and actions as you might take to review your old site and determine what things to customize while rebuilding your new site, it just makes sense to go there directly.

I mean ... you could replace that order.php file with the original version of it. But then how do you or I know that there aren't other files compromised on your server too? Much safer and simpler to do a complete backup of the entire site's files (by downloading everything with FTP, consulting your hosting company if you need help with that) and database, then delete it all from the server, install the new version, and then begin customizing it. You already know all the things you've done to customize it so far, so walking through those steps again is generally faster and pretty straightforward.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 May 2012, 1:19 AM
#17
b_ssladyt avatar

b_ssladyt

New Zenner

Join Date:
May 2012
Posts:
11
Plugin Contributions:
0

Re: Step 2 of checkout showing "Your Total" as $0

Thank you for your honest opinion. I had a feeling that would be my best thing to do. Thanks.