Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Problem with two listings??? Please help!


2 replies to this topic

#1 Nitro187

  • Community Member
  • 52 posts
  • Real Name:Matt

Posted 24 October 2003, 14:11

I am using the mod Ordercheck (mis spelled as OrederCheck) and I ran into a problem.

http://www.oscommerce.com/community/contri...ns,1168/page,14

After I installed the mod, whenever anyone almost finishes their order, and proceeds to the "checkout_confirmation" page, it displays two versions of everything:

Sub-Total: $109.95
Sub-Total: $109.95
Ground Shipment (Shipping to Canada (CAD)): $0.00
Ground Shipment (Shipping to Canada (CAD)): $0.00
7.0% GST#xxxxxxxxx xxxxxxxx + 8.0% PST (Ontario): $16.49
7.0% GST#xxxxxxxxx xxxxxxxx + 8.0% PST (Ontario): $16.49
Total: $126.44
Total: $126.44

The only way i can seem to fix this, is if I edit the "ordercheck_functions.php" file, and comment this line away:

$order_totals = $order_total_modules->process();

But then the whole mod doesn't work. Any idea's? PLEASE help. I can't even contact the author, cause I can't find his e-mail address.

Thanks.

#2 iiinetworks

  • Community Member
  • 3,734 posts
  • Real Name:Matt

Posted 24 October 2003, 20:22

What happens if you comment out $order_totals = $order_total_modules->process(); in checkout_process.php instead?

Did you check the database, is it actually entering each order_total twice? Or just displaying them twice?

Good luck,
Matt

#3 Nitro187

  • Community Member
  • 52 posts
  • Real Name:Matt

Posted 24 October 2003, 20:45

haha, I sent an e-mail to the author of the mod earlier today, cause I found a fix, forgot to post it here.... it's actually a place in checkout_confirmation... as checkout_process doesn't get activated till after the payment was received.

Checkout_confirmation.php:

<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_total_modules->process();
echo $order_total_modules->output();
}
?>

Just comment out the $order_total_modules->process();

and that's it. Works great after that.

Thanks for the help anyway though man. :) It may have helped me track it earlier..lol

:rolleyes: