Version Notes
Initial launch 1.0.1, stable
Download this release
Release Info
Developer | shopry |
Extension | Stamped_Reviews |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Stamped/Core/Model/Resource/Mysql4/{setup.php → Setup.php}
RENAMED
File without changes
|
app/code/community/Stamped/Core/Model/Richsnippet.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class stamped_core_Model_Richsnippet extends Mage_Core_Model_Abstract
|
4 |
+
{
|
5 |
+
protected function _construct()
|
6 |
+
{
|
7 |
+
$this->_init('stamped/richsnippet');
|
8 |
+
}
|
9 |
+
|
10 |
+
public function isValid()
|
11 |
+
{
|
12 |
+
$expirationTime = strtotime($this->getExpirationTime());
|
13 |
+
return ($expirationTime > time());
|
14 |
+
}
|
15 |
+
|
16 |
+
public function getSnippetByProductIdAndStoreId($product_id, $store_id)
|
17 |
+
{
|
18 |
+
$col = $this->getCollection()->addFieldToFilter('store_id', $store_id);
|
19 |
+
if ($col->getSize() == 0) {
|
20 |
+
return null;
|
21 |
+
}
|
22 |
+
$snippet = $col->getItemByColumnValue('product_id', $product_id);
|
23 |
+
return $snippet;
|
24 |
+
}
|
25 |
+
}
|
app/code/community/Stamped/Core/sql/stamped_setup/mysql4-install-1.0.0.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$installer = $this;
|
3 |
+
$installer->startSetup();
|
4 |
+
$installer->run("
|
5 |
+
DROP TABLE IF EXISTS `stamped_rich_snippets`;
|
6 |
+
CREATE TABLE `stamped_rich_snippets` (
|
7 |
+
`rich_snippet_id` int(11) NOT NULL auto_increment,
|
8 |
+
`product_id` int(11) NOT NULL,
|
9 |
+
`store_id` int(11) NOT NULL,
|
10 |
+
`average_score` int(11) NOT NULL,
|
11 |
+
`reviews_count` int(11) NOT NULL,
|
12 |
+
`expiration_time` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
13 |
+
PRIMARY KEY (`rich_snippet_id`)
|
14 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
15 |
+
CREATE UNIQUE INDEX stamped_rich_snippets_product_id_store_id_i ON `stamped_rich_snippets` (`product_id`, `store_id`);
|
16 |
+
");
|
17 |
+
|
18 |
+
$installer->endSetup();
|
19 |
+
?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Stamped_Reviews</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.stamped.io/">custom</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |

|
12 |
Customers writes their review directly in the email
|
13 |
The emails which will be sent to your customers includes a review form, allowing your customers to leave their reviews directly in the email without having to go to a external website, hence, making it convenient for your customers. This convenience increases the chance of getting more reviews. Our users has experienced 300% more conversions in reviews received! And has seen an increase of 30% in Sales conversions</description>
|
14 |
-
<notes>Initial launch 1.0.
|
15 |
<authors><author><name>shopry</name><user>shopry</user><email>tommy@shopry.com</email></author></authors>
|
16 |
<date>2016-08-10</date>
|
17 |
-
<time>
|
18 |
-
<contents><target name="magecommunity"><dir name="Stamped"><dir name="Core"><dir name="Block"><dir name="AdminHtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="58571b0ae5c6b4cc340abea1ba16c919"/></dir></dir></dir></dir><file name="Stamped.php" hash="af939ae833fd985e06ce061add9688c3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StampedController.php" hash="45b39088bfb88eda630ed5ca43b6cf78"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="89d03dffd4e1824060dd2fef5ad87e52"/><file name="config.xml" hash="fd761fdb44941c08ec2b4058a25e196d"/><file name="system.xml" hash="f5555f45bf8fba12e168eba4bf661cc2"/></dir><dir name="Helper"><file name="Data.php" hash="afb964afe6fd318843a798bbda73e175"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Richsnippet"><file name="Collection.php" hash="ef2899dc158df9cecfa126aa513c26cd"/></dir><file name="Richsnippet.php" hash="f59e2d2fa1f71db4521d6a12f3b80b20"/></dir><dir name="Order"><file name="Observer.php" hash="9216d49e235808cbc4615bbd38d9bddb"/></dir><dir name="Resource"><dir name="Mysql4"><file name="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Stamped_Reviews</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.stamped.io/">custom</license>
|
7 |
<channel>community</channel>
|
11 |

|
12 |
Customers writes their review directly in the email
|
13 |
The emails which will be sent to your customers includes a review form, allowing your customers to leave their reviews directly in the email without having to go to a external website, hence, making it convenient for your customers. This convenience increases the chance of getting more reviews. Our users has experienced 300% more conversions in reviews received! And has seen an increase of 30% in Sales conversions</description>
|
14 |
+
<notes>Initial launch 1.0.1, stable</notes>
|
15 |
<authors><author><name>shopry</name><user>shopry</user><email>tommy@shopry.com</email></author></authors>
|
16 |
<date>2016-08-10</date>
|
17 |
+
<time>11:03:57</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Stamped"><dir name="Core"><dir name="Block"><dir name="AdminHtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="58571b0ae5c6b4cc340abea1ba16c919"/></dir></dir></dir></dir><file name="Stamped.php" hash="af939ae833fd985e06ce061add9688c3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StampedController.php" hash="45b39088bfb88eda630ed5ca43b6cf78"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="89d03dffd4e1824060dd2fef5ad87e52"/><file name="config.xml" hash="fd761fdb44941c08ec2b4058a25e196d"/><file name="system.xml" hash="f5555f45bf8fba12e168eba4bf661cc2"/></dir><dir name="Helper"><file name="Data.php" hash="afb964afe6fd318843a798bbda73e175"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Richsnippet"><file name="Collection.php" hash="ef2899dc158df9cecfa126aa513c26cd"/></dir><file name="Richsnippet.php" hash="f59e2d2fa1f71db4521d6a12f3b80b20"/></dir><dir name="Order"><file name="Observer.php" hash="9216d49e235808cbc4615bbd38d9bddb"/></dir><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="096516b57630b4d4d63121c338691f92"/></dir></dir><file name="Richsnippet.php" hash="4994427832174a0cbece562133a0c2ee"/></dir><dir name="sql"><dir name="stamped_setup"><file name="mysql4-install-1.0.0.php" hash="deb1b17143b700723dfa3ff4848caf0b"/></dir></dir><file name="ApiClient.php" hash="ed0f13d8859f87793d2a13036beb0570"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="stamped"><dir name="system"><dir name="config"><file name="button.phtml" hash="d843026304cca14fe76fba3e9718bd4c"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="stamped.xml" hash="09c364b2cd4c93085fbe86aad9659e54"/></dir><dir name="template"><dir name="stamped"><file name="badge.phtml" hash="2213f4133be4d77aa9530803b1f0fb48"/><file name="javascript.phtml" hash="d1c970b2f53abd5b8732e985bc456185"/><file name="widget.phtml" hash="867e141f0eef8e6646c2dda563ce4095"/><file name="widget2.phtml" hash="65b4d0618393ffb9e8bacdd2b530b6e5"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Stamped_Stamped.xml" hash="d13822e3739720ab0cbd768bc02f4d07"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|