Ordered_By_Costomer - Version 0.1.2

Version Notes

Slider added to the list of customers.

Download this release

Release Info

Developer Arvind Bhardwaj
Extension Ordered_By_Costomer
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/local/Arvobc/Obc/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Arvobc_Obc>
5
- <version>0.1.1</version>
6
  </Arvobc_Obc>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Arvobc_Obc>
5
+ <version>0.1.2</version>
6
  </Arvobc_Obc>
7
  </modules>
8
  <frontend>
app/design/adminhtml/default/default/layout/obc.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="0.1.1">
3
  <obc_adminhtml_obc_index>
4
  <reference name="content">
5
  <block type="obc/adminhtml_obc" name="obc" />
1
  <?xml version="1.0"?>
2
+ <layout version="0.1.2">
3
  <obc_adminhtml_obc_index>
4
  <reference name="content">
5
  <block type="obc/adminhtml_obc" name="obc" />
app/design/frontend/default/default/layout/obc.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="0.1.1">
3
  <default>
4
  <reference name="head">
5
  <block type="core/text" name="google.cdn.jquery">
1
  <?xml version="1.0"?>
2
+ <layout version="0.1.2">
3
  <default>
4
  <reference name="head">
5
  <block type="core/text" name="google.cdn.jquery">
app/design/frontend/default/default/template/obc/obc.phtml CHANGED
@@ -18,30 +18,50 @@ $orderIds = $this->getOrderIds();
18
  <?php if($orderCollection->count()): ?>
19
  <ol id="obc_box" class="mini-products-list">
20
  <?php foreach ($orderCollection as $order): ?>
21
- <?php $customer = Mage::getModel('customer/customer')->load($order->getCustomerId()); ?>
22
- <p class="empty product-name">
23
- <?php echo $customer->getFirstname(). ' ' .$customer->getLastname() ?>
24
- <?php if ($config['obc_showaddress']): ?>
25
- <?php $address = $order->getShippingAddress()->getData() ?>
26
- <?php echo ', ' . $address['city'] ?>
27
- <?php endif; ?>
28
- <?php if ($config['obc_showdate']): ?>
29
- <?php $date = $order->getCreatedAt() ?>
30
- <?php $interval = $this->format_interval($date) ?>
31
- <p class="empty right">
32
- <?php echo $interval ?>
33
- </p>
34
- <?php endif; ?>
35
- </p>
 
 
36
  <?php endforeach; ?>
37
  </ol>
38
  <script type="text/javascript">decorateList('obc_box', 'none-recursive')</script>
39
- <?php else: ?>
40
- <p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
41
  <?php endif ?>
42
  </div>
43
  </div>
44
  <?php endif;?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <?php
46
  }
47
  ?>
18
  <?php if($orderCollection->count()): ?>
19
  <ol id="obc_box" class="mini-products-list">
20
  <?php foreach ($orderCollection as $order): ?>
21
+ <li>
22
+ <?php $customer = Mage::getModel('customer/customer')->load($order->getCustomerId()); ?>
23
+ <p class="empty product-name">
24
+ <?php echo $customer->getFirstname(). ' ' .$customer->getLastname() ?>
25
+ <?php if ($config['obc_showaddress']): ?>
26
+ <?php $address = $order->getShippingAddress()->getData() ?>
27
+ <?php echo ', ' . $address['city'] ?>
28
+ <?php endif; ?>
29
+ <?php if ($config['obc_showdate']): ?>
30
+ <?php $date = $order->getCreatedAt() ?>
31
+ <?php $interval = $this->format_interval($date) ?>
32
+ <p class="empty right">
33
+ <?php echo $interval ?>
34
+ </p>
35
+ <?php endif; ?>
36
+ </p>
37
+ </li>
38
  <?php endforeach; ?>
39
  </ol>
40
  <script type="text/javascript">decorateList('obc_box', 'none-recursive')</script>
 
 
41
  <?php endif ?>
42
  </div>
43
  </div>
44
  <?php endif;?>
45
+ <script language="javascript">
46
+ var obc_cnt = '<?php echo $orderIds['totalRecords'] ?>';
47
+ jQuery(document).ready(function () {
48
+ if (obc_cnt > 2) {
49
+ var speed = 800;
50
+ var pause = 4000;
51
+ function tick() {
52
+ first = jQuery('ol#obc_box li:first').html();
53
+ jQuery('ol#obc_box li:first').animate({
54
+ opacity: 0
55
+ }, speed).fadeOut('medium', function () {
56
+ last = '<li>' + first + '</li>';
57
+ jQuery('ol#obc_box').append(last);
58
+ jQuery(this).remove();
59
+ });
60
+ }
61
+ setInterval(tick, pause);
62
+ }
63
+ });
64
+ </script>
65
  <?php
66
  }
67
  ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ordered_By_Costomer</name>
4
- <version>0.1.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>Order By Customer extension shows the names and location of customers who ordered the product recently.</summary>
10
  <description>Order By Customer extension shows the name and location of customers who ordered the product recently. The block is displayed on the product detail page. So the customer can be assured that the product is being purchased by other customers also.</description>
11
- <notes>Layout bugs fixed</notes>
12
  <authors><author><name>Arvind Bhardwaj</name><user>Arvind07</user><email>bhardwajsonheight@gmail.com</email></author></authors>
13
- <date>2013-03-29</date>
14
- <time>06:27:39</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Arvobc_Obc.xml" hash="a4ceaea65c2cc0b9432b8ee26ff65908"/></dir></target><target name="magelocal"><dir name="Arvobc"><dir name="Obc"><dir name="Block"><file name="Obc.php" hash="7e711c15641f55712257b36fe24e5a3a"/></dir><dir name="Helper"><file name="Data.php" hash="cdcbb121d6545d14440640c40dd2e22f"/></dir><dir name="Model"><file name="Obc.php" hash="f1e05ee73f49db968044213640e7204e"/><file name="Observer.php" hash="69bfb02b24e394f9f18272d31e5d0d41"/></dir><dir name="controllers"><file name="IndexController.php" hash="bf429fe6f515f93c2c2f62e6f4266221"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bb2f3a7af1dc396210299f973ba9b7a7"/><file name="config.xml" hash="54ff46f9ade05eeca5c4e7339eb5c94f"/><file name="system.xml" hash="137300a027d3b8d65c8a52caa98d99ff"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="obc.xml" hash="bc19717f1b896e90f36669cd4f119c9b"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="obc.xml" hash="737b3496a49c21cab29793a2681b1a16"/></dir><dir name="template"><dir name="obc"><file name="obc.phtml" hash="01dcb0de61c45ac7047fe9b98d98d00f"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ordered_By_Costomer</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>Order By Customer extension shows the names and location of customers who ordered the product recently.</summary>
10
  <description>Order By Customer extension shows the name and location of customers who ordered the product recently. The block is displayed on the product detail page. So the customer can be assured that the product is being purchased by other customers also.</description>
11
+ <notes>Slider added to the list of customers.</notes>
12
  <authors><author><name>Arvind Bhardwaj</name><user>Arvind07</user><email>bhardwajsonheight@gmail.com</email></author></authors>
13
+ <date>2013-04-01</date>
14
+ <time>07:00:38</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Arvobc_Obc.xml" hash="a4ceaea65c2cc0b9432b8ee26ff65908"/></dir></target><target name="magelocal"><dir name="Arvobc"><dir name="Obc"><dir name="Block"><file name="Obc.php" hash="7e711c15641f55712257b36fe24e5a3a"/></dir><dir name="Helper"><file name="Data.php" hash="cdcbb121d6545d14440640c40dd2e22f"/></dir><dir name="Model"><file name="Obc.php" hash="f1e05ee73f49db968044213640e7204e"/><file name="Observer.php" hash="69bfb02b24e394f9f18272d31e5d0d41"/></dir><dir name="controllers"><file name="IndexController.php" hash="bf429fe6f515f93c2c2f62e6f4266221"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bb2f3a7af1dc396210299f973ba9b7a7"/><file name="config.xml" hash="9a5cb5a6d7d765f31059ddded41d1d6a"/><file name="system.xml" hash="137300a027d3b8d65c8a52caa98d99ff"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="obc.xml" hash="fadb16f015b59ab7488fdd8cc1588d15"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="obc.xml" hash="9c66d8f8f1e1c70b0b3f178b18292569"/></dir><dir name="template"><dir name="obc"><file name="obc.phtml" hash="bbaca8bfb42da0d9f16968f34688b885"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>