Aaryasolutions_Dailydeals - Version 0.1.3

Version Notes

This extension helps to add daily deals from backend. We can view the deal on frontend

Download this release

Release Info

Developer AaryaSolutions
Extension Aaryasolutions_Dailydeals
Version 0.1.3
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.3

Files changed (17) hide show
  1. app/code/community/Aaryasolutions/Dailydeals/etc/adminhtml.xml +0 -27
  2. app/code/community/Aaryasolutions/Dailydeals/sql/dailydeals_setup/mysql4-upgrade-0.1.0-0.1.1.php +0 -17
  3. app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals.php +0 -0
  4. app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Grid.php +0 -0
  5. app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Renderer/Dealsrenderer.php +0 -0
  6. app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Dealsfront.php +0 -0
  7. app/code/{community → local}/Aaryasolutions/Dailydeals/Helper/Data.php +0 -0
  8. app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Dailydeals.php +0 -0
  9. app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals.php +0 -0
  10. app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals/Collection.php +0 -0
  11. app/code/{community → local}/Aaryasolutions/Dailydeals/controllers/Adminhtml/DailydealsController.php +0 -0
  12. app/code/{community → local}/Aaryasolutions/Dailydeals/controllers/IndexController.php +0 -0
  13. app/code/{community → local}/Aaryasolutions/Dailydeals/etc/config.xml +28 -24
  14. app/code/{community → local}/Aaryasolutions/Dailydeals/sql/dailydeals_setup/mysql4-install-0.1.0.php +0 -0
  15. app/design/frontend/rwd/default/template/dailydeals/dealsfront.phtml +0 -136
  16. app/etc/modules/Aaryasolutions_Dailydeals.xml +2 -3
  17. package.xml +7 -7
app/code/community/Aaryasolutions/Dailydeals/etc/adminhtml.xml DELETED
@@ -1,27 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <menu>
4
- <aaryasolutions translate="title" module="dailydeals">
5
- <title>Aaryasolutions</title>
6
- <sort_order>100</sort_order>
7
- </aaryasolutions>
8
- <aaryasolutions>
9
-
10
- <children>
11
- <dailydeals translate="title" module="dailydeals">
12
- <title>Daily Deals</title>
13
- <sort_order>120</sort_order>
14
- <action>dailydeals/adminhtml_dailydeals</action>
15
- </dailydeals>
16
- </children>
17
- </aaryasolutions>
18
- </menu>
19
-
20
- <acl>
21
- <resources>
22
- <all>
23
- <title>Allow Everything</title>
24
- </all>
25
- </resources>
26
- </acl>
27
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Aaryasolutions/Dailydeals/sql/dailydeals_setup/mysql4-upgrade-0.1.0-0.1.1.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- $installer = $this;
5
- $installer->startSetup();
6
-
7
- $installer->run("
8
- CREATE TABLE IF NOT EXISTS `dailydeals` (
9
- `dailydeals_id` int(11) NOT NULL AUTO_INCREMENT,
10
- `dailydeals_date` date NOT NULL,
11
- `dailydeals_product` int(11) NOT NULL,
12
- PRIMARY KEY (`dailydeals_id`)
13
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23;
14
- ");
15
-
16
- $installer->endSetup();
17
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Grid.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Renderer/Dealsrenderer.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Block/Dealsfront.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Helper/Data.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Dailydeals.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals/Collection.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/controllers/Adminhtml/DailydealsController.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/controllers/IndexController.php RENAMED
File without changes
app/code/{community → local}/Aaryasolutions/Dailydeals/etc/config.xml RENAMED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
- <version>0.1.1</version>
6
  </Aaryasolutions_Dailydeals>
7
  </modules>
8
  <frontend>
@@ -23,17 +23,32 @@
23
  </updates>
24
  </layout>
25
  </frontend>
26
- <admin>
27
- <routers>
28
- <adminhtml>
29
- <args>
30
- <modules>
31
- <Aaryasolutions_Dailydeals before="Mage_Adminhtml">Aaryasolutions_Dailydeals</Aaryasolutions_Dailydeals>
32
- </modules>
33
- </args>
34
- </adminhtml>
35
- </routers>
36
- </admin>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
 
39
  <global>
@@ -83,16 +98,5 @@
83
  </dailydeals_read>
84
  </resources>
85
  </global>
86
-
87
- <adminhtml>
88
- <layout>
89
- <updates>
90
- <dailydeals>
91
- <file>dailydeals/dailydeals.xml</file>
92
- </dailydeals>
93
- </updates>
94
- </layout>
95
- </adminhtml>
96
-
97
-
98
  </config>
2
  <config>
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
+ <version>0.1.3</version>
6
  </Aaryasolutions_Dailydeals>
7
  </modules>
8
  <frontend>
23
  </updates>
24
  </layout>
25
  </frontend>
26
+ <adminhtml>
27
+ <menu>
28
+ <aaryasolutions translate="title" module="dailydeals">
29
+ <title>Aaryasolutions</title>
30
+ <sort_order>100</sort_order>
31
+ </aaryasolutions>
32
+ <aaryasolutions>
33
+
34
+ <children>
35
+ <dailydeals translate="title" module="dailydeals">
36
+ <title>Daily Deals</title>
37
+ <sort_order>120</sort_order>
38
+ <action>dailydeals/adminhtml_dailydeals</action>
39
+ </dailydeals>
40
+ </children>
41
+ </aaryasolutions>
42
+ </menu>
43
+
44
+ <acl>
45
+ <resources>
46
+ <all>
47
+ <title>Allow Everything</title>
48
+ </all>
49
+ </resources>
50
+ </acl>
51
+ </adminhtml>
52
 
53
 
54
  <global>
98
  </dailydeals_read>
99
  </resources>
100
  </global>
101
+
 
 
 
 
 
 
 
 
 
 
 
102
  </config>
app/code/{community → local}/Aaryasolutions/Dailydeals/sql/dailydeals_setup/mysql4-install-0.1.0.php RENAMED
File without changes
app/design/frontend/rwd/default/template/dailydeals/dealsfront.phtml DELETED
@@ -1,136 +0,0 @@
1
- <?php
2
- $frontblock=new Aaryasolutions_Dailydeals_Block_Dealsfront();
3
- $productId=$frontblock->getToShowProductId();
4
- $product_obj=Mage::getModel('catalog/product')->load($productId);
5
- ?>
6
-
7
- <div class="col-md-6">
8
- <div class="daily_deals">
9
- <h3>Daily Deals</h3>
10
- <div class="clearfix"></div>
11
- <p><a href="<?php echo $product_obj->getProductUrl(); ?>"><?php echo $product_obj->getName(); ?></a></p>
12
- <table width="336" align="left" cellspacing="2" cellpadding="2" border="0">
13
- <tbody>
14
- <tr>
15
- <td width="80" bgcolor="#071849" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Original Price</font></td>
16
- <td width="80" bgcolor="#071849" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Discount</font></td>
17
- <td width="80" bgcolor="#071849" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Price</font></td>
18
- </tr>
19
- <tr>
20
-
21
- <?php
22
- $old=$product_obj->getPrice();
23
- $new=$product_obj->getFinalPrice();
24
-
25
- $percentage=100*(($old-$new)/$old);
26
-
27
- ?>
28
- <td width="80" bgcolor="#FFFFFF" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#071849"><del><?php echo $old; ?></del></font></td>
29
- <td width="80" bgcolor="#FFFFFF" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#071849"><?php echo ceil($percentage); ?></font></td>
30
- <td width="80" bgcolor="#FFFFFF" align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#071849"><?php echo $new; ?></font></td>
31
- </tr>
32
- </tbody>
33
- </table>
34
- <div class="clearfix"></div>
35
- <div class="daily_deals_time">
36
- <span class="daily_deals_time_left">
37
- <h5>Time Left</h5>
38
- <small id="calculate_time_left_holder"></small>
39
- </span>
40
- <h3><a href="<?php echo $product_obj->getProductUrl(); ?>">BUY NOW!</a></h3>
41
- </div>
42
- </div>
43
- </div>
44
-
45
- <script type="text/javascript">
46
- <?php
47
- $tomdate = date("F j, Y", strtotime("tomorrow"));
48
-
49
-
50
-
51
- ?>
52
- // set the date we're counting down to
53
- var target_date = new Date("<?php echo $tomdate; ?>").getTime();
54
-
55
- // variables for time units
56
- var days, hours, minutes, seconds;
57
-
58
- // get tag element
59
- var countdown = document.getElementById("calculate_time_left_holder");
60
-
61
- // update the tag with id "countdown" every 1 second
62
- setInterval(function () {
63
-
64
- // find the amount of "seconds" between now and target
65
- var current_date = new Date().getTime();
66
- var seconds_left = (target_date - current_date) / 1000;
67
-
68
- // do some time calculations
69
- days = parseInt(seconds_left / 86400);
70
- seconds_left = seconds_left % 86400;
71
-
72
- hours = parseInt(seconds_left / 3600);
73
- seconds_left = seconds_left % 3600;
74
-
75
- minutes = parseInt(seconds_left / 60);
76
- seconds = parseInt(seconds_left % 60);
77
-
78
- // format countdown string + set tag value
79
- countdown.innerHTML = days + ":" + hours + ":"
80
- + minutes + ":" + seconds;
81
-
82
- }, 1000);
83
- </script>
84
-
85
- <style type="text/css">
86
- .daily_deals {
87
- border: 4px solid #ccc;
88
- border-radius: 15px;
89
- padding: 15px;
90
- width: 70%;
91
- background: #ccc;
92
-
93
- }
94
- .daily_deals h3 {
95
- font-size: 24px;
96
- text-align: center;
97
- }
98
-
99
- .daily_deals p {
100
- font-size: 18px;
101
- margin-bottom: 15px
102
- }
103
-
104
- .daily_deals table {
105
- width: 100%
106
- }
107
-
108
- .daily_deals table td {
109
- font-size: 18px
110
- }
111
- .col-main {
112
- float: left!important;;
113
- }
114
-
115
- .daily_deals_time h5 {
116
- font-size: 18px;
117
- margin-top: 25px;
118
- color: red;
119
- }
120
- .daily_deals_time small {
121
- font-size: 18px;
122
- }
123
- .daily_deals{
124
- width: 100%!important;
125
- box-shadow: 5px 8px 8px #00cccc;
126
- }
127
-
128
- .daily_deals_time h3{
129
- border: 2px solid;
130
- width: 30%;
131
- text-align: center;
132
- margin-left: 35%;
133
- background: #000;
134
- border-radius: 7px;
135
- }
136
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Aaryasolutions_Dailydeals.xml CHANGED
@@ -3,8 +3,7 @@
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
  <active>true</active>
6
- <codePool>community</codePool>
7
  </Aaryasolutions_Dailydeals>
8
  </modules>
9
- </config>
10
-
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
  <active>true</active>
6
+ <codePool>local</codePool>
7
  </Aaryasolutions_Dailydeals>
8
  </modules>
9
+ </config>
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aaryasolutions_Dailydeals</name>
4
- <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This extension helps to add deals to product. We can add date to selected product from magento admin panel.</summary>
10
- <description>This extension helps to add deals to product. We can add date to selected product from magento admin panel. Assocated products are displayed in frontend with countdown</description>
11
- <notes>This extension helps to add deals to product. We can add date to selected product from magento admin panel. Assocated products are displayed in frontend with countdown</notes>
12
  <authors><author><name>AaryaSolutions</name><user>aaryasolutions</user><email>info@aaryasolutions.com</email></author></authors>
13
- <date>2015-01-16</date>
14
- <time>10:34:43</time>
15
- <contents><target name="magecommunity"><dir name="Aaryasolutions"><dir name="Dailydeals"><dir name="Block"><dir name="Adminhtml"><dir name="Dailydeals"><dir name="Deals"><file name="Grid.php" hash="920a8e77ae125528f88f5a0cb3fd71c8"/><dir name="Renderer"><file name="Dealsrenderer.php" hash="9a35a255c515c601cb2fdba2fdc7c46f"/></dir></dir><file name="Deals.php" hash="04f2e4920a18cfb44319faaae74705b7"/></dir></dir><file name="Dealsfront.php" hash="9f5b95aad4f1d6ba36c5fbffd245116e"/></dir><dir name="Helper"><file name="Data.php" hash="1160a96b69e1b9c1d63549813787bf44"/></dir><dir name="Model"><file name="Dailydeals.php" hash="0fd2d131607c7ce17e8b3087f5e8faa3"/><dir name="Mysql4"><dir name="Dailydeals"><file name="Collection.php" hash="ff53b1c1b2d72f49adfe3e2b9a6dc5b2"/></dir><file name="Dailydeals.php" hash="709d990aef222796a70e25994dfce52b"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DailydealsController.php" hash="6be42e0d3437e8d9cabfd7d2bd95de0c"/></dir><file name="IndexController.php" hash="1dfd79bd811bd4f888f979ab984c0d5f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a6a6a5301c2a9fbf9dbddf7004ab3986"/><file name="config.xml" hash="ce6f88f32544109c543a0efc93be24d9"/></dir><dir name="sql"><dir name="dailydeals_setup"><file name="mysql4-install-0.1.0.php" hash="fd9ea7a706e159d66b2f5c98b5c20af9"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="fd9ea7a706e159d66b2f5c98b5c20af9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="dailydeals"><file name="grid.phtml" hash="00d2e0fa2430d30234bfd6e53358ac40"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="rwd"><dir name="default"><dir name="layout"><file name="dailydeals.xml" hash="e4dd2ec2307a36ce334c9883b4160020"/></dir><dir name="template"><dir name="dailydeals"><file name="dealsfront.phtml" hash="1d7b6000ed7d5639104eb6b2f2e8561a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aaryasolutions_Dailydeals.xml" hash="78b3cc278de5c6b3eb097f3b4b16f4ec"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>5.6.4</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.8.0</min><max>1.9.0.1</max></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aaryasolutions_Dailydeals</name>
4
+ <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This extension helps to add daily deals from backend. We can view the deal on frontend</summary>
10
+ <description>This extension helps to add daily deals from backend. We can view the deal on frontend</description>
11
+ <notes>This extension helps to add daily deals from backend. We can view the deal on frontend</notes>
12
  <authors><author><name>AaryaSolutions</name><user>aaryasolutions</user><email>info@aaryasolutions.com</email></author></authors>
13
+ <date>2015-01-18</date>
14
+ <time>05:08:41</time>
15
+ <contents><target name="magelocal"><dir name="Aaryasolutions"><dir name="Dailydeals"><dir name="Block"><dir name="Adminhtml"><dir name="Dailydeals"><dir name="Deals"><file name="Grid.php" hash="920a8e77ae125528f88f5a0cb3fd71c8"/><dir name="Renderer"><file name="Dealsrenderer.php" hash="9a35a255c515c601cb2fdba2fdc7c46f"/></dir></dir><file name="Deals.php" hash="04f2e4920a18cfb44319faaae74705b7"/></dir></dir><file name="Dealsfront.php" hash="9f5b95aad4f1d6ba36c5fbffd245116e"/></dir><dir name="Helper"><file name="Data.php" hash="1160a96b69e1b9c1d63549813787bf44"/></dir><dir name="Model"><file name="Dailydeals.php" hash="0fd2d131607c7ce17e8b3087f5e8faa3"/><dir name="Mysql4"><dir name="Dailydeals"><file name="Collection.php" hash="ff53b1c1b2d72f49adfe3e2b9a6dc5b2"/></dir><file name="Dailydeals.php" hash="709d990aef222796a70e25994dfce52b"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DailydealsController.php" hash="6be42e0d3437e8d9cabfd7d2bd95de0c"/></dir><file name="IndexController.php" hash="1dfd79bd811bd4f888f979ab984c0d5f"/></dir><dir name="etc"><file name="config.xml" hash="17c7becac3bf53ad255e2af7d55aee93"/></dir><dir name="sql"><dir name="dailydeals_setup"><file name="mysql4-install-0.1.0.php" hash="fd9ea7a706e159d66b2f5c98b5c20af9"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Aaryasolutions_Dailydeals.xml" hash="8c48a4a28826778dba4729063700781c"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="dailydeals"><file name="grid.phtml" hash="00d2e0fa2430d30234bfd6e53358ac40"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="rwd"><dir name="default"><dir name="layout"><file name="dailydeals.xml" hash="e4dd2ec2307a36ce334c9883b4160020"/></dir><dir name="template"><dir name="dailydeals"><file name="dealsfront.phtml" hash=""/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>5.6.4</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.8.0</min><max>1.9.0.1</max></package></required></dependencies>
18
  </package>