Version Notes
To use the extension place the following code:
----------------------------------------------------------------
{{block type="catalog/product/aw_fps" template="catalog/product/aw_fps.phtml"}}
----------------------------------------------------------------
on any page with the help of Magento CMS. After this done, go to Admin->Catalog->Manage Products->edit a product and set "Rotate in featured products slideshow" to "Yes". Navigate to the page in which you inserted the block above and enjoy the slideshow.
Download this release
Release Info
Developer | Magento Core Team |
Extension | AW_FPS |
Version | 0.9.4 |
Comparing to | |
See all releases |
Code changes from version 0.9.3 to 0.9.4
app/code/local/AW/FPS/Model/Entity/Attribute/Backend/Boolean/Config.php
CHANGED
@@ -48,16 +48,17 @@ class AW_FPS_Model_Entity_Attribute_Backend_Boolean_Config extends Mage_Eav_Mode
|
|
48 |
$product_id = $object->getData('entity_id');
|
49 |
|
50 |
$code = $object->getData($this->getAttribute()->getAttributeCode());
|
|
|
51 |
if($code == 0) {
|
52 |
$object->unsData($this->getAttribute()->getAttributeCode());
|
53 |
//remove product ID
|
54 |
-
$write->query("DELETE FROM
|
55 |
}
|
56 |
else{
|
57 |
//add project ID to the rotation
|
58 |
-
$r = $write->fetchRow("SELECT * FROM
|
59 |
if(!$r)
|
60 |
-
$write->query("INSERT INTO
|
61 |
}
|
62 |
}
|
63 |
|
48 |
$product_id = $object->getData('entity_id');
|
49 |
|
50 |
$code = $object->getData($this->getAttribute()->getAttributeCode());
|
51 |
+
$table = Mage::getSingleton('core/resource')->getTableName('aw_fps');
|
52 |
if($code == 0) {
|
53 |
$object->unsData($this->getAttribute()->getAttributeCode());
|
54 |
//remove product ID
|
55 |
+
$write->query("DELETE FROM $table WHERE product_id='$product_id'");
|
56 |
}
|
57 |
else{
|
58 |
//add project ID to the rotation
|
59 |
+
$r = $write->fetchRow("SELECT * FROM $table WHERE product_id='$product_id'");
|
60 |
if(!$r)
|
61 |
+
$write->query("INSERT INTO $table (product_id) VALUE ($product_id)");
|
62 |
}
|
63 |
}
|
64 |
|
app/code/local/AW/FPS/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<AW_FPS>
|
5 |
-
<version>0.9.
|
6 |
</AW_FPS>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<AW_FPS>
|
5 |
+
<version>0.9.4</version>
|
6 |
</AW_FPS>
|
7 |
</modules>
|
8 |
|
app/code/local/AW/FPS/etc/system.xml
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<config />
|
1 |
<?xml version="1.0"?>
|
2 |
+
<config />
|
app/code/local/AW/FPS/sql/awfps_setup/{mysql4-install-0.9.1.php → mysql4-install-0.9.4.php}
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AW_FPS</name>
|
4 |
-
<version>0.9.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -14,9 +14,9 @@
|
|
14 |
----------------------------------------------------------------
|
15 |
on any page with the help of Magento CMS. After this done, go to Admin->Catalog->Manage Products->edit a product and set "Rotate in featured products slideshow" to "Yes". Navigate to the page in which you inserted the block above and enjoy the slideshow.</notes>
|
16 |
<authors><author><name>Artyom</name><user>auto-converted</user><email>rabzonov@aheadworks.com</email></author></authors>
|
17 |
-
<date>2008-12-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magelocal"><dir name="AW"><dir name="FPS"><dir name="etc"><file name="config.xml" hash="
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AW_FPS</name>
|
4 |
+
<version>0.9.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
14 |
----------------------------------------------------------------
|
15 |
on any page with the help of Magento CMS. After this done, go to Admin->Catalog->Manage Products->edit a product and set "Rotate in featured products slideshow" to "Yes". Navigate to the page in which you inserted the block above and enjoy the slideshow.</notes>
|
16 |
<authors><author><name>Artyom</name><user>auto-converted</user><email>rabzonov@aheadworks.com</email></author></authors>
|
17 |
+
<date>2008-12-12</date>
|
18 |
+
<time>15:31:24</time>
|
19 |
+
<contents><target name="magelocal"><dir name="AW"><dir name="FPS"><dir name="etc"><file name="config.xml" hash="8dda111d1f89d8136cbf0159039a4ec9"/><file name="system.xml" hash="74056d139edd1081d409305f98b046b4"/></dir><dir name="Helper"><file name="Data.php" hash="46aea6822074dd2f08f23018f49c13f4"/></dir><dir name="Model"><dir name="Entity"><dir name="Attribute"><dir name="Backend"><dir name="Boolean"><file name="Config.php" hash="faa1167c170738331125551ddc1a2e8c"/></dir></dir><dir name="Source"><dir name="Boolean"><file name="Config.php" hash="75a97e221006157620840c7c34e71506"/></dir></dir></dir></dir></dir><dir name="sql"><dir name="awfps_setup"><file name="mysql4-install-0.9.4.php" hash="e6742522f0be7e0d3b93bb8b9d285aea"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="catalog"><dir name="product"><file name="aw_fps.phtml" hash="387667398ffad6b95494bbde9e0d24d3"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AW_FPS.xml" hash="17d222a04de3cf7f10e293104a7891be"/></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|