Kristofor Posted December 21, 2003 Share Posted December 21, 2003 Hi, Just wondering how i can change how the totals are calculated. I use ms2 and i change the order totals, so i have shipping as 1 sub total as 2 tax as 3 and total as 4. Now the problem with this is that the tax is included in the sub total and the shipping is not. both are included in the final total, but the i need to have it so that the shipping is included in the sub total, but the tax is not included in the sub total but is still included in the final total. How would i do this. this is similar to what it looks like at the moment shipping : $5 sub-total : $110 tax: $10 total: $115 really it should be shipping : $5 sub-total : $105 tax: $10 total: $115 whats wrong with this can someone help, its urgent because my shop is going live soon. thanks kristofor Don't die with the music in you!!! Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere... Link to comment Share on other sites More sharing options...
geenygreat Posted December 21, 2003 Share Posted December 21, 2003 You may try as: Make Display Price with Tax as False through Admin -> Configuration -> My stote Add following line in /includes/classes/order.php : $this->info['subtotal'] += $this->info['shipping_cost']; Below: $this->info['subtotal'] += $shown_price; Find the following lines at the end of file: if (DISPLAY_PRICE_WITH_TAX == 'true') {? ? ? ? $this->info['total'] = $this->info['subtotal'] + $this->info['shipping_cost']; ? ? ? } else { ? ? ? ? $this->info['total'] = $this->info['subtotal'] + $this->info['tax'] + $this->info['shipping_cost']; ? ? ? } Replace with: if (DISPLAY_PRICE_WITH_TAX == 'true') {? ? ? ? $this->info['total'] = $this->info['subtotal'] ; ? ? ? } else { ? ? ? ? $this->info['total'] = $this->info['subtotal'] + $this->info['tax']; ? ? ? } Hope it helps! Make a backup of your file before modification. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.