Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total and Other Info displays twice on checkout_confirmation.php


CivicRacingGirl7

Recommended Posts

Posted

After suffering a hack to my online store, I am rebuilding it with a fresh install. It is almost complete at this time, but I am having a problem on checkout_confirmation.php. I am using Fast Easy Checkout, and Order Check which affect the checkout_confirmation.php file (I had to comment out the FEC additions in the file, as I received errors otherwise, and I only installed the first part of FEC as I use PWA - I also have various other contribs installed).

 

The problem:

 

Under "Billing Information": Sub-Total, Shipping, Tax, and Total all display twice.

 

What it's showing:

 

Sub-Total: $576.00

Sub-Total: $576.00

Request Shipping Quote (We will contact you with a shipping quote.

* Use for items that require a quote, multiple item orders, and international orders.): $0.00

Request Shipping Quote (We will contact you with a shipping quote.

* Use for items that require a quote, multiple item orders, and international orders.): $0.00

N.Y. Sales Tax: $46.80

N.Y. Sales Tax: $46.80

Total: $622.80

Total: $622.80

 

 

What I need to know is what file(s) I should check for a duplication in code. I checked checkout_confirmation.php, and did not see anything out of the ordinary.

Posted

Maybe you have two entries in your order totals module for the same thing? Look in admin modules order total

Nothing unreal exists

Posted

I found the problem, it's due to the Order Check contribution.

 

$order_total_modules->process(); is included in both checkout_confirmation.php and ordercheck_functions.php. If I comment it out in checkout_confirmation, I receive an error when I click to continue/confirm, and if I comment it out in ordercheck_functions instead, it does not pass the order information to Order Check...

Posted
I found the problem, it's due to the Order Check contribution.

 

$order_total_modules->process(); is included in both checkout_confirmation.php and ordercheck_functions.php. If I comment it out in checkout_confirmation, I receive an error when I click to continue/confirm, and if I comment it out in ordercheck_functions instead, it does not pass the order information to Order Check...

 

 

Wow that's lame - any way you can figure out if you are just not passing a variable in the code, like a post var is not being read, something in the flow of the program that is not passing as a global setting, or not posting or getting?

 

can you echo phpinfo() at the point where the function is being executed and see if it is giving the proper variables?

 

This may tale awhile to debug

Nothing unreal exists

Posted
Wow that's lame - any way you can figure out if you are just not passing a variable in the code, like a post var is not being read, something in the flow of the program that is not passing as a global setting, or not posting or getting?

 

can you echo phpinfo() at the point where the function is being executed and see if it is giving the proper variables?

 

This may tale awhile to debug

 

I just installed a newer version of the Order Check contrib, which is supposed to solve the problem, but I'm getting more errors now, so I'm doing some debugging on that. If it doesn't work out, then I'll have to uninstall Order Check and just keep searching for one that works.

Posted
I just installed a newer version of the Order Check contrib, which is supposed to solve the problem, but I'm getting more errors now, so I'm doing some debugging on that. If it doesn't work out, then I'll have to uninstall Order Check and just keep searching for one that works.

 

Just a thought - is there code in the function that is merging the data arrays together? that may be a thing to look out for.

 

To me, it seems like the array is being pushed twice - that best guess i can give you right now sorry!

Nothing unreal exists

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...