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

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...