Macpain_Leetchi - Version 0.1.1

Version Notes

Added translations for German and French language.

Download this release

Release Info

Developer Marceli Podstawski
Extension Macpain_Leetchi
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/local/Macpain/Leetchi/controllers/LeetchiController.php CHANGED
@@ -123,8 +123,11 @@ class Macpain_Leetchi_LeetchiController extends Mage_Core_Controller_Front_Actio
123
  */
124
  protected function _emptyShoppingCart()
125
  {
126
- try {
127
- $this->_getCart()->truncate()->save();
 
 
 
128
  $this->_getSession()->setCartWasUpdated(true);
129
  } catch (Mage_Core_Exception $exception) {
130
  $this->_getSession()->addError($exception->getMessage());
123
  */
124
  protected function _emptyShoppingCart()
125
  {
126
+ try {
127
+ foreach( Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item ){
128
+ Mage::getSingleton('checkout/cart')->removeItem( $item->getId() )->save();
129
+ }
130
+ //$this->_getCart()->truncate()->save();
131
  $this->_getSession()->setCartWasUpdated(true);
132
  } catch (Mage_Core_Exception $exception) {
133
  $this->_getSession()->addError($exception->getMessage());
app/code/local/Macpain/Leetchi/etc/config.xml CHANGED
@@ -22,6 +22,15 @@
22
  </leetchi>
23
  </updates>
24
  </layout>
 
 
 
 
 
 
 
 
 
25
  </frontend>
26
  <global>
27
  <models>
22
  </leetchi>
23
  </updates>
24
  </layout>
25
+ <translate>
26
+ <modules>
27
+ <Macpain_Leetchi>
28
+ <files>
29
+ <default>Macpain_Leetchi.csv</default>
30
+ </files>
31
+ </Macpain_Leetchi>
32
+ </modules>
33
+ </translate>
34
  </frontend>
35
  <global>
36
  <models>
app/design/frontend/default/default/template/macpain/leetchi/redirect.phtml CHANGED
@@ -1,4 +1,4 @@
1
- <p id="helper-txt"><?php echo $this->__('In a moment you will be redirected to leetchi.com payment page') ?></p>
2
  <script type="text/javascript" src="<?php echo Mage::getStoreConfig('payment/leetchi/redirect_js') ?>"></script>
3
  <link href="<?php echo Mage::getStoreConfig('payment/leetchi/redirect_css') ?>" rel="stylesheet" type="text/css" />
4
  <?php echo $this->getLeetchiForm()->toHtml(); ?>
1
+ <p id="helper-txt"><?php echo $this->__('You will be redirected to Leetchi.com in order to conduct your payment.') ?></p>
2
  <script type="text/javascript" src="<?php echo Mage::getStoreConfig('payment/leetchi/redirect_js') ?>"></script>
3
  <link href="<?php echo Mage::getStoreConfig('payment/leetchi/redirect_css') ?>" rel="stylesheet" type="text/css" />
4
  <?php echo $this->getLeetchiForm()->toHtml(); ?>
app/locale/de_DE/Macpain_Leetchi.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ "You will be redirected to Leetchi.com in order to conduct your payment.","Sie werden in Kürze zum Bezahlen auf Leetchi.com weitergeleitet."
2
+ "Order details.","Details Ihrer Bestellung."
3
+ "Your order has been cancelled.","Ihre Bestellung wurde storniert."
4
+ "You will receive an order cancellation email with details of your order.","Sie erhalten eine Bestätigung der Stornierung per Email."
app/locale/en_US/Macpain_Leetchi.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ "You will be redirected to Leetchi.com in order to conduct your payment.","You will be redirected to Leetchi.com in order to conduct your payment."
2
+ "Order details.","Order details."
3
+ "Your order has been cancelled.","Your order has been cancelled."
4
+ "You will receive an order cancellation email with details of your order.","You will receive an order cancellation email with details of your order."
app/locale/fr_FR/Macpain_Leetchi.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ "You will be redirected to Leetchi.com in order to conduct your payment.","Vous allez être redirigé sur la fenêtre de paiement Leetchi.com dans quelques instants."
2
+ "Order details.","Informations sur votre commande."
3
+ "Your order has been cancelled.","Votre commande a été annulée."
4
+ "You will receive an order cancellation email with details of your order.","Vous recevrez un e-mail d'annulation comprenant les détails de votre commande."
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Macpain_Leetchi</name>
4
- <version>0.1.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>This extension provides new payment method with external paygate to leetchi.com</summary>
10
- <description>This extension provides new payment method with external paygate to leetchi.com. In order to provide this payment method you have to conntact leetchi.com and obtain leetchi user and account information. To configure this extension simply go to System -&gt; Configuration -&gt; Sales (tab) -&gt; Payment Methods -&gt; Leetchi. This method is available only for one page checkout.</description>
11
- <notes>First release</notes>
12
- <authors><author><name>Marceli Podstawski</name><user>macpain</user><email>m.podstawski@centerkom.pl</email></author></authors>
13
- <date>2012-12-29</date>
14
- <time>22:22:11</time>
15
- <contents><target name="magelocal"><dir name="Macpain"><dir name="Leetchi"><dir name="Block"><file name="Cancel.php" hash="65630eb6a079047bea2056fa6f76d711"/><dir name="Form"><file name="Leetchi.php" hash="bb050908d1087ea9cd06105de8022e2d"/></dir><file name="Redirect.php" hash="1eb7981367d885863d325b75056addee"/></dir><dir name="Helper"><file name="Data.php" hash="b6e83e77ec3e2f71b21b8146995971ef"/></dir><dir name="Model"><dir name="Entity"><file name="Setup.php" hash="a30703533df660f6583510db5af50ee2"/></dir><file name="Leetchi.php" hash="6ea873b1bb7664b05ade2bf32700ec9e"/><dir name="Method"><file name="Leetchi.php" hash="d3157ddf3ea0955994e202dd634a67ce"/></dir></dir><dir name="controllers"><file name="LeetchiController.php" hash="53b62c64193a457ac67f056930a82c27"/></dir><dir name="etc"><file name="config.xml" hash="67c4640979dc6c89ab606d8987b819de"/><file name="system.xml" hash="4922a2f37c4c0c84a320cde79f52669d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Macpain_Leetchi.xml" hash="465f19bcf98f16c02b5249a65cef1566"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="macpain_leetchi.xml" hash="5fe26f74ff2548370b1ce5832051b746"/></dir><dir name="template"><dir name="macpain"><dir name="leetchi"><file name="cancel.phtml" hash="cc228cb64ecc71f50394535edddad57e"/><dir name="form"><file name="leetchi.phtml" hash="ef9f31a03a5c4ab88c48f12c26eeecdd"/></dir><file name="redirect.phtml" hash="9d8272f98eb08b0d01dbc0e0e59f3bb9"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Macpain_Leetchi</name>
4
+ <version>0.1.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 provides new payment method with external paygate to leetchi.com</summary>
10
+ <description>This extension provides new payment method with external paygate to leetchi.com. In order to provide this payment method you have to conntact leetchi.com and obtain leetchi user and account information. To configure this extension simply go to System -&gt; Configuration -&gt; Sales (tab) -&gt; Payment Methods -&gt; Leetchi. This method is available only for one page checkout. This extension is based on version 1.0 Integration Guide documentation.</description>
11
+ <notes>Added translations for German and French language.</notes>
12
+ <authors><author><name>Marceli Podstawski</name><user>macpain82</user><email>m.podstawski@centerkom.pl</email></author></authors>
13
+ <date>2013-03-05</date>
14
+ <time>13:53:49</time>
15
+ <contents><target name="magelocal"><dir name="Macpain"><dir name="Leetchi"><dir name="Block"><file name="Cancel.php" hash="65630eb6a079047bea2056fa6f76d711"/><dir name="Form"><file name="Leetchi.php" hash="bb050908d1087ea9cd06105de8022e2d"/></dir><file name="Redirect.php" hash="1eb7981367d885863d325b75056addee"/></dir><dir name="Helper"><file name="Data.php" hash="b6e83e77ec3e2f71b21b8146995971ef"/></dir><dir name="Model"><dir name="Entity"><file name="Setup.php" hash="a30703533df660f6583510db5af50ee2"/></dir><file name="Leetchi.php" hash="6ea873b1bb7664b05ade2bf32700ec9e"/><dir name="Method"><file name="Leetchi.php" hash="d3157ddf3ea0955994e202dd634a67ce"/></dir></dir><dir name="controllers"><file name="LeetchiController.php" hash="a15fb0d4c45b28f5e390226e2e715d0d"/></dir><dir name="etc"><file name="config.xml" hash="649fe61afb744cb4ac137533848fce19"/><file name="system.xml" hash="4922a2f37c4c0c84a320cde79f52669d"/></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Macpain_Leetchi.csv" hash="74b5a7e08ffbc07a9df624a4cafde8fc"/></dir><dir name="en_US"><file name="Macpain_Leetchi.csv" hash="2e7c98b62d26490e58ddd32833c04a93"/></dir><dir name="fr_FR"><file name="Macpain_Leetchi.csv" hash="7c3a54beef87fcd0b5b03701de6def7b"/></dir></target><target name="mageetc"><dir name="modules"><file name="Macpain_Leetchi.xml" hash="465f19bcf98f16c02b5249a65cef1566"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="macpain_leetchi.xml" hash="5fe26f74ff2548370b1ce5832051b746"/></dir><dir name="template"><dir name="macpain"><dir name="leetchi"><file name="cancel.phtml" hash="cc228cb64ecc71f50394535edddad57e"/><dir name="form"><file name="leetchi.phtml" hash="ef9f31a03a5c4ab88c48f12c26eeecdd"/></dir><file name="redirect.phtml" hash="649af2c662dc5a112314f518737d3282"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>