Aaryasolutions_Dailydeals - Version 0.1.3.1

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.1
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.3.1

app/code/{local → community}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Grid.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Block/Adminhtml/Dailydeals/Deals/Renderer/Dealsrenderer.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Block/Dealsfront.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Helper/Data.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Model/Dailydeals.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/Model/Mysql4/Dailydeals/Collection.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/controllers/Adminhtml/DailydealsController.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/controllers/IndexController.php RENAMED
File without changes
app/code/{local → community}/Aaryasolutions/Dailydeals/etc/config.xml RENAMED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
- <version>0.1.3</version>
6
  </Aaryasolutions_Dailydeals>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
+ <version>0.1.3.1</version>
6
  </Aaryasolutions_Dailydeals>
7
  </modules>
8
  <frontend>
app/code/{local → community}/Aaryasolutions/Dailydeals/sql/dailydeals_setup/mysql4-install-0.1.0.php RENAMED
File without changes
app/design/frontend/rwd/default/template/dailydeals/dealsfront.phtml ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,7 +3,7 @@
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
  <active>true</active>
6
- <codePool>local</codePool>
7
  </Aaryasolutions_Dailydeals>
8
  </modules>
9
  </config>
3
  <modules>
4
  <Aaryasolutions_Dailydeals>
5
  <active>true</active>
6
+ <codePool>community</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.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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Aaryasolutions_Dailydeals</name>
4
+ <version>0.1.3.1</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>Aaryasolutions_Dailydeals</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>07:15:23</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="config.xml" hash="106cdf3aa169ca9b89bd6e268663dae4"/></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="21ae67aa13c65b36a7f4463ed8bd4512"/></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></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>5.6.4</max></php></required></dependencies>
18
  </package>