Version Notes
none
Download this release
Release Info
Developer | Mage Rips |
Extension | Rp_Display_Price_Free |
Version | 0.1.2 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.2
app/code/local/Rp/Displayfreeprice/Helper/Productprice.php
CHANGED
@@ -16,14 +16,17 @@ class Rp_Displayfreeprice_Helper_Productprice extends Mage_Core_Helper_Data {
|
|
16 |
}
|
17 |
public static function currency( $price , $format=true , $includeContainer = true )
|
18 |
{
|
19 |
-
$modelPrice = Mage::getModel('Displayfreeprice/
|
20 |
-
if( empty(
|
21 |
-
require_once (
|
22 |
-
$modelPrice = new
|
23 |
}
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
}
|
29 |
}
|
16 |
}
|
17 |
public static function currency( $price , $format=true , $includeContainer = true )
|
18 |
{
|
19 |
+
$modelPrice = Mage::getModel('Displayfreeprice/Freeprice');
|
20 |
+
if( empty($modelPrice) ){
|
21 |
+
require_once (Mage::getBaseDir('app').'/code/local/Rp/Displayfreeprice/Model/Freeprice.php');
|
22 |
+
$modelPrice = new Rp_Displayfreeprice_Model_Freeprice();
|
23 |
}
|
24 |
+
$retval = $modelPrice->getPrice($price);
|
25 |
+
if($retval == NULL){
|
26 |
+
return parent::formatPrice($price, $includeContainer);
|
27 |
+
}else{
|
28 |
+
return $retval;
|
29 |
+
}
|
30 |
|
31 |
}
|
32 |
}
|
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.2</version>
|
6 |
</Rp_Displayfreeprice>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
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>
|
@@ -24,11 +24,11 @@ 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>
|
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>
|
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="
|
32 |
<compatible/>
|
33 |
<dependencies><required><php><min>5.0.1</min><max>6.0.0</max></php></required></dependencies>
|
34 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Rp_Display_Price_Free</name>
|
4 |
+
<version>0.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
24 |
Magento CE version 1.7.x
|
25 |
Magento CE version 1.8.x
|
26 |
Magento CE version 1.9.x</description>
|
27 |
+
<notes>none</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>12:29:31</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="f8ae2e5a82ce4e17194311dfbc1b544f"/></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="d5583ab8e6c4ab06bd227feaff65a24e"/><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>
|