Version Notes
First release.
Download this release
Release Info
Developer | Daffodil Software |
Extension | Daffodil_Isfeatured |
Version | 1.0.0.1 |
Comparing to | |
See all releases |
Version 1.0.0.1
- app/code/local/Daffodil/Isfeatured/Block/Isfeatured.php +10 -0
- app/code/local/Daffodil/Isfeatured/Block/Isfeatured.php~ +57 -0
- app/code/local/Daffodil/Isfeatured/Helper/Data.php +11 -0
- app/code/local/Daffodil/Isfeatured/controllers/IndexController.php +14 -0
- app/code/local/Daffodil/Isfeatured/controllers/IndexController.php~ +14 -0
- app/code/local/Daffodil/Isfeatured/controllers/IsfeaturedController.php~ +14 -0
- app/code/local/Daffodil/Isfeatured/etc/config.xml +92 -0
- app/code/local/Daffodil/Isfeatured/etc/config.xml~ +83 -0
- app/code/local/Daffodil/Isfeatured/etc/system.xml +59 -0
- app/code/local/Daffodil/Isfeatured/etc/system.xml~ +66 -0
- app/code/local/Daffodil/Isfeatured/sql/categoryattribute1350295220_setup/mysql4-install-0.1.0.php +31 -0
- app/code/local/Daffodil/Isfeatured/sql/categoryattribute1350295220_setup/mysql4-install-0.1.0.php~ +31 -0
- app/design/frontend/default/default/layout/isfeatured.xml +9 -0
- app/design/frontend/default/default/template/isfeatured/featureblock.phtml +83 -0
- app/design/frontend/default/default/template/isfeatured/featureblock.phtml~ +83 -0
- app/design/frontend/default/default/template/isfeatured/isfeatured..phtml~ +30 -0
- app/design/frontend/default/default/template/isfeatured/isfeatured.phtml~ +30 -0
- app/etc/modules/Daffodil_Isfeatured.xml +10 -0
- package.xml +24 -0
- skin/frontend/default/default/css/isfeatured.css +116 -0
- skin/frontend/default/default/images/featured/left.png +0 -0
- skin/frontend/default/default/images/featured/right.png +0 -0
app/code/local/Daffodil/Isfeatured/Block/Isfeatured.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Featured product Extension Developed by Daffodil S/w Ltd.
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<?php
|
7 |
+
class Daffodil_Isfeatured_Block_Festock extends Mage_Core_Block_Template
|
8 |
+
{
|
9 |
+
}
|
10 |
+
?>
|
app/code/local/Daffodil/Isfeatured/Block/Isfeatured.php~
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Daffodil_Isfeatured_Block_Festock extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
function isVisible()
|
8 |
+
{
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
$block = $this->getLayout()
|
13 |
+
->getBlock('product.info');
|
14 |
+
|
15 |
+
if ($block) {
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
// Block exists - you're viewing product page
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
//$config = Mage::getConfig();
|
25 |
+
$config = Mage::getStoreConfig('divslider_options');
|
26 |
+
// $myvalue=Mage::getStoreConfig('divslider_options');
|
27 |
+
// $socialcodes=Mage::getStoreConfig('divslider_options');
|
28 |
+
//$true=$myvalue['all_settings']['enabledisable'];
|
29 |
+
//$enable=1;
|
30 |
+
/*if($enable == "true")
|
31 |
+
{
|
32 |
+
$enable = 1;
|
33 |
+
}
|
34 |
+
else
|
35 |
+
{
|
36 |
+
$true = 0;
|
37 |
+
}
|
38 |
+
if($myvalue['all_settings']['enabledisable']==$enable){
|
39 |
+
|
40 |
+
//$socialcodes['all_settings']['fbappid'];
|
41 |
+
|
42 |
+
|
43 |
+
//return false;
|
44 |
+
} */
|
45 |
+
$enable = $config['all_settings']['enabledisable'];
|
46 |
+
echo $enable;
|
47 |
+
|
48 |
+
}
|
49 |
+
function isEnable()
|
50 |
+
{
|
51 |
+
$config = Mage::getStoreConfig('divslider_options');
|
52 |
+
$enable = $config['all_settings']['enabledisable'];
|
53 |
+
return $enable;
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
?>
|
app/code/local/Daffodil/Isfeatured/Helper/Data.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php
|
3 |
+
/*
|
4 |
+
* Featured product Extension Developed by Daffodil S/w Ltd.
|
5 |
+
*/
|
6 |
+
?>
|
7 |
+
<?php
|
8 |
+
class Daffodil_Isfeatured_Helper_Data extends Mage_Core_Helper_Abstract
|
9 |
+
{
|
10 |
+
}
|
11 |
+
|
app/code/local/Daffodil/Isfeatured/controllers/IndexController.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Featured product Extension Developed by Daffodil S/w Ltd.
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<?php
|
7 |
+
class Daffodil_Isfeatured_IndexController extends Mage_Core_Controller_Front_Action{
|
8 |
+
public function indexAction()
|
9 |
+
{
|
10 |
+
$this->loadLayout();
|
11 |
+
$this->renderLayout();
|
12 |
+
}
|
13 |
+
}
|
14 |
+
?>
|
app/code/local/Daffodil/Isfeatured/controllers/IndexController.php~
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Daffodil_Isfeatured_IndexController extends Mage_Core_Controller_Front_Action{
|
3 |
+
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
echo "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh";
|
7 |
+
$this->loadLayout();
|
8 |
+
$this->renderLayout();
|
9 |
+
|
10 |
+
}
|
11 |
+
|
12 |
+
}
|
13 |
+
|
14 |
+
?>
|
app/code/local/Daffodil/Isfeatured/controllers/IsfeaturedController.php~
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Daffodil_Isfeatured_IsfeaturedController extends Mage_Core_Controller_Front_Action{
|
3 |
+
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
|
7 |
+
$this->loadLayout();
|
8 |
+
$this->renderLayout();
|
9 |
+
|
10 |
+
}
|
11 |
+
|
12 |
+
}
|
13 |
+
|
14 |
+
?>
|
app/code/local/Daffodil/Isfeatured/etc/config.xml
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Daffodil_Isfeatured>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Daffodil_Isfeatured>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<isfeatured>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Daffodil_Isfeatured</module>
|
14 |
+
<frontName>isfeatured</frontName>
|
15 |
+
</args>
|
16 |
+
</isfeatured>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<festock>
|
21 |
+
<file>isfeatured.xml</file>
|
22 |
+
</festock>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<helpers>
|
28 |
+
<isfeatured>
|
29 |
+
<class>Daffodil_Isfeatured_Helper</class>
|
30 |
+
</isfeatured>
|
31 |
+
|
32 |
+
</helpers>
|
33 |
+
|
34 |
+
<models>
|
35 |
+
<isfeatured>
|
36 |
+
<class>Daffodil_Isfeatured_Model</class>
|
37 |
+
<resourceModel>isfeatured_mysql4</resourceModel>
|
38 |
+
</isfeatured>
|
39 |
+
</models>
|
40 |
+
<resources>
|
41 |
+
<categoryattribute1350295220_setup>
|
42 |
+
<setup>
|
43 |
+
<module>Daffodil_Isfeatured</module>
|
44 |
+
<class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class>
|
45 |
+
</setup>
|
46 |
+
<connection>
|
47 |
+
<use>core_setup</use>
|
48 |
+
</connection>
|
49 |
+
</categoryattribute1350295220_setup>
|
50 |
+
<categoryattribute1350295220_write>
|
51 |
+
<connection>
|
52 |
+
<use>core_write</use>
|
53 |
+
</connection>
|
54 |
+
</categoryattribute1350295220_write>
|
55 |
+
<categoryattribute1350295220_read>
|
56 |
+
<connection>
|
57 |
+
<use>core_read</use>
|
58 |
+
</connection>
|
59 |
+
</categoryattribute1350295220_read>
|
60 |
+
</resources>
|
61 |
+
</global>
|
62 |
+
<adminhtml>
|
63 |
+
<acl>
|
64 |
+
<resources>
|
65 |
+
<admin>
|
66 |
+
<children>
|
67 |
+
<system>
|
68 |
+
<children>
|
69 |
+
<config>
|
70 |
+
<children>
|
71 |
+
<isfeatured>
|
72 |
+
<title>Store Is featured option</title>
|
73 |
+
</isfeatured>
|
74 |
+
</children>
|
75 |
+
</config>
|
76 |
+
</children>
|
77 |
+
</system>
|
78 |
+
</children>
|
79 |
+
</admin>
|
80 |
+
</resources>
|
81 |
+
</acl>
|
82 |
+
</adminhtml>
|
83 |
+
<default>
|
84 |
+
<isfeatured>
|
85 |
+
<all_settings>
|
86 |
+
<enabled>1</enabled>
|
87 |
+
<title>Feature Products</title>
|
88 |
+
<product_no>8</product_no>
|
89 |
+
</all_settings>
|
90 |
+
</isfeatured>
|
91 |
+
</default>
|
92 |
+
</config>
|
app/code/local/Daffodil/Isfeatured/etc/config.xml~
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Daffodil_Isfeatured>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Daffodil_Isfeatured>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<isfeatured>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Daffodil_Isfeatured</module>
|
14 |
+
<frontName>isfeatured</frontName>
|
15 |
+
</args>
|
16 |
+
</isfeatured>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<festock>
|
21 |
+
<file>isfeatured.xml</file>
|
22 |
+
</festock>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<helpers>
|
28 |
+
<isfeatured>
|
29 |
+
<class>Daffodil_Isfeatured_Helper</class>
|
30 |
+
</isfeatured>
|
31 |
+
|
32 |
+
</helpers>
|
33 |
+
|
34 |
+
<models>
|
35 |
+
<isfeatured>
|
36 |
+
<class>Daffodil_Isfeatured_Model</class>
|
37 |
+
<resourceModel>isfeatured_mysql4</resourceModel>
|
38 |
+
</isfeatured>
|
39 |
+
</models>
|
40 |
+
<resources>
|
41 |
+
<categoryattribute1350295220_setup>
|
42 |
+
<setup>
|
43 |
+
<module>Daffodil_Isfeatured</module>
|
44 |
+
<class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class>
|
45 |
+
</setup>
|
46 |
+
<connection>
|
47 |
+
<use>core_setup</use>
|
48 |
+
</connection>
|
49 |
+
</categoryattribute1350295220_setup>
|
50 |
+
<categoryattribute1350295220_write>
|
51 |
+
<connection>
|
52 |
+
<use>core_write</use>
|
53 |
+
</connection>
|
54 |
+
</categoryattribute1350295220_write>
|
55 |
+
<categoryattribute1350295220_read>
|
56 |
+
<connection>
|
57 |
+
<use>core_read</use>
|
58 |
+
</connection>
|
59 |
+
</categoryattribute1350295220_read>
|
60 |
+
</resources>
|
61 |
+
</global>
|
62 |
+
<adminhtml>
|
63 |
+
<acl>
|
64 |
+
<resources>
|
65 |
+
<admin>
|
66 |
+
<children>
|
67 |
+
<system>
|
68 |
+
<children>
|
69 |
+
<config>
|
70 |
+
<children>
|
71 |
+
<isfeatured>
|
72 |
+
<title>Store Is featured option</title>
|
73 |
+
</isfeatured>
|
74 |
+
</children>
|
75 |
+
</config>
|
76 |
+
</children>
|
77 |
+
</system>
|
78 |
+
</children>
|
79 |
+
</admin>
|
80 |
+
</resources>
|
81 |
+
</acl>
|
82 |
+
</adminhtml>
|
83 |
+
</config>
|
app/code/local/Daffodil/Isfeatured/etc/system.xml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<isfeatured translate="label" module="isfeatured">
|
5 |
+
<label>Featured Products</label>
|
6 |
+
<sort_order>700</sort_order>
|
7 |
+
</isfeatured>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<isfeatured translate="label" module="isfeatured">
|
11 |
+
<tab>isfeatured</tab>
|
12 |
+
<label>Featured Product settings</label>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>1000</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<all_settings translate="label">
|
20 |
+
<label>Featured Product</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>10</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>0</show_in_store>
|
26 |
+
<fields>
|
27 |
+
<enabled translate="label">
|
28 |
+
<label>Enable Feature Product Extension</label>
|
29 |
+
<frontend_type>select</frontend_type>
|
30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>1</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>1</show_in_store>
|
35 |
+
</enabled>
|
36 |
+
<title translate="label comment">
|
37 |
+
<label>Title </label>
|
38 |
+
<comment>Give Title That u want to show</comment>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>5</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</title>
|
45 |
+
<product_no translate="label comment">
|
46 |
+
<label>Set number of featured products to show on </label>
|
47 |
+
<comment>Show 8 Products by default</comment>
|
48 |
+
<frontend_type>text</frontend_type>
|
49 |
+
<sort_order>6</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
</product_no>
|
54 |
+
</fields>
|
55 |
+
</all_settings>
|
56 |
+
</groups>
|
57 |
+
</isfeatured>
|
58 |
+
</sections>
|
59 |
+
</config>
|
app/code/local/Daffodil/Isfeatured/etc/system.xml~
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<isfeatured translate="label" module="isfeatured">
|
5 |
+
<label>stock counter</label>
|
6 |
+
<sort_order>700</sort_order>
|
7 |
+
</isfeatured>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<isfeatured translate="label" module="isfeatured">
|
11 |
+
|
12 |
+
<tab>isfeatured</tab>
|
13 |
+
<label>stock message settings</label>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>1000</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
<groups>
|
20 |
+
|
21 |
+
|
22 |
+
<all_settings translate="label">
|
23 |
+
<label>stock message settings</label>
|
24 |
+
<frontend_type>text</frontend_type>
|
25 |
+
<sort_order>10</sort_order>
|
26 |
+
<show_in_default>1</show_in_default>
|
27 |
+
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>0</show_in_store>
|
29 |
+
<fields>
|
30 |
+
<!-- <featured_items translate="label comment">
|
31 |
+
<label>Set number of featured products to show on </label>
|
32 |
+
<comment>Set the limt</comment>
|
33 |
+
<frontend_type>text</frontend_type>
|
34 |
+
<sort_order>5</sort_order>
|
35 |
+
<show_in_default>1</show_in_default>
|
36 |
+
<show_in_website>1</show_in_website>
|
37 |
+
<show_in_store>1</show_in_store>
|
38 |
+
</featured_items>-->
|
39 |
+
<stock_items translate="label comment">
|
40 |
+
<label>Minimum no of product</label>
|
41 |
+
<comment>Set the limt after that product stock will show low </comment>
|
42 |
+
<frontend_type>text</frontend_type>
|
43 |
+
<sort_order>6</sort_order>
|
44 |
+
<show_in_default>1</show_in_default>
|
45 |
+
<show_in_website>1</show_in_website>
|
46 |
+
<show_in_store>1</show_in_store>
|
47 |
+
</stock_items>
|
48 |
+
<stock_msg translate="label comment">
|
49 |
+
<label>Set your message</label>
|
50 |
+
<comment>You can set your custom message for low stock </comment>
|
51 |
+
<frontend_type>text</frontend_type>
|
52 |
+
<sort_order>7</sort_order>
|
53 |
+
<show_in_default>1</show_in_default>
|
54 |
+
<show_in_website>1</show_in_website>
|
55 |
+
<show_in_store>1</show_in_store>
|
56 |
+
</stock_msg>
|
57 |
+
|
58 |
+
</fields>
|
59 |
+
</all_settings>
|
60 |
+
</groups>
|
61 |
+
</isfeatured>
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
</sections>
|
66 |
+
</config>
|
app/code/local/Daffodil/Isfeatured/sql/categoryattribute1350295220_setup/mysql4-install-0.1.0.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer = $this;
|
3 |
+
/* @var $installer Mage_Eav_Model_Entity_Setup */
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
|
7 |
+
$installer->addAttribute('catalog_product', 'is_featured', array(
|
8 |
+
'group' => 'General',
|
9 |
+
'type' => 'int',
|
10 |
+
'backend' => '',
|
11 |
+
'frontend' => '',
|
12 |
+
'label' => 'Select Featured ',
|
13 |
+
'input' => 'boolean',
|
14 |
+
'class' => '',
|
15 |
+
'source' => '',
|
16 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
17 |
+
'visible' => true,
|
18 |
+
'required' => false,
|
19 |
+
'user_defined' => true,
|
20 |
+
'default' => '0',
|
21 |
+
'searchable' => false,
|
22 |
+
'filterable' => false,
|
23 |
+
'comparable' => false,
|
24 |
+
'visible_on_front' => false,
|
25 |
+
'unique' => false,
|
26 |
+
'apply_to' => 'simple,configurable,virtual,bundle,downloadable',
|
27 |
+
'is_configurable' => false
|
28 |
+
));
|
29 |
+
|
30 |
+
$installer->endSetup();
|
31 |
+
|
app/code/local/Daffodil/Isfeatured/sql/categoryattribute1350295220_setup/mysql4-install-0.1.0.php~
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer = $this;
|
3 |
+
/* @var $installer Mage_Eav_Model_Entity_Setup */
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
|
7 |
+
$installer->addAttribute('catalog_product', 'is_featured', array(
|
8 |
+
'group' => 'General',
|
9 |
+
'type' => 'int',
|
10 |
+
'backend' => '',
|
11 |
+
'frontend' => '',
|
12 |
+
'label' => 'Select Featured ',
|
13 |
+
'input' => 'boolean',
|
14 |
+
'class' => '',
|
15 |
+
'source' => '',
|
16 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
17 |
+
'visible' => true,
|
18 |
+
'required' => false,
|
19 |
+
'user_defined' => true,
|
20 |
+
'default' => '0',
|
21 |
+
'searchable' => false,
|
22 |
+
'filterable' => false,
|
23 |
+
'comparable' => false,
|
24 |
+
'visible_on_front' => false,
|
25 |
+
'unique' => false,
|
26 |
+
'apply_to' => 'simple,configurable,virtual,bundle,downloadable',
|
27 |
+
'is_configurable' => false
|
28 |
+
));
|
29 |
+
|
30 |
+
$installer->endSetup();
|
31 |
+
|
app/design/frontend/default/default/layout/isfeatured.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss"><stylesheet>css/isfeatured.css</stylesheet></action>
|
6 |
+
|
7 |
+
</reference>
|
8 |
+
</default>
|
9 |
+
</layout>
|
app/design/frontend/default/default/template/isfeatured/featureblock.phtml
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Featured product Extension Developed by Daffodil S/w Ltd.
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<?php $collection = Mage::getModel('catalog/product');
|
7 |
+
$products = $collection->getCollection()
|
8 |
+
->addAttributeToSelect('*')
|
9 |
+
->addAttributeToFilter('is_featured',1)
|
10 |
+
->load();
|
11 |
+
$prodIds = $products->getAllIds();
|
12 |
+
$ftotalproduct=count($prodIds);?>
|
13 |
+
|
14 |
+
<?php $enable=Mage::getStoreConfig('isfeatured/all_settings/enabled');
|
15 |
+
$title= Mage::getStoreConfig('isfeatured/all_settings/title');
|
16 |
+
$limit=Mage::getStoreConfig('isfeatured/all_settings/product_no');
|
17 |
+
?>
|
18 |
+
<?php if($enable): ?>
|
19 |
+
<div class="featured">
|
20 |
+
<div class="fhead">
|
21 |
+
<strong> <span><?php echo $this->__($title);?></span></strong>
|
22 |
+
</div>
|
23 |
+
<?php if($ftotalproduct):?>
|
24 |
+
<span class="feature-left"> <a class="prev browse left"><img class="larrow" alt="left" src="<?php echo $this->getSkinUrl('images/featured/left.png') ?>"/></a> </span>
|
25 |
+
<div class="scrollable" id="scrollable">
|
26 |
+
<div class="items">
|
27 |
+
<?php $i=1;?>
|
28 |
+
<?php $j=1;
|
29 |
+
$k=1;?>
|
30 |
+
<div class="box1">
|
31 |
+
<?php $count=1; ?>
|
32 |
+
<?php foreach($prodIds as $productId) :?>
|
33 |
+
<?php if($count<=$limit):?>
|
34 |
+
<?php $k++; ?>
|
35 |
+
<?php $_product = Mage::getModel('catalog/product')->load($productId);?>
|
36 |
+
<div class="productdiv">
|
37 |
+
|
38 |
+
<a href="<?php echo $this->getUrl($_product->getUrlPath())?>" >
|
39 |
+
<span>
|
40 |
+
<img src="<? echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(170) ?>" width="170" height="170" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
|
41 |
+
</span></a>
|
42 |
+
<span class="productname">
|
43 |
+
<a href="<?php echo $this->getUrl($_product->getUrlPath())?>" > <?php echo $_product->getName(); ?></a>
|
44 |
+
</span>
|
45 |
+
|
46 |
+
<span class="price-con"><?php echo Mage_Catalog_Block_Product::getPriceHtml($_product, true) ?></span>
|
47 |
+
|
48 |
+
<span class="fadd">
|
49 |
+
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation(' <?php echo $this->helper('checkout/cart')->getAddUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
50 |
+
</span>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
<?php if($i%3==0 && $k<=$ftotalproduct):
|
54 |
+
$j++;?>
|
55 |
+
</div>
|
56 |
+
<div class="box<?php $j; ?>"><?php endif;$i++;?>
|
57 |
+
|
58 |
+
<?php endif; ?>
|
59 |
+
<?php $count++?>
|
60 |
+
<?php endforeach; ?>
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
<span class="feature-right"><a class="next browse right"><img class="rarrow" alt="right" src="<?php echo $this->getSkinUrl('images/featured/right.png') ?>"/> </a></span>
|
69 |
+
<?php else:?>
|
70 |
+
<div class="show-msg">
|
71 |
+
<?php echo $this->__("There are no feature products.");?>
|
72 |
+
</div>
|
73 |
+
<?php endif;?>
|
74 |
+
</div>
|
75 |
+
<?php endif;?>
|
76 |
+
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
|
77 |
+
<script type="text/javascript">
|
78 |
+
jQuery.noConflict();
|
79 |
+
jQuery(function($) {
|
80 |
+
// initialize scrollable
|
81 |
+
$(".scrollable").scrollable();
|
82 |
+
});
|
83 |
+
</script>
|
app/design/frontend/default/default/template/isfeatured/featureblock.phtml~
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Featured product Extension Developed by Daffodil S/w Ltd.
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
<?php $collection = Mage::getModel('catalog/product');
|
7 |
+
$products = $collection->getCollection()
|
8 |
+
->addAttributeToSelect('*')
|
9 |
+
->addAttributeToFilter('is_featured',1)
|
10 |
+
->load();
|
11 |
+
$prodIds = $products->getAllIds();
|
12 |
+
$ftotalproduct=count($prodIds);?>
|
13 |
+
|
14 |
+
<?php $enable=Mage::getStoreConfig('isfeatured/all_settings/enabled');
|
15 |
+
$title= Mage::getStoreConfig('isfeatured/all_settings/title');
|
16 |
+
$limit=Mage::getStoreConfig('isfeatured/all_settings/product_no');
|
17 |
+
?>
|
18 |
+
<?php if($enable): ?>
|
19 |
+
<div class="featured">
|
20 |
+
<div class="fhead">
|
21 |
+
<strong> <span><?php echo $this->__($title);?></span></strong>
|
22 |
+
</div>
|
23 |
+
<span class="feature-left"> <a class="prev browse left"><img class="larrow" alt="left" src="<?php echo $this->getSkinUrl('images/featured/left.png') ?>"/></a> </span>
|
24 |
+
<div class="scrollable" id="scrollable">
|
25 |
+
<div class="items">
|
26 |
+
<?php $i=1;?>
|
27 |
+
<?php $j=1;
|
28 |
+
$k=1;?>
|
29 |
+
<div class="box1">
|
30 |
+
<?php $count=1; ?>
|
31 |
+
<?php foreach($prodIds as $productId) :?>
|
32 |
+
<?php if($count<=$limit):?>
|
33 |
+
<?php $k++; ?>
|
34 |
+
<?php $_product = Mage::getModel('catalog/product')->load($productId);?>
|
35 |
+
<div class="productdiv">
|
36 |
+
|
37 |
+
<a href="<?php echo $this->getUrl($_product->getUrlPath())?>" >
|
38 |
+
<span>
|
39 |
+
<img src="<? echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(170) ?>" width="170" height="170" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
|
40 |
+
</span></a>
|
41 |
+
<span class="productname">
|
42 |
+
<a href="<?php echo $this->getUrl($_product->getUrlPath())?>" > <?php echo $_product->getName(); ?></a>
|
43 |
+
</span>
|
44 |
+
|
45 |
+
<span class="price-con"><?php echo Mage_Catalog_Block_Product::getPriceHtml($_product, true) ?></span>
|
46 |
+
|
47 |
+
<span class="fadd">
|
48 |
+
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation(' <?php echo $this->helper('checkout/cart')->getAddUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
49 |
+
</span>
|
50 |
+
|
51 |
+
</div>
|
52 |
+
<?php if($i%3==0 && $k<=$ftotalproduct):
|
53 |
+
$j++;?>
|
54 |
+
</div>
|
55 |
+
<div class="box<?php $j; ?>"><?php endif;$i++;?>
|
56 |
+
|
57 |
+
<?php endif; ?>
|
58 |
+
<?php $count++?>
|
59 |
+
<?php endforeach; ?>
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<span class="feature-right"><a class="next browse right"><img class="rarrow" alt="right" src="<?php echo $this->getSkinUrl('images/featured/right.png') ?>"/> </a></span>
|
68 |
+
</div>
|
69 |
+
<?php endif;?>
|
70 |
+
<?php if($count<=limit && ($count%3)===0):
|
71 |
+
echo "<script>document.getElementById('div".$j."').style.display='none';</script>";
|
72 |
+
echo $count."".$limit;
|
73 |
+
endif;
|
74 |
+
?>
|
75 |
+
<?php if($count>limit && ($limit%3)===0){echo "<script>document.getElementById('div".$j."').style.display='none';</script>";echo $count."".$limit;}?>
|
76 |
+
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
|
77 |
+
<script type="text/javascript">
|
78 |
+
jQuery.noConflict();
|
79 |
+
jQuery(function($) {
|
80 |
+
// initialize scrollable
|
81 |
+
$(".scrollable").scrollable();
|
82 |
+
});
|
83 |
+
</script>
|
app/design/frontend/default/default/template/isfeatured/isfeatured..phtml~
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div><p>hi from template</p></div>
|
2 |
+
|
3 |
+
<?php
|
4 |
+
|
5 |
+
echo "mmmmmmmmmmmmmmmmmmmmmmmmmmm";
|
6 |
+
die('pppppppppppp');
|
7 |
+
|
8 |
+
|
9 |
+
$_product = Mage::registry('current_product');
|
10 |
+
// print_r($product);
|
11 |
+
|
12 |
+
|
13 |
+
// print_r($products);
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
$__manStock = $_product->getStockItem()->getManageStock();
|
18 |
+
$__invAmt = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
|
19 |
+
|
20 |
+
|
21 |
+
if ($__manStock > 0)
|
22 |
+
{
|
23 |
+
echo $this->__("Only $__invAmt Available in Stock");
|
24 |
+
}
|
25 |
+
|
26 |
+
// echo $this->isVisible();
|
27 |
+
|
28 |
+
|
29 |
+
?>
|
30 |
+
|
app/design/frontend/default/default/template/isfeatured/isfeatured.phtml~
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div><p>hi from template</p></div>
|
2 |
+
|
3 |
+
<?php
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
$_product = Mage::registry('current_product');
|
8 |
+
$attributes = $_product->getAttributes();
|
9 |
+
echo $_product->getData('is_featred');
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
// print_r($products);
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
$__manStock = $_product->getStockItem()->getManageStock();
|
18 |
+
$__invAmt = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
|
19 |
+
|
20 |
+
|
21 |
+
if ($__manStock > 0)
|
22 |
+
{
|
23 |
+
echo $this->__("Only $__invAmt Available in Stock");
|
24 |
+
}
|
25 |
+
|
26 |
+
// echo $this->isVisible();
|
27 |
+
|
28 |
+
|
29 |
+
?>
|
30 |
+
|
app/etc/modules/Daffodil_Isfeatured.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Daffodil_Isfeatured>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
<version>0.1.0</version>
|
8 |
+
</Daffodil_Isfeatured>
|
9 |
+
</modules>
|
10 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Daffodil_Isfeatured</name>
|
4 |
+
<version>1.0.0.1</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Manage Featured Products with scroller.</summary>
|
10 |
+
<description><h1>Featured Products<h1>
|
11 |
+
This extension provides ability to show featured products with scroller.
|
12 |
+
<ul>
|
13 |
+
<li><strong>Featured Products Frontent</strong> where you can see the list of all featured products scroller.</li>
|
14 |
+
<li><strong>Featured Products Block</strong> This extension give user ability to put featured product scroller block in cms pages Example: put it in Home page content <strong>{{block type="core/template" template="isfeatured/featureblock.phtml"}} </strong></li>
|
15 |
+
<li>Backend:Easy managment for feature product setting (Eg.Module enable disable,Title managment,Number of product in scroller managment.)</li>
|
16 |
+
</ul> </description>
|
17 |
+
<notes>First release.</notes>
|
18 |
+
<authors><author><name>Daffodil Software</name><user>daffodilsw</user><email>ashish.mittal@daffodilsw.com</email></author></authors>
|
19 |
+
<date>2012-12-31</date>
|
20 |
+
<time>09:13:36</time>
|
21 |
+
<contents><target name="magelocal"><dir name="Daffodil"><dir name="Isfeatured"><dir name="Block"><file name="Isfeatured.php" hash="6a6291946dc393077bcc653da85cb7fc"/><file name="Isfeatured.php~" hash="0299aaf2ad93270ccad9630d74595ff5"/></dir><dir name="Helper"><file name="Data.php" hash="befc784cc8edcef2ed31c67792d5d352"/></dir><dir name="controllers"><file name="IndexController.php" hash="21b248bef42005da722533f56f9229da"/><file name="IndexController.php~" hash="a4050b59f980792884a310a67b93d8d8"/><file name="IsfeaturedController.php~" hash="853add497a1a7e27bc66341650acc82f"/></dir><dir name="etc"><file name="config.xml" hash="459fb2f43027bcb9e891ff9040ef0c36"/><file name="config.xml~" hash="e3d8017907bb220164441016ddad4ac6"/><file name="system.xml" hash="409266d52c8fd3d5aefc3bdcd6468d45"/><file name="system.xml~" hash="215e98c3f725ecee8339a66468b245c0"/></dir><dir name="sql"><dir name="categoryattribute1350295220_setup"><file name="mysql4-install-0.1.0.php" hash="d27cfd777cddf0a345a5fb479aa92b58"/><file name="mysql4-install-0.1.0.php~" hash="d27cfd777cddf0a345a5fb479aa92b58"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Daffodil_Isfeatured.xml" hash="4e219ed1cd4a6eb9ef98a40631e09bd0"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="isfeatured.xml" hash="0d7b42319c043e553ab8f1375a76dd2b"/></dir><dir name="template"><dir name="isfeatured"><file name="featureblock.phtml" hash="331e714e7ff795b818870ea24fbfe55c"/><file name="featureblock.phtml~" hash="f1dd31aec8fc09c44f430d95f848a973"/><file name="isfeatured..phtml~" hash="8745d484c4bde08511451c96dee6eda1"/><file name="isfeatured.phtml~" hash="05672361173714095b05d805c4a4f7d6"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="isfeatured.css" hash="5787a7e8f3e52d48c2be6dc726553438"/></dir><dir name="images"><dir name="featured"><file name="left.png" hash="b7070114145a353262ecfc8d4e87f198"/><file name="right.png" hash="3bdd34ce4d6c4454e86678fcd39ec107"/></dir></dir></dir></dir></dir></target></contents>
|
22 |
+
<compatible/>
|
23 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
+
</package>
|
skin/frontend/default/default/css/isfeatured.css
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.featured{
|
2 |
+
border: 3px solid #CCCCCC;
|
3 |
+
border-radius: 10px 10px 10px 10px;
|
4 |
+
min-height: 314px;
|
5 |
+
width: 605px
|
6 |
+
|
7 |
+
|
8 |
+
}
|
9 |
+
|
10 |
+
/*
|
11 |
+
root element for the scrollable. when scrolling occurs this
|
12 |
+
element stays still.
|
13 |
+
*/
|
14 |
+
.scrollable {
|
15 |
+
/* required settings */
|
16 |
+
position:relative;
|
17 |
+
overflow:hidden;
|
18 |
+
width: 538px;
|
19 |
+
height:299px;
|
20 |
+
float:left;
|
21 |
+
}
|
22 |
+
|
23 |
+
/*
|
24 |
+
root element for scrollable items. Must be absolutely positioned
|
25 |
+
and it should have a extremely large width to accommodate scrollable
|
26 |
+
items. it's enough that you set width and height for the root element
|
27 |
+
and not for this element.
|
28 |
+
*/
|
29 |
+
.scrollable .items {
|
30 |
+
/* this cannot be too large */
|
31 |
+
width:20000em;
|
32 |
+
position:absolute;
|
33 |
+
}
|
34 |
+
|
35 |
+
/*
|
36 |
+
a single item. must be floated in horizontal scrolling. typically,
|
37 |
+
this element is the one that *you* will style the most.
|
38 |
+
*/
|
39 |
+
.items div {
|
40 |
+
float:left;
|
41 |
+
}
|
42 |
+
.productdiv{
|
43 |
+
width: 180px;
|
44 |
+
padding: 7px 0 0 3px;
|
45 |
+
text-align: center;
|
46 |
+
}
|
47 |
+
.productname{
|
48 |
+
|
49 |
+
color: #203548;
|
50 |
+
font-size: 13px;
|
51 |
+
font-weight: bold;
|
52 |
+
margin: 0 0 5px;
|
53 |
+
|
54 |
+
|
55 |
+
}
|
56 |
+
.productname a{
|
57 |
+
color: #646262;
|
58 |
+
font-family: Arial,Helvetica,sans-serif;
|
59 |
+
text-align: center;
|
60 |
+
|
61 |
+
}
|
62 |
+
.price-con .price-box{
|
63 |
+
|
64 |
+
margin: 0 0 5px;
|
65 |
+
width:100%;
|
66 |
+
}
|
67 |
+
.fadd{
|
68 |
+
float:left;
|
69 |
+
margin: 0 0 5px;
|
70 |
+
width:100%;
|
71 |
+
}
|
72 |
+
.price-con .old-price{
|
73 |
+
margin:0 !important;
|
74 |
+
|
75 |
+
}
|
76 |
+
.price-con .special-price{
|
77 |
+
margin:0 !important;
|
78 |
+
|
79 |
+
}
|
80 |
+
.larrow{
|
81 |
+
|
82 |
+
padding:100px 0 0 3px;
|
83 |
+
width:30px;
|
84 |
+
cursor: pointer;
|
85 |
+
|
86 |
+
}
|
87 |
+
.rarrow{
|
88 |
+
width:30px;
|
89 |
+
padding: 112px 0 0;
|
90 |
+
position: relative;
|
91 |
+
cursor: pointer;
|
92 |
+
}
|
93 |
+
.ftitle{
|
94 |
+
margin: 0 0 9px;
|
95 |
+
padding: 0 0 0 28px;
|
96 |
+
}
|
97 |
+
.fhead{
|
98 |
+
background: none repeat scroll 0 0 #CCCCCC;
|
99 |
+
min-height: 27px;
|
100 |
+
padding: 5px 0 0 31px;
|
101 |
+
|
102 |
+
}
|
103 |
+
.fhead strong{
|
104 |
+
color: #203548;
|
105 |
+
display: block;
|
106 |
+
font: bold 12px/16px Arial,Helvetica,sans-serif;
|
107 |
+
min-height: 16px;
|
108 |
+
padding: 1px 0;
|
109 |
+
text-transform: uppercase;
|
110 |
+
|
111 |
+
}
|
112 |
+
.show-msg{
|
113 |
+
font-size: 20px;
|
114 |
+
margin: 100px 0 0 -34px;
|
115 |
+
text-align: center;
|
116 |
+
}
|
skin/frontend/default/default/images/featured/left.png
ADDED
Binary file
|
skin/frontend/default/default/images/featured/right.png
ADDED
Binary file
|