cancel
Showing results for 
Search instead for 
Did you mean: 

Changing total price of shopping cart

SOLVED

Changing total price of shopping cart

Hey

 

In a normal situation the total price of a shopping cart is based upon the products inside + handeling/shipping etc.

I've been looking for a way to change the total price of the shopping cart based upon some custom calculations.

 

The custom calculations are required due to some question tax-calculations that are required for our market.

 

So far i figured out that you can get a 'grand_total' of your order

$quote = Mage::getSingleton('checkout/session')->getQuote();
$quoteData= $quote->getData();
print_r($quoteData['grand_total']);

But i cannot find a way to change this and have this reflected in the total price of the shopping cart/order. Is this even possible?

 

Regards

Jasper

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Changing total price of shopping cart

Hi,

 

This is possible:

 

Step 1 : Direct change in core file go to : app\code\core\Mage\Checkout\Block\Cart\total.php file and modify accordingly

 

step 2: create custom module extend cart\total.php file and change the code accordingly

 

Thanks,

Dibyajyoti

View solution in original post

2 REPLIES 2

Re: Changing total price of shopping cart

Hi,

 

This is possible:

 

Step 1 : Direct change in core file go to : app\code\core\Mage\Checkout\Block\Cart\total.php file and modify accordingly

 

step 2: create custom module extend cart\total.php file and change the code accordingly

 

Thanks,

Dibyajyoti

Re: Changing total price of shopping cart

I think the correct way to solve your problem is to implement a new shopping cart price rule.

Tanel Raja