Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function calculate() in checkout_process.php


Freemuse

Recommended Posts

Hey all, hope you can help me with this problem.

 

I recently set up a new agreement with PBS, and tried to test my site by paying with my credit-card.

I got this error, when I clicked "continue to payment":

 

Fatal error: Call to undefined function: calculate() in .../www/checkout_process.php on line 162

 

The line 162, that apparently causes this error is this:

 

$order_amount = $currencies->calculate($order->info['total'], true, $order->info['currency'], $order->info['currency_value'], '.');

 

I've installed a couple of add-ons recently:

 

- Danish language package

- A currency package, which adds a box with flags, so you can switch the currency.

 

I've only been following the instructions to install these packages and havent changed any code by myself...

I cant find the "calculate()" function by searching manually, its also no where to be found in the newest version downloaded from this site.

I guess the name of the function is wrong, but changing it from "calculate" to calculate_price also doesnt help; this just creates the same error.

 

Do you have any idea of whats wrong?

 

Thanks,

Frederik

Link to comment
Share on other sites

  • 1 month later...
I recently set up a new agreement with PBS, and tried to test my site by paying with my credit-card.

I got this error, when I clicked "continue to payment":

 

Hello Frederik,

 

Is it the PBS "Betalingsmodul" (payment module) you are using?

 

Regards,

 

Thomas Pedersen

Kind Regards,

Thomas Pedersen

 

ePay Europe

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...