Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

In which php file is the total cost of the order counted?


g_p_java

Recommended Posts

Posted

Hello,

 

i'm reading the classes/order_total.php and i see that the output() function prints all

the information about the order:

 

Sub Total:

Table-rate:

Vat:

Total: etc

 

There is a for loop that prints the os_total,ot_shipping information and prices

But in which file is the total cost counted?

 

Cause in my shop, in case the customer has chosen the cash on delivery method i would like

to have an extra cost and deduct the cost that is already counted for 'zone rates' shipping.

 

Thanks , in advance

Posted

In my basic unaugmented store there is a line in

 

ext/modules/payment/paypal/express.php

 

which reads

 

$params['AMT'] = $paypal_express->format_raw($params['ITEMAMT'] + $params['TAXAMT'] + $params['SHIPPINGAMT'], '', 1);

 

Perhaps that is what you are looking for.

Posted

I don't think that this is what i'm looking for, cause in my oscommerce i haven't enabled the paypal method in the modules section.

 

So, i'm looking for a more general php file that counts the total cost of the order.

 

Thanks,anyway

Posted

catalog/includes/modules/order_total/ot_total.php.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Thanks, for replying.

 

In the ot_total.php file, in process function it is the $order->info['total']

that contains the total value of the order.

 

So i'm searching in order.php file as well in order to

find where the total price of the order is counted.

Archived

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

×
×
  • Create New...