g_p_java Posted October 19, 2012 Posted October 19, 2012 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
Chris H Posted October 20, 2012 Posted October 20, 2012 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.
g_p_java Posted October 20, 2012 Author Posted October 20, 2012 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
♥kymation Posted October 20, 2012 Posted October 20, 2012 catalog/includes/modules/order_total/ot_total.php. Regards Jim See my profile for a list of my addons and ways to get support.
g_p_java Posted October 21, 2012 Author Posted October 21, 2012 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.