mini_cart - Version 1.0.0

Version Notes

Mini Cart Header

Download this release

Release Info

Developer Hire Magento Inc.
Extension mini_cart
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/HM/Minicart/Block/View.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/
11
+ ?>
12
+ <?php
13
+ class HM_Minicart_Block_View extends Mage_Catalog_Block_Product_Abstract
14
+ {
15
+
16
+ }
app/code/community/HM/Minicart/etc/config.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--/**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/-->
11
+ <config>
12
+ <modules>
13
+ <HM_Minicart>
14
+ <version>0.1.0</version>
15
+ </HM_Minicart>
16
+ </modules>
17
+ <global>
18
+ <blocks>
19
+ <minicart>
20
+ <class>HM_Minicart_Block</class>
21
+ </minicart>
22
+ </blocks>
23
+ </global>
24
+ <frontend>
25
+ <layout>
26
+ <updates>
27
+ <stockindicator>
28
+ <file>minicart.xml</file>
29
+ </stockindicator>
30
+ </updates>
31
+ </layout>
32
+ </frontend>
33
+ </config>
app/design/frontend/base/default/layout/minicart.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--/**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/-->
11
+ <layout version="0.1.0">
12
+ <default>
13
+ <reference name="head">
14
+ <action method="addItem"><type>skin_js</type><name>js/hm/minicart.js</name><params/></action>
15
+ <action method="addCss"><stylesheet>css/hm/minicart.css</stylesheet></action>
16
+ </reference>
17
+ <reference name="header">
18
+ <reference name="top.links">
19
+ <remove name="checkout_cart_link"/>
20
+ <block type="minicart/view" name="minicart_toplink" template="minicart/toplink.phtml" >
21
+ <block type="checkout/cart_sidebar" name="cart_sidebar" as="topcart" template="checkout/cart/sidebar.phtml"/>
22
+ </block>
23
+ <action method="addLinkBlock"><blockName>minicart_toplink</blockName></action>
24
+ <block type="checkout/links" name="checkout_cart_link_minicart">
25
+ <action method="addCheckoutLink"></action>
26
+ </block>
27
+ </reference>
28
+ </reference>
29
+ </default>
30
+ </layout>
app/design/frontend/base/default/template/minicart/link.phtml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/
11
+ ?>
12
+ <div id="minicart">
13
+ <div id="minicart-link">
14
+ <?php printf('<a href="%s">%s: %s</a>', $this->getUrl('checkout/cart'), $this->__('My Cart'), $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal())) ?>
15
+ </div>
16
+ <div id="minicart-panel" style="display:none;">
17
+ <?php echo $this->getChildHtml('topcart'); ?>
18
+ </div>
19
+ </div>
app/design/frontend/base/default/template/minicart/toplink.phtml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/
11
+ ?>
12
+ <li id="minicart">
13
+ <div id="minicart-link">
14
+ <?php printf('<a href="%s">%s: %s</a>', $this->getUrl('checkout/cart'), $this->__('My Cart'), $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal())) ?>
15
+ </div>
16
+ <div id="minicart-panel" style="display:none;">
17
+ <?php echo $this->getChildHtml('topcart'); ?>
18
+ </div>
19
+ </li>
app/etc/modules/HM_Minicart.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--/**
3
+ * Magento
4
+ *
5
+ * Mini Cart Header
6
+ * Author: Hire Magento
7
+ * Website: www.hiremagento.com
8
+ * Suport Email: hiremagento@gmail.com
9
+ *
10
+ **/-->
11
+ <config>
12
+ <modules>
13
+ <HM_Minicart>
14
+ <active>true</active>
15
+ <codePool>community</codePool>
16
+ <depends>
17
+ <Mage_Core />
18
+ </depends>
19
+ </HM_Minicart>
20
+ </modules>
21
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>mini_cart</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Mini Cart Header</summary>
10
+ <description>Mini Cart Header</description>
11
+ <notes>Mini Cart Header</notes>
12
+ <authors><author><name>Hire Magento Inc.</name><user>hiremagento</user><email>hiremagento@gmail.com</email></author></authors>
13
+ <date>2013-08-30</date>
14
+ <time>19:18:32</time>
15
+ <contents><target name="magecommunity"><dir name="HM"><dir name="Minicart"><dir name="Block"><file name="View.php" hash="03fcb421f8be7b918e6437ff15245678"/></dir><dir name="etc"><file name="config.xml" hash="9e88b8846e902b81e148581120f31617"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="minicart.xml" hash="0f3f33d1a70ec5ed010505f165e0ab19"/></dir><dir name="template"><dir name="minicart"><file name="link.phtml" hash="39bd241186dc3e85427895254a1885a9"/><file name="toplink.phtml" hash="eb54895588f4c8f77e95ff2082f8dd1c"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="hm"><file name="minicart.css" hash="082d8443b087fee585b94c678203dc55"/></dir></dir><dir name="js"><dir name="hm"><file name="minicart.js" hash="9e17a95107ab7c1acaf308f91d3dc41c"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HM_Minicart.xml" hash="4270485623d1e3d187f6f57706d5999d"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.4</min><max>1.7</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
18
+ </package>
skin/frontend/base/default/css/hm/minicart.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ #minicart { float: left; position: relative;}
2
+ #minicart-link { overflow: hidden; text-align: right; }
3
+ #minicart-panel { width: 250px; position: absolute; right: 0; text-align: left; z-index: 10;}
4
+ #minicart-panel .block-title { display: none }
skin/frontend/base/default/js/hm/minicart.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * Mini Cart Header
5
+ * Author: Hire Magento
6
+ * Website: www.hiremagento.com
7
+ * Suport Email: hiremagento@gmail.com
8
+ *
9
+ **/
10
+ document.observe('dom:loaded', function() {
11
+ $('minicart').observe('mouseover', function(e) {
12
+ $('minicart-panel').show();
13
+ });
14
+ $('minicart').observe('mouseout', function(e) {
15
+ $('minicart-panel').hide();
16
+ });
17
+ });