Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Customize Output of function renderTotals()
 
instant
Jr. Member
 
Total Posts:  1
Joined:  2010-06-17
 

Hi!

Does anyone know how i can change the output of this function $this->renderTotals() in the file
app/design/frontend/base/default/template/checkout/cart/totals.phtml

I can`t find anything about this!

Thanks!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
sagacity
Member
 
Total Posts:  47
Joined:  2009-12-16
 

Ich glaube das geht nicht, habe auch lange danach gesucht. Hier wohl die Möglichkeit mit einem Hack was zu machen.

http://www.magentocommerce.com/boards/viewthread/194582/

 
Magento Community Magento Community
Magento Community
Magento Community
 
blueflame
Jr. Member
 
Total Posts:  21
Joined:  2010-11-15
 

/app/code/core/Mage/Sales/Model/Quote/Address/Total/

 
Magento Community Magento Community
Magento Community
Magento Community
 
BlueclawEcomm
Member
 
Avatar
Total Posts:  35
Joined:  2010-06-25
Leeds, UK
 

\app\code\core\Mage\Sales\Model\Quote\Address\Total

contains files with fetch methods that are involved in the output that is rendered

the discount code out put is in

\app\code\core\Mage\SalesRule\Model\Quote\Discount.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaya_27
Jr. Member
 
Total Posts:  5
Joined:  2012-06-11
 

Hi All,

For the RenderTotals customization, that is <?php echo $this->renderTotals(); ?> in totals.phtml from checkout/cart

Will return from [your theme]/tax/sub-total.phtml
Then for shipping tax/shipping.phtml

There we can edit our cart page totals design.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimonLindner
Member
 
Avatar
Total Posts:  31
Joined:  2011-09-08
Bremen
 

The function is actually defined in Mage_Checkout_Block_Cart_Totals; override the block to customize it.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top