Anton_Cart - Version 0.0.1

Version Notes

First release

Download this release

Release Info

Developer Anton
Extension Anton_Cart
Version 0.0.1
Comparing to
See all releases


Version 0.0.1

app/code/community/Anton/Cart/Model/Observer.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Anton_Cart_Model_Observer
4
+ {
5
+ public function addToCart()
6
+ {
7
+ $uenc = Mage::app()->getFrontController()->getRequest()->getParam('uenc');
8
+ if ($uenc) {
9
+ $url = Mage::helper('core')->urlDecode($uenc);
10
+ Mage::app()->getFrontController()->getResponse()->setRedirect($url);
11
+ Mage::app()->getResponse()->sendResponse();
12
+ exit;
13
+ }
14
+ }
15
+ }
app/code/community/Anton/Cart/etc/config.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Anton_Cart>
5
+ <version>0.0.1</version>
6
+ </Anton_Cart>
7
+ </modules>
8
+ <frontend>
9
+ <events>
10
+ <checkout_cart_add_product_complete>
11
+ <observers>
12
+ <cart_observer>
13
+ <class>cart/observer</class>
14
+ <method>addToCart</method>
15
+ </cart_observer>
16
+ </observers>
17
+ </checkout_cart_add_product_complete>
18
+ </events>
19
+ </frontend>
20
+ <global>
21
+ <models>
22
+ <cart>
23
+ <class>Anton_Cart_Model</class>
24
+ </cart>
25
+ </models>
26
+ </global>
27
+ </config>
app/etc/modules/Anton_Cart.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <modules>
4
+ <Anton_Cart>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Anton_Cart>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Anton_Cart</name>
4
+ <version>0.0.1</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>This extension allow to add product in cart without redirecting to cart's page.</summary>
10
+ <description>This extension allow to add product in cart without redirecting to cart's page.&#xD;
11
+ All buttons "Add to Cart" in your theme must to send "uenc" param to redirect at sender page.</description>
12
+ <notes>First release</notes>
13
+ <authors><author><name>Anton</name><user>Krivoruchko</user><email>toanton@eml.cc</email></author></authors>
14
+ <date>2012-09-06</date>
15
+ <time>23:25:23</time>
16
+ <contents><target name="magecommunity"><dir name="Anton"><dir name="Cart"><dir name="Model"><file name="Observer.php" hash="b3c2dd298de02ecd74cbc3390f6f0301"/></dir><dir name="etc"><file name="config.xml" hash="80759c6517eaa31accb34589c51af49d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Anton_Cart.xml" hash="2122f82d938196987d424572faba8b54"/></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
+ </package>