php - Magento v1.9.2.1: rwd theme onepage checkout to display grandtotal -


for rwd theme, v1.9.2.1, there way display subtotal, shipping , grand total, last review block, before submit order?

according to: app/design/frontend/rwd/default/layout/checkout.xml:

<!-- 1 page checkout order review block -->  <checkout_onepage_review translate="label">     <label>one page checkout overview</label>     <!-- mage_checkout -->     <remove name="right"/>     <remove name="left"/>      <block type="checkout/onepage_review_info" name="root" output="tohtml" template="checkout/onepage/review/info.phtml">         <action method="additemrender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>         <action method="additemrender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>         <action method="additemrender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>    <block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/>         <block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before" translate="label">             <label>items before</label>         </block>         <block type="core/text_list" name="checkout.onepage.review.info.items.after" as="items_after" translate="label">             <label>items after</label>         </block>         <block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="checkout/onepage/agreements.phtml"/>         <block type="core/template" name="checkout.onepage.review.button" as="button" template="checkout/onepage/review/button.phtml"/>     </block>     <block type="core/text_list" name="additional.product.info" translate="label">         <label>additional product info</label>     </block> </checkout_onepage_review> 

it doesn't seem line being executed:

<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="checkout/onepage/review/totals.phtml"/> 

i have: app/design/frontend/rwd/default/template/checkout/onepage/review/totals.phtml:

/**  * @see mage_checkout_block_cart_totals  */ ?> <?php if ($this->gettotals()): ?> <tfoot>     <?php $_colspan = $this->helper('tax')->displaycartbothprices() ? 5 : 3; ?>     <?php // echo $this->rendertotals(null, $_colspan); ?>     <?php echo $this->rendertotals('footer', $_colspan); ?>     <?php if ($this->needdisplaybasegrandtotal()):?>     <tr>         <td class="a-right" colspan="<?php echo $_colspan; ?>">             <small><?php echo $this->helper('sales')->__('your credit card charged for') ?></small>         </td>         <td class="a-right">             <small><?php echo $this->displaybasegrandtotal() ?></small>         </td>     </tr>     <?php endif?> </tfoot> <?php endif; ?> 

any appreciated!

i have found solution:

app/design/frontend/rwd/default/template/checkout/onepage/review/totals.phtml

<?php      $quote = mage::getsingleton('checkout/session')->getquote();     $totalquantity = $quote->getitemsqty();     $subtotal = $quote->getsubtotal();     $grandtotal = $quote->getgrandtotal();     $shippingtotal = $grandtotal - $subtotal;  ?>   <?php if ($this->gettotals()): ?> <tfoot>     <?php $_colspan = $this->helper('tax')->displaycartbothprices() ? 5 : 3; ?>     <?php // echo $this->rendertotals(null, $_colspan); ?>     <?php echo $this->rendertotals('footer', $_colspan); ?>      <tr>         <td class="a-right" colspan="<?php echo $_colspan; ?>">             <?php echo $this->helper('sales')->__('subtotal') ?>         </td>         <td class="a-right">             <?php echo mage::helper('core')->currency($subtotal,true,false);  ?>         </td>     </tr>      <tr>         <td class="a-right" colspan="<?php echo $_colspan; ?>">             <?php echo $this->helper('sales')->__('shipping & handling') ?>         </td>         <td class="a-right">             <?php echo mage::helper('core')->currency($shippingtotal,true,false); ?>         </td>     </tr>      <tr>         <td class="a-right" colspan="<?php echo $_colspan; ?>">             <strong><?php echo $this->helper('sales')->__('your credit card charged for') ?></strong>         </td>         <td class="a-right">             <strong><?php echo $this->displaybasegrandtotal() ?></strong>         </td>     </tr> </tfoot> <?php endif; ?> 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -