Ewall_Cartsummary - Version 1.0.0

Version Notes

Provide your customers with a quick and convenient way view the cart summary in checkout page.

Download this release

Release Info

Developer Ewallsolutions
Extension Ewall_Cartsummary
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/local/Ewall/Cartsummary/Block/Summary.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Ewall_Cartsummary_Block_Summary extends Mage_Core_Block_Template
4
+ {
5
+ public function getQuote()
6
+ {
7
+ $grandTotal=Mage::getSingleton('checkout/cart')->getQuote();
8
+ return $grandTotal;
9
+ }
10
+
11
+ public function getShippingArray(){
12
+ if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
13
+ $val = $this->getQuote();
14
+ } else {
15
+ $val = Mage::getSingleton('checkout/session')->getQuote();
16
+ }
17
+ return $val;
18
+ }
19
+ }
app/code/local/Ewall/Cartsummary/etc/config.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <modules>
3
+ <Ewall_Cartsummary>
4
+ <version>0.1.0</version>
5
+ </Ewall_Cartsummary>
6
+ </modules>
7
+ <frontend>
8
+ <routers>
9
+ <cartsummary>
10
+ <use>standard</use>
11
+ <args>
12
+ <module>Ewall_Cartsummary</module>
13
+ <frontName>menu</frontName>
14
+ </args>
15
+ </cartsummary>
16
+ </routers>
17
+ <layout>
18
+ <updates>
19
+ <cartsummary module="Ewall_Cartsummary">
20
+ <file>cart_summary.xml</file>
21
+ </cartsummary>
22
+ </updates>
23
+ </layout>
24
+ </frontend>
25
+ <global>
26
+ <blocks>
27
+ <cartsummary>
28
+ <class>Ewall_Cartsummary_Block</class>
29
+ </cartsummary>
30
+ </blocks>
31
+ </global>
32
+ </config>
app/design/frontend/default/default/layout/cart_summary.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+
4
+ <checkout_onepage_index translate="label">
5
+ <label>One Page Checkout</label>
6
+ <block type="checkout/html_head" name="head" as="head">
7
+ <action method="addCss"><stylesheet>css/summary.css</stylesheet></action>
8
+ </block>
9
+ <remove name="left"/>
10
+
11
+ <reference name="root">
12
+ <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
13
+ </reference>
14
+ <reference name="right">
15
+ <action method="unsetChildren"></action>
16
+ <block type="cartsummary/summary" name="test" before="-" template="checkout/cart_summary.phtml" />
17
+ <block type="page/html_wrapper" name="checkout.progress.wrapper" translate="label">
18
+ <label>Checkout Progress Wrapper</label>
19
+ <action method="setElementId"><value>checkout-progress-wrapper</value></action>
20
+ <block type="checkout/onepage_progress" name="checkout.progress" before="-" template="checkout/onepage/progress.phtml"/>
21
+ </block>
22
+ </reference>
23
+ </checkout_onepage_index>
24
+
25
+ </layout>
app/design/frontend/default/default/template/checkout/cart_summary.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $val = $this->getShippingArray();
3
+ $items = $val->collectTotals();
4
+ $currency = $this->getSym();
5
+ $shippingMethod = $val->getShippingAddress();
6
+ ?>
7
+ <div id="cart-summary">
8
+ <div class="block-title">
9
+ <strong>
10
+ <span><?php echo $this->__('Cart Summary') ?></span>
11
+ </strong>
12
+ </div>
13
+ <div class="cart-summary-details ">
14
+ <div class="cart-item">
15
+ <label for="cartitem"><?php echo $this->__('Cart in Item') ?></label>
16
+ <span><?php echo $val->getItemsSummaryQty(); ?></span>
17
+ </div>
18
+ <div class="sub-total">
19
+ <label for="subtotal"><?php echo $this->__('Subtotal') ?></label>
20
+ <span><?php echo $this->helper('core')->formatPrice($items->getSubtotal()) ?></span>
21
+ </div>
22
+ <?php if($shippingMethod->getShippingAmount()):?>
23
+ <div class="flate-rate">
24
+ <label for="shiping-name"><?php echo $shippingMethod->getShippingDescription() ?></label>
25
+ <span><?php echo $this->helper('core')->formatPrice($shippingMethod->getShippingAmount()) ?></span>
26
+ </div>
27
+ <?php endif;?>
28
+ <?php if($shippingMethod->getTaxAmount()):?>
29
+ <div class="tax-ammount">
30
+ <label for="tax-name"><?php echo $this->__('Tax'); ?></label>
31
+ <span><?php echo $this->helper('core')->formatPrice($shippingMethod->getTaxAmount()) ?></span>
32
+ </div>
33
+ <?php endif;?>
34
+ <div class="grand-total">
35
+ <label for="grandTotal"><?php echo $this->__('GrandTotal') ?></label>
36
+ <span><?php echo $this->helper('core')->formatPrice($items->getGrandTotal()) ?></span>
37
+ </div>
38
+ </div>
39
+ </div>
app/etc/modules/Ewall_Cartsummary.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <modules>
3
+ <Ewall_Cartsummary>
4
+ <active>true</active>
5
+ <codePool>local</codePool>
6
+ </Ewall_Cartsummary>
7
+ </modules>
8
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Ewall_Cartsummary</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>Open Software License (OSL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Provide your customers with a quick and convenient way view the cart summary in checkout page.</summary>
10
+ <description>Provide your customers with a quick and convenient way view the cart summary in checkout page.</description>
11
+ <notes>Provide your customers with a quick and convenient way view the cart summary in checkout page.</notes>
12
+ <authors><author><name>Ewallsolutions</name><user>ewallsolutions</user><email>support@ewallsolutions.com</email></author></authors>
13
+ <date>2013-02-27</date>
14
+ <time>10:53:49</time>
15
+ <contents><target name="magelocal"><dir name="Ewall"><dir name="Cartsummary"><dir name="Block"><file name="Summary.php" hash="7b0da489c16617a505641cc34da6f5fa"/></dir><dir name="etc"><file name="config.xml" hash="a3c56d9cb8770100d6d9ce0b280cb157"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ewall_Cartsummary.xml" hash="64585116cfa23e0cdd915a39ff110a56"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="cart_summary.xml" hash="c4383e6cb1ae94fe334d98c79a759583"/></dir><dir name="template"><dir name="checkout"><file name="cart_summary.phtml" hash="5052b7663431a7b2494f28646c6044c2"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="summary.css" hash="9216261ae385b3c0cd0b4c973b84f4aa"/></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.13</min><max>5.3.15</max></php></required></dependencies>
18
+ </package>
skin/frontend/default/default/css/summary.css ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #cart-summary .block-title {
2
+ background: none repeat scroll 0 0 #F9F3E3;
3
+ color: #5E8AB4;
4
+ margin: 0;
5
+ border:1px solid #5E8AB4;
6
+ border-bottom:none;
7
+ padding: 2px 8px;
8
+ }
9
+ #cart-summary .block-title strong {
10
+ color: #F18200;
11
+ font-size: 13px;
12
+ text-transform: uppercase;
13
+ }
14
+
15
+ #cart-summary .cart-summary-details {
16
+ background: none repeat scroll 0 0 #FBFAF6;
17
+ border: 1px solid #BBAFA0;
18
+ display: block;
19
+ margin: 0 0 6px;
20
+ min-height: 85px;
21
+ padding: 5px 13px 13px;
22
+ }
23
+ #cart-summary .cart-summary-details .sub-total ,
24
+ #cart-summary .cart-summary-details .flate-rate ,
25
+ #cart-summary .cart-summary-details .tax-ammount ,
26
+ #cart-summary .cart-summary-details .grand-total {
27
+ clear:both;
28
+ }
29
+ #cart-summary .cart-summary-details label {
30
+ float:left;
31
+ }
32
+ #cart-summary .cart-summary-details span {
33
+ float:right;
34
+ }
35
+ #cart-summary .cart-summary-details .grand-total {
36
+ font-weight:bold;
37
+ }