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.
|
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.
|
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.
|
|
|
11 |
Installation steps:
|
12 |
----------
|
13 |
- Its very easy to install, just copy app/ folder and paste on your magento root folder.
|
14 |
- You are done with installation. 
|
15 |
- Login into store backend, flush all cache or disable all cache in System -> Cache Management.
|
16 |
- Logout and login again from Backend to reload.
|
17 |
-
- The extension should be installed and you can use it
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<authors><author><name>Mage Rips</name><user>magerips</user><email>rpmagerips@gmail.com</email></author></authors>
|
20 |
-
<date>2015-01-
|
21 |
-
<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="
|
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.
|
11 |
+

|
12 |
Installation steps:
|
13 |
----------
|
14 |
- Its very easy to install, just copy app/ folder and paste on your magento root folder.
|
15 |
- You are done with installation. 
|
16 |
- Login into store backend, flush all cache or disable all cache in System -> Cache Management.
|
17 |
- Logout and login again from Backend to reload.
|
18 |
+
- The extension should be installed and you can use it.
|
19 |
+

|
20 |
+
Supported Magento versions
|
21 |
+
-----------------
|
22 |
+
Magento CE version 1.5.x
|
23 |
+
Magento CE version 1.6.x
|
24 |
+
Magento CE version 1.7.x
|
25 |
+
Magento CE version 1.8.x
|
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>
|