Rp_Display_Price_Free - Version 0.1.1

Version Notes

compatible with 1.5 and greater version..

Download this release

Release Info

Developer Mage Rips
Extension Rp_Display_Price_Free
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/local/Rp/Displayfreeprice/Helper/Productprice.php CHANGED
@@ -13,6 +13,18 @@ class Rp_Displayfreeprice_Helper_Productprice extends Mage_Core_Helper_Data {
13
  }else{
14
  return $retval;
15
  }
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
  }
18
  ?>
13
  }else{
14
  return $retval;
15
  }
16
+ }
17
+ public static function currency( $price , $format=true , $includeContainer = true )
18
+ {
19
+ $modelPrice = Mage::getModel('Displayfreeprice/Price');
20
+ if( empty( $modelPrice ) ){
21
+ require_once ( Mage::getBaseDir('app') . '/code/local/Testing/Displayfreeprice/Model/Freeprice.php');
22
+ $modelPrice = new Testing_Displayfreeprice_Model_Price();
23
+ }
24
+
25
+ $retval = $modelPrice->_toHtml( $price );
26
+ return $retval == NULL ? parent::currency( $price, $format=true, $includeContainer = true ) : $retval;
27
+
28
  }
29
  }
30
  ?>
app/code/local/Rp/Displayfreeprice/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Rp_Displayfreeprice>
5
- <version>0.1.0</version>
6
  </Rp_Displayfreeprice>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Rp_Displayfreeprice>
5
+ <version>0.1.1</version>
6
  </Rp_Displayfreeprice>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,25 +1,34 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rp_Display_Price_Free</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Display product as FREE when product price is $0.00 on frontend.</summary>
10
- <description>Display product as FREE when product price is $0.00 on frontend. Enable or Disable extension as per requirement.&#xD;
 
11
  Installation steps:&#xD;
12
  ----------&#xD;
13
  - Its very easy to install, just copy app/ folder and paste on your magento root folder.&#xD;
14
  - You are done with installation. &#xD;
15
  - Login into store backend, flush all cache or disable all cache in System -&gt; Cache Management.&#xD;
16
  - Logout and login again from Backend to reload.&#xD;
17
- - The extension should be installed and you can use it.</description>
18
- <notes>None</notes>
 
 
 
 
 
 
 
 
19
  <authors><author><name>Mage Rips</name><user>magerips</user><email>rpmagerips@gmail.com</email></author></authors>
20
- <date>2015-01-01</date>
21
- <time>10:35:46</time>
22
- <contents><target name="mageetc"><dir name="modules"><file name="Rp_Displayfreeprice.xml" hash="a1e777af0c0c0dba0dd67050e74b9b0e"/></dir></target><target name="magelocal"><dir name="Rp"><dir name="Displayfreeprice"><dir name="Helper"><file name="Data.php" hash="c0052699d060b23ace7a5ff5eb23a5a4"/><file name="Productprice.php" hash="46ecc2c0e3395985d56080294c3b237f"/></dir><dir name="Model"><file name="Freeprice.php" hash="f4f05e4e0df7b8d2e51814689d58fd21"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ca631730f2440d101a2e0130554544d9"/><file name="config.xml" hash="c604d3331e94eec4629c7290fb21517b"/><file name="system.xml" hash="625d55d2018981858ad78390a0154fb1"/></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.0.1</min><max>6.0.0</max></php></required></dependencies>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rp_Display_Price_Free</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Display product price as FREE when product price is $0.00 on frontend. Enable or Disable extension as per requirement.</summary>
10
+ <description>Display product price as FREE when product price is $0.00 on frontend. Enable or Disable extension as per requirement.&#xD;
11
+ &#xD;
12
  Installation steps:&#xD;
13
  ----------&#xD;
14
  - Its very easy to install, just copy app/ folder and paste on your magento root folder.&#xD;
15
  - You are done with installation. &#xD;
16
  - Login into store backend, flush all cache or disable all cache in System -&gt; Cache Management.&#xD;
17
  - Logout and login again from Backend to reload.&#xD;
18
+ - The extension should be installed and you can use it.&#xD;
19
+ &#xD;
20
+ Supported Magento versions&#xD;
21
+ -----------------&#xD;
22
+ Magento CE version 1.5.x&#xD;
23
+ Magento CE version 1.6.x&#xD;
24
+ Magento CE version 1.7.x&#xD;
25
+ Magento CE version 1.8.x&#xD;
26
+ Magento CE version 1.9.x</description>
27
+ <notes>compatible with 1.5 and greater version..</notes>
28
  <authors><author><name>Mage Rips</name><user>magerips</user><email>rpmagerips@gmail.com</email></author></authors>
29
+ <date>2015-01-03</date>
30
+ <time>11:56:45</time>
31
+ <contents><target name="mageetc"><dir name="modules"><file name="Rp_Displayfreeprice.xml" hash="a1e777af0c0c0dba0dd67050e74b9b0e"/></dir></target><target name="magelocal"><dir name="Rp"><dir name="Displayfreeprice"><dir name="Helper"><file name="Data.php" hash="c0052699d060b23ace7a5ff5eb23a5a4"/><file name="Productprice.php" hash="b93e638d968c84c76772643489075400"/></dir><dir name="Model"><file name="Freeprice.php" hash="f4f05e4e0df7b8d2e51814689d58fd21"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ca631730f2440d101a2e0130554544d9"/><file name="config.xml" hash="8a9dbe3eb6c4e78b981459c56ef8d7eb"/><file name="system.xml" hash="625d55d2018981858ad78390a0154fb1"/></dir></dir></dir></target></contents>
32
  <compatible/>
33
  <dependencies><required><php><min>5.0.1</min><max>6.0.0</max></php></required></dependencies>
34
  </package>