SiteClue_BackStockDate - Version 1.0.0

Version Notes

Do you want to get back the customers who left your shopping cart due to out of stock products?
Show Back in stock date to your customers in product details page

Download this release

Release Info

Developer Site Clue
Extension SiteClue_BackStockDate
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/SiteClue/Bsd/Block/Bsd.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SiteClue
4
+ * @category SiteClue
5
+ * @package SiteClue_BackInStockDate
6
+ * @copyright Copyright (c) 2014-2015 SiteClue. (http://www.siteclue.com)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+ class SiteClue_Bsd_Block_Bsd extends Mage_Core_Block_Template
10
+ {
11
+
12
+ }
app/code/community/SiteClue/Bsd/etc/config.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <SiteClue_Bsd>
5
+ <version>1.0.0</version>
6
+ </SiteClue_Bsd>
7
+ </modules>
8
+ <frontend>
9
+ <layout>
10
+ <updates>
11
+ <bsd>
12
+ <file>bsd.xml</file>
13
+ </bsd>
14
+ </updates>
15
+ </layout>
16
+ </frontend>
17
+ <global>
18
+ <resources>
19
+ <siteclue_bsd_setup>
20
+ <setup>
21
+ <module>SiteClue_Bsd</module>
22
+ </setup>
23
+ <connection>
24
+ <use>core_setup</use>
25
+ </connection>
26
+ </siteclue_bsd_setup>
27
+ <bsd_write>
28
+ <connection>
29
+ <use>core_write</use>
30
+ </connection>
31
+ </bsd_write>
32
+ <bsd_read>
33
+ <connection>
34
+ <use>core_read</use>
35
+ </connection>
36
+ </bsd_read>
37
+ </resources>
38
+ <blocks>
39
+ <bsd>
40
+ <class>SiteClue_Bsd_Block</class>
41
+ </bsd>
42
+ </blocks>
43
+ </global>
44
+ </config>
app/code/community/SiteClue/Bsd/sql/siteclue_bsd_setup/mysql4-install-0.1.0.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SiteClue
4
+ * @category SiteClue
5
+ * @package SiteClue_BackInStockDate
6
+ * @copyright Copyright (c) 2014-2015 SiteClue. (http://www.siteclue.com)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+
10
+ $installer = $this;
11
+ $installer->startSetup();
12
+ $installer->endSetup();
app/code/community/SiteClue/Bsd/sql/siteclue_bsd_setup/mysql4-upgrade-0.1.0-1.0.0.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SiteClue
4
+ * @category SiteClue
5
+ * @package SiteClue_BackInStockDate
6
+ * @copyright Copyright (c) 2014-2015 SiteClue. (http://www.siteclue.com)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+
10
+
11
+ $installer = $this;
12
+
13
+ $installer->startSetup();
14
+
15
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
16
+
17
+ $setup->addAttribute('catalog_product', 'back_stock_date', array(
18
+ 'type' => 'datetime',
19
+ 'backend' => 'eav/entity_attribute_backend_datetime',
20
+ 'source' => '',
21
+ 'label' => 'Back In Stock',
22
+ 'group' => 'General',
23
+ 'input' => 'date',
24
+ 'scope' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
25
+ 'visible' => true,
26
+ 'required' => false,
27
+ 'user_defined' => true,
28
+ 'visible_on_front' => true,
29
+ 'used_in_product_listing' => true,
30
+ 'sort_order' => 15
31
+ ));
32
+
33
+ $installer->endSetup();
app/design/frontend/default/default/layout/bsd.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ </default>
5
+ <PRODUCT_TYPE_simple>
6
+ <reference name="product.info.simple.extra">
7
+ <block type="catalog/product_view" name="bsd" template="bsd/bsd.phtml" />
8
+ </reference>
9
+ </PRODUCT_TYPE_simple>
10
+ </layout>
app/design/frontend/default/default/template/bsd/bsd.phtml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * SiteClue
4
+ * @category SiteClue
5
+ * @package SiteClue_BackInStockDate
6
+ * @copyright Copyright (c) 2014-2015 SiteClue. (http://www.siteclue.com)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+
10
+ $_product = $this->getProduct();
11
+
12
+ ?>
13
+ <?php if (($_product->getBackStockDate() != NULL) && (!$_product->isAvailable())) { echo '<p class="availability out-of-stock">Expected In Stock On: <span>' . date("M-d-Y", strtotime($_product->getBackStockDate())).'</span></p>';} ?>
app/etc/modules/SiteClue_Bsd.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <SiteClue_Bsd>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </SiteClue_Bsd>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>SiteClue_BackStockDate</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/academic.php">Academic Free License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Back in stock date show the date when your &#x201C;Out of Stock&#x201D; product is back to &#x201C;In Stock&#x201D; in product page.</summary>
10
+ <description>Do you want to get back the customers who left your shopping cart due to out of stock products? &#xD;
11
+ Show Back in stock date to your customers in product details page</description>
12
+ <notes>Do you want to get back the customers who left your shopping cart due to out of stock products? &#xD;
13
+ Show Back in stock date to your customers in product details page</notes>
14
+ <authors><author><name>Site Clue</name><user>SiteClue</user><email>siteclue@gmail.com</email></author></authors>
15
+ <date>2014-09-03</date>
16
+ <time>08:23:26</time>
17
+ <contents><target name="magecommunity"><dir name="SiteClue"><dir name="Bsd"><dir name="Block"><file name="Bsd.php" hash="e3526c20e4c7dca1264caacf72285e61"/></dir><dir name="etc"><file name="config.xml" hash="4382f99ff4bc9b738db60f03eb883262"/></dir><dir name="sql"><dir name="siteclue_bsd_setup"><file name="mysql4-install-0.1.0.php" hash="f9f92062f0c4deef0ae2804ff7ff7632"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="3e336bb5b01ba2289be9dc6baa0696dc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="bsd.xml" hash="23c0a33bf593f4657f058c19cccf7ce2"/></dir><dir name="template"><dir name="bsd"><file name="bsd.phtml" hash="3297a4ea1d922a03cc751f02c8014031"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SiteClue_Bsd.xml" hash="c0bac5fa2f3a5d3c1e4789bdf1e5460a"/></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
+ </package>