Version Notes
Stable version, fully functional on our website.
Download this release
Release Info
| Developer | Velica Onel |
| Extension | Briel_ReviewPlus |
| Version | 0.9.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.9.0 to 0.9.1
- app/code/community/Briel/ReviewPlus/Block/Adminhtml/Clientlog/Grid.php +7 -8
- app/code/community/Briel/ReviewPlus/Model/Observer.php +69 -76
- app/code/community/Briel/ReviewPlus/etc/config.xml +1 -1
- app/code/community/Briel/ReviewPlus/etc/system.xml +6 -6
- app/code/community/Briel/ReviewPlus/sql/briel_reviewplus_setup/{mysql4-install-0.9.0.php → mysql4-install-0.9.1.php} +0 -0
- app/locale/en_US/template/email/reviewplus_email.html +4 -5
- package.xml +7 -7
app/code/community/Briel/ReviewPlus/Block/Adminhtml/Clientlog/Grid.php
CHANGED
|
@@ -100,19 +100,18 @@ class Briel_ReviewPlus_Block_Adminhtml_Clientlog_Grid extends Mage_Adminhtml_Blo
|
|
| 100 |
if (!$value = $column->getFilter()->getValue()) {
|
| 101 |
return $this;
|
| 102 |
}
|
| 103 |
-
if (empty($value['from'])) {
|
| 104 |
$to = $value['to']->getTimestamp();
|
| 105 |
-
$
|
| 106 |
-
$
|
| 107 |
-
$year = date('Y', $to);
|
| 108 |
-
$from = mktime(0, 0, 0, $month, $day, $year);
|
| 109 |
-
$this->getCollection()->addFieldToFilter('send_time', array('from' => $from, 'to' => $to));
|
| 110 |
return $this;
|
| 111 |
-
} else if (empty($value['to'])) {
|
| 112 |
$from = $value['from']->getTimestamp();
|
| 113 |
-
$this->getCollection()->addFieldToFilter('send_time', array('
|
| 114 |
return $this;
|
| 115 |
} else {
|
|
|
|
|
|
|
| 116 |
$this->getCollection()->addFieldToFilter('send_time', array('from' => $from, 'to' => $to));
|
| 117 |
return $this;
|
| 118 |
}
|
| 100 |
if (!$value = $column->getFilter()->getValue()) {
|
| 101 |
return $this;
|
| 102 |
}
|
| 103 |
+
if (empty($value['from']) && isset($value['to'])) {
|
| 104 |
$to = $value['to']->getTimestamp();
|
| 105 |
+
$from = mktime(0, 0, 0);
|
| 106 |
+
$this->getCollection()->addFieldToFilter('send_time', array('lteq' => $to));
|
|
|
|
|
|
|
|
|
|
| 107 |
return $this;
|
| 108 |
+
} else if (empty($value['to']) && isset($value['from'])) {
|
| 109 |
$from = $value['from']->getTimestamp();
|
| 110 |
+
$this->getCollection()->addFieldToFilter('send_time', array('gteq' => $from));
|
| 111 |
return $this;
|
| 112 |
} else {
|
| 113 |
+
$from = $value['from']->getTimestamp();
|
| 114 |
+
$to = $value['to']->getTimestamp();
|
| 115 |
$this->getCollection()->addFieldToFilter('send_time', array('from' => $from, 'to' => $to));
|
| 116 |
return $this;
|
| 117 |
}
|
app/code/community/Briel/ReviewPlus/Model/Observer.php
CHANGED
|
@@ -2,52 +2,51 @@
|
|
| 2 |
|
| 3 |
class Briel_ReviewPlus_Model_Observer {
|
| 4 |
|
|
|
|
|
|
|
| 5 |
public function logClients($observer) {
|
| 6 |
// set timezone
|
| 7 |
date_default_timezone_set(Mage::getStoreConfig('general/locale/timezone', Mage::app()->getStore()));
|
| 8 |
// retrieve ORDER ID and STATUS from event dispatch
|
| 9 |
$order_id = $observer->getEvent()->getOrder()->getId();
|
| 10 |
$order_status = $observer->getEvent()->getOrder()->getStatus();
|
| 11 |
-
|
| 12 |
// IF ReviewPlus is enabled, start logging
|
| 13 |
$reviewplus_enable = Mage::getStoreConfig('reviewplus_options/reviewplus_config/enable_disable', Mage::app()->getStore());
|
| 14 |
if ($reviewplus_enable == 1) {
|
| 15 |
// IF order_status is Complete, log user, else skip
|
| 16 |
$config_statuses = Mage::getStoreConfig('reviewplus_options/reviewplus_config/select_status', Mage::app()->getStore());
|
| 17 |
$config_statuses_arr = explode(',', $config_statuses);
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
} // end of STATUS IF
|
| 50 |
-
} // end of STATUSES FOREACH
|
| 51 |
} // end of IF ENABLED
|
| 52 |
} // end of method
|
| 53 |
|
|
@@ -55,9 +54,8 @@ class Briel_ReviewPlus_Model_Observer {
|
|
| 55 |
public function sendFollowupEmail() {
|
| 56 |
// set timezone
|
| 57 |
date_default_timezone_set(Mage::getStoreConfig('general/locale/timezone', Mage::app()->getStore()));
|
| 58 |
-
// Mage::log('sendFollowupEmail method is being triggered');
|
| 59 |
// get a collection of contacts based on due date: today
|
| 60 |
-
$current_time =
|
| 61 |
$emails_per_cron = Mage::getStoreConfig('reviewplus_options/reviewplus_config/mails_per_cron', Mage::app()->getStore());
|
| 62 |
$clientlog_collection = Mage::getModel('reviewplus/clientlog')->getCollection();
|
| 63 |
$clientlog_collection->addFieldToFilter('status', 0)
|
|
@@ -81,47 +79,42 @@ class Briel_ReviewPlus_Model_Observer {
|
|
| 81 |
if (date('G', time()) >= $cron_hour) {
|
| 82 |
// get current ORDER status
|
| 83 |
$sales_order_db = Mage::getModel('sales/order')->load($order_id);
|
| 84 |
-
$order_status = $sales_order_db->getStatus();
|
| 85 |
$order_increment_id = $sales_order_db->getIncrementId();
|
| 86 |
-
|
| 87 |
-
$
|
| 88 |
-
$
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
$mail->addBcc($config_bcc_exploded);
|
| 121 |
-
$mail->sendTransactional($email_template_id, array('name' => $sender_name, 'email' => $sender_email), $customer_email, $customer_name, $email_template_vars, $store_id);
|
| 122 |
-
// Mage::log('mail sent successfully');
|
| 123 |
-
} // end of STATUS IF
|
| 124 |
-
} // end of STATUSES FOREACH
|
| 125 |
} // end of HOUR IF
|
| 126 |
} // end of COLLECTION FOREACH
|
| 127 |
} // end of COLLECTION COUNT ELSE
|
| 2 |
|
| 3 |
class Briel_ReviewPlus_Model_Observer {
|
| 4 |
|
| 5 |
+
// Observer model class version 0.9.1
|
| 6 |
+
|
| 7 |
public function logClients($observer) {
|
| 8 |
// set timezone
|
| 9 |
date_default_timezone_set(Mage::getStoreConfig('general/locale/timezone', Mage::app()->getStore()));
|
| 10 |
// retrieve ORDER ID and STATUS from event dispatch
|
| 11 |
$order_id = $observer->getEvent()->getOrder()->getId();
|
| 12 |
$order_status = $observer->getEvent()->getOrder()->getStatus();
|
|
|
|
| 13 |
// IF ReviewPlus is enabled, start logging
|
| 14 |
$reviewplus_enable = Mage::getStoreConfig('reviewplus_options/reviewplus_config/enable_disable', Mage::app()->getStore());
|
| 15 |
if ($reviewplus_enable == 1) {
|
| 16 |
// IF order_status is Complete, log user, else skip
|
| 17 |
$config_statuses = Mage::getStoreConfig('reviewplus_options/reviewplus_config/select_status', Mage::app()->getStore());
|
| 18 |
$config_statuses_arr = explode(',', $config_statuses);
|
| 19 |
+
if (in_array($order_status, $config_statuses_arr)) {
|
| 20 |
+
// get order data
|
| 21 |
+
$order = Mage::getModel('sales/order')->load($order_id);
|
| 22 |
+
$increment_id = $order->getIncrementId();
|
| 23 |
+
$customer_name = $order->getCustomerName();
|
| 24 |
+
$customer_email = $order->getCustomerEmail();
|
| 25 |
+
$ordered_products_collection = $order->getAllItems();
|
| 26 |
+
$ordered_products = array();
|
| 27 |
+
foreach($ordered_products_collection as $ordered_prod) {
|
| 28 |
+
$ordered_products[] = $ordered_prod->getSku();
|
| 29 |
+
}
|
| 30 |
+
$ordered_products = implode(", ", $ordered_products);
|
| 31 |
+
// if collection is empty LOG new data
|
| 32 |
+
$clientlog_collection = Mage::getModel('reviewplus/clientlog')->getCollection();
|
| 33 |
+
$clientlog_collection->addFieldToFilter('order_id', $order_id);
|
| 34 |
+
if (count($clientlog_collection) == 0) {
|
| 35 |
+
// instance new model and write user data
|
| 36 |
+
$clientlog_db = Mage::getModel('reviewplus/clientlog');
|
| 37 |
+
$clientlog_db->setData('enable', 1)->save();
|
| 38 |
+
$clientlog_db->setData('order_id', $order_id)->save();
|
| 39 |
+
$clientlog_db->setData('customer_name', $customer_name)->save();
|
| 40 |
+
$clientlog_db->setData('customer_email', $customer_email)->save();
|
| 41 |
+
$clientlog_db->setData('ordered_products', $ordered_products)->save();
|
| 42 |
+
$clientlog_db->setData('status', 0)->save();
|
| 43 |
+
// calculate send time and save timestamp
|
| 44 |
+
$days_delay_config = Mage::getStoreConfig('reviewplus_options/reviewplus_config/days_delay', Mage::app()->getStore());
|
| 45 |
+
$days_delay = (24 * 60 * 60) * (int)$days_delay_config;
|
| 46 |
+
$timestamp = time() + $days_delay;
|
| 47 |
+
$clientlog_db->setData('send_time', $timestamp)->save();
|
| 48 |
+
} // end collection count IF
|
| 49 |
+
} // end of STATUS IF
|
|
|
|
|
|
|
| 50 |
} // end of IF ENABLED
|
| 51 |
} // end of method
|
| 52 |
|
| 54 |
public function sendFollowupEmail() {
|
| 55 |
// set timezone
|
| 56 |
date_default_timezone_set(Mage::getStoreConfig('general/locale/timezone', Mage::app()->getStore()));
|
|
|
|
| 57 |
// get a collection of contacts based on due date: today
|
| 58 |
+
$current_time = mktime(23, 59, 59);
|
| 59 |
$emails_per_cron = Mage::getStoreConfig('reviewplus_options/reviewplus_config/mails_per_cron', Mage::app()->getStore());
|
| 60 |
$clientlog_collection = Mage::getModel('reviewplus/clientlog')->getCollection();
|
| 61 |
$clientlog_collection->addFieldToFilter('status', 0)
|
| 79 |
if (date('G', time()) >= $cron_hour) {
|
| 80 |
// get current ORDER status
|
| 81 |
$sales_order_db = Mage::getModel('sales/order')->load($order_id);
|
| 82 |
+
// $order_status = $sales_order_db->getStatus();
|
| 83 |
$order_increment_id = $sales_order_db->getIncrementId();
|
| 84 |
+
|
| 85 |
+
$salt = "Magento extension created by Briel Software";
|
| 86 |
+
$hash = md5($customer_name.$order_id.$salt);
|
| 87 |
+
$review_page_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'reviewplus/index/index'.'/?oid='.$order_id.'&hash='.$hash;
|
| 88 |
+
// get sender data from Store Sales Rep.
|
| 89 |
+
$sender_name = Mage::getStoreConfig('trans_email/ident_sales/name');
|
| 90 |
+
$sender_email = Mage::getStoreConfig('trans_email/ident_sales/email');
|
| 91 |
+
// get template ID
|
| 92 |
+
$email_template_id = Mage::getStoreConfig('reviewplus_options/reviewplus_config/email_template', Mage::app()->getStore()->getId());
|
| 93 |
+
$email_template_vars = array();
|
| 94 |
+
$email_template_vars['namevar'] = $customer_name;
|
| 95 |
+
$email_template_vars['review_page_url'] = $review_page_url;
|
| 96 |
+
$email_template_vars['order_increment_id'] = $order_increment_id;
|
| 97 |
+
// ordered product(s) name
|
| 98 |
+
$ordered_products_arr = explode(", ", $ordered_products);
|
| 99 |
+
$purchased_products = '';
|
| 100 |
+
foreach($ordered_products_arr as $purchased_prod_sku) {
|
| 101 |
+
$prod_loaded = Mage::getModel('catalog/product')->loadByAttribute('sku', trim($purchased_prod_sku));
|
| 102 |
+
$purchased_prod_name = $prod_loaded->getName();
|
| 103 |
+
$purchased_products .= "<span>".$purchased_prod_name."</span><br />";
|
| 104 |
+
}
|
| 105 |
+
$email_template_vars['purchased_products'] = $purchased_products;
|
| 106 |
+
// get Store ID
|
| 107 |
+
$store_id = Mage::app()->getStore()->getId();
|
| 108 |
+
// set status as SENT on followup entry
|
| 109 |
+
$clientlog_db->setData('status', 1)->save();
|
| 110 |
+
// send transactional, will not send if template has no subject
|
| 111 |
+
$mail = Mage::getModel('core/email_template');
|
| 112 |
+
// send Bcc if config is set
|
| 113 |
+
$config_bcc = Mage::getStoreConfig('reviewplus_options/reviewplus_config/bcc_email', Mage::app()->getStore()->getId());
|
| 114 |
+
if (isset($config_bcc)) {
|
| 115 |
+
$mail->addBcc($config_bcc);
|
| 116 |
+
}
|
| 117 |
+
$mail->sendTransactional($email_template_id, array('name' => $sender_name, 'email' => $sender_email), $customer_email, $customer_name, $email_template_vars, $store_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
} // end of HOUR IF
|
| 119 |
} // end of COLLECTION FOREACH
|
| 120 |
} // end of COLLECTION COUNT ELSE
|
app/code/community/Briel/ReviewPlus/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Briel_ReviewPlus>
|
| 6 |
-
<version>0.9.
|
| 7 |
</Briel_ReviewPlus>
|
| 8 |
</modules>
|
| 9 |
<admin>
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Briel_ReviewPlus>
|
| 6 |
+
<version>0.9.1</version>
|
| 7 |
</Briel_ReviewPlus>
|
| 8 |
</modules>
|
| 9 |
<admin>
|
app/code/community/Briel/ReviewPlus/etc/system.xml
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
</enable_disable>
|
| 38 |
<days_delay translate="label">
|
| 39 |
<label>Followup Email Days Delay</label>
|
| 40 |
-
<comment>In days, send followup email after
|
| 41 |
<frontend_type>text</frontend_type>
|
| 42 |
<validate>validate-number</validate>
|
| 43 |
<sort_order>20</sort_order>
|
|
@@ -47,7 +47,7 @@
|
|
| 47 |
</days_delay>
|
| 48 |
<cron_hour translate="label">
|
| 49 |
<label>Start hour</label>
|
| 50 |
-
<comment>In hours, the starting hour for email sending
|
| 51 |
<frontend_type>text</frontend_type>
|
| 52 |
<validate>validate-number</validate>
|
| 53 |
<sort_order>30</sort_order>
|
|
@@ -57,7 +57,7 @@
|
|
| 57 |
</cron_hour>
|
| 58 |
<mails_per_cron translate="label">
|
| 59 |
<label>Emails per cron</label>
|
| 60 |
-
<comment>Sets the number of emails sent per Cronjob. EXAMPLE:
|
| 61 |
<frontend_type>text</frontend_type>
|
| 62 |
<validate>validate-number</validate>
|
| 63 |
<sort_order>40</sort_order>
|
|
@@ -67,7 +67,7 @@
|
|
| 67 |
</mails_per_cron>
|
| 68 |
<bcc_email translate="label">
|
| 69 |
<label>Bcc</label>
|
| 70 |
-
<comment>
|
| 71 |
<frontend_type>text</frontend_type>
|
| 72 |
<sort_order>50</sort_order>
|
| 73 |
<show_in_default>1</show_in_default>
|
|
@@ -76,7 +76,7 @@
|
|
| 76 |
</bcc_email>
|
| 77 |
<email_template translate="label">
|
| 78 |
<label>Email Template</label>
|
| 79 |
-
<comment>
|
| 80 |
<frontend_type>select</frontend_type>
|
| 81 |
<source_model>adminhtml/system_config_source_email_template</source_model>
|
| 82 |
<sort_order>60</sort_order>
|
|
@@ -86,7 +86,7 @@
|
|
| 86 |
</email_template>
|
| 87 |
<select_status>
|
| 88 |
<label>Select Order Status</label>
|
| 89 |
-
<comment>
|
| 90 |
<frontend_type>multiselect</frontend_type>
|
| 91 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
| 92 |
<sort_order>70</sort_order>
|
| 37 |
</enable_disable>
|
| 38 |
<days_delay translate="label">
|
| 39 |
<label>Followup Email Days Delay</label>
|
| 40 |
+
<comment>In days, send followup email after this many days from order logging by ReviewPlus. Give value of zero (0) for no delay.</comment>
|
| 41 |
<frontend_type>text</frontend_type>
|
| 42 |
<validate>validate-number</validate>
|
| 43 |
<sort_order>20</sort_order>
|
| 47 |
</days_delay>
|
| 48 |
<cron_hour translate="label">
|
| 49 |
<label>Start hour</label>
|
| 50 |
+
<comment>In hours, the starting hour for email sending to begin. PERMITTED VALUES: 0 - 23</comment>
|
| 51 |
<frontend_type>text</frontend_type>
|
| 52 |
<validate>validate-number</validate>
|
| 53 |
<sort_order>30</sort_order>
|
| 57 |
</cron_hour>
|
| 58 |
<mails_per_cron translate="label">
|
| 59 |
<label>Emails per cron</label>
|
| 60 |
+
<comment>Sets the number of emails sent per Cronjob. EXAMPLE: 3 - will send 3 emails per cron.</comment>
|
| 61 |
<frontend_type>text</frontend_type>
|
| 62 |
<validate>validate-number</validate>
|
| 63 |
<sort_order>40</sort_order>
|
| 67 |
</mails_per_cron>
|
| 68 |
<bcc_email translate="label">
|
| 69 |
<label>Bcc</label>
|
| 70 |
+
<comment>Bcc email address. You can write multiple emails, separated by comma.</comment>
|
| 71 |
<frontend_type>text</frontend_type>
|
| 72 |
<sort_order>50</sort_order>
|
| 73 |
<show_in_default>1</show_in_default>
|
| 76 |
</bcc_email>
|
| 77 |
<email_template translate="label">
|
| 78 |
<label>Email Template</label>
|
| 79 |
+
<comment>VERY IMPORTANT: Please create a transactional email based on our template, then select it here.</comment>
|
| 80 |
<frontend_type>select</frontend_type>
|
| 81 |
<source_model>adminhtml/system_config_source_email_template</source_model>
|
| 82 |
<sort_order>60</sort_order>
|
| 86 |
</email_template>
|
| 87 |
<select_status>
|
| 88 |
<label>Select Order Status</label>
|
| 89 |
+
<comment>Orders with this status will be logged automatically by ReviewPlus. CTRL + Click to select multiple statuses.</comment>
|
| 90 |
<frontend_type>multiselect</frontend_type>
|
| 91 |
<source_model>adminhtml/system_config_source_order_status</source_model>
|
| 92 |
<sort_order>70</sort_order>
|
app/code/community/Briel/ReviewPlus/sql/briel_reviewplus_setup/{mysql4-install-0.9.0.php → mysql4-install-0.9.1.php}
RENAMED
|
File without changes
|
app/locale/en_US/template/email/reviewplus_email.html
CHANGED
|
@@ -11,11 +11,10 @@
|
|
| 11 |
</tr>
|
| 12 |
<tr>
|
| 13 |
<td valign="top">
|
| 14 |
-
<h1 style="font-size:
|
| 15 |
-
<
|
| 16 |
-
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin-bottom:10px; padding:13px 18px; background:#F9F9F9;">Please take the time to give a short review for the product(s) you've recently purchased from our store.<p>
|
| 17 |
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin-bottom:10px; padding:13px 18px; background:#F9F9F9;"><span style="font-weight:bold;">Ordered product(s): </span><br />{{var purchased_products}}</p>
|
| 18 |
-
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin:0; padding:13px 18px; background:#F9F9F9;">How satisfied are you with the product(s) you've bought
|
| 19 |
<ul style="border:1px solid #E0E0E0;list-style:none; font-size:12px; line-height:16px; margin-top:0; margin-bottom:20px; padding-top:10px; padding-bottom:20px; background:#F9F9F9;">
|
| 20 |
<li style="list-style:none;"><a href="{{var review_page_url}}&rtng=5"><img src="{{config path='web/unsecure/base_url'}}/skin/frontend/base/default/images/reviewplus_email_template/5-stars.jpg" alt="Very satisfied" /></a></li>
|
| 21 |
<li style="list-style:none;"><a href="{{var review_page_url}}&rtng=4"><img src="{{config path='web/unsecure/base_url'}}/skin/frontend/base/default/images/reviewplus_email_template/4-stars.jpg" alt="Satisfied" /></a></li>
|
|
@@ -26,7 +25,7 @@
|
|
| 26 |
</td>
|
| 27 |
</tr>
|
| 28 |
<tr>
|
| 29 |
-
<td align="center" style="background:#EAEAEA; text-align:center;"><p style="font-size:12px; margin:0;">Thank you
|
| 30 |
</tr>
|
| 31 |
</table>
|
| 32 |
</td>
|
| 11 |
</tr>
|
| 12 |
<tr>
|
| 13 |
<td valign="top">
|
| 14 |
+
<h1 style="font-size:16px; font-weight:normal; line-height:22px; margin:0; margin-top:20px;">Dear {{var namevar}}, thank you for choosing us!</h1>
|
| 15 |
+
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin-bottom:10px; padding:13px 18px; background:#F9F9F9;">Please take a minute of your time to give a short review for the product(s) you've recently purchased from our store.<p>
|
|
|
|
| 16 |
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin-bottom:10px; padding:13px 18px; background:#F9F9F9;"><span style="font-weight:bold;">Ordered product(s): </span><br />{{var purchased_products}}</p>
|
| 17 |
+
<p style="border:1px solid #E0E0E0; font-size:12px; line-height:16px; margin:0; padding:13px 18px; background:#F9F9F9;">How satisfied are you with the product(s) you've bought? Click the rating below which best describes your opinion.</p>
|
| 18 |
<ul style="border:1px solid #E0E0E0;list-style:none; font-size:12px; line-height:16px; margin-top:0; margin-bottom:20px; padding-top:10px; padding-bottom:20px; background:#F9F9F9;">
|
| 19 |
<li style="list-style:none;"><a href="{{var review_page_url}}&rtng=5"><img src="{{config path='web/unsecure/base_url'}}/skin/frontend/base/default/images/reviewplus_email_template/5-stars.jpg" alt="Very satisfied" /></a></li>
|
| 20 |
<li style="list-style:none;"><a href="{{var review_page_url}}&rtng=4"><img src="{{config path='web/unsecure/base_url'}}/skin/frontend/base/default/images/reviewplus_email_template/4-stars.jpg" alt="Satisfied" /></a></li>
|
| 25 |
</td>
|
| 26 |
</tr>
|
| 27 |
<tr>
|
| 28 |
+
<td align="center" style="background:#EAEAEA; text-align:center;"><p style="font-size:12px; margin:0;">Thank you <strong>{{var namevar}}</strong> and have a nice day!</p></td>
|
| 29 |
</tr>
|
| 30 |
</table>
|
| 31 |
</td>
|
package.xml
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Briel_ReviewPlus</name>
|
| 4 |
-
<version>0.9.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GNU General Public License (GPL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>ReviewPlus will help boost the amount of reviews you receive for your products by sending a review notification email to customers.</summary>
|
| 10 |
<description>Once enabled and configured, the extension will start logging orders and as per user defined settings will start sending review notification emails.<br />
|
| 11 |
-
|
| 12 |
In order for this to work properly, make sure both cron and email sending are configured and working on your server. And please define a transactional email based on our template.<br />
|
| 13 |
-
|
| 14 |
Additionally, you can log individual orders via the ReviewPlus tab on Sales/Order/View page. There are also two customer grids, one for managing customers, and another for managing reviews.<br />
|
| 15 |
-
|
| 16 |
Once received, reviews can be approved from the Product Reviews grid and will appear on your site.</description>
|
| 17 |
<notes>Stable version, fully functional on our website.</notes>
|
| 18 |
<authors><author><name>Onel Velica</name><user>mage_briel</user><email>mage@briel.ro</email></author></authors>
|
| 19 |
-
<date>2013-
|
| 20 |
-
<time>
|
| 21 |
-
<contents><target name="magecommunity"><dir name="Briel"><dir name="ReviewPlus"><dir name="Block"><dir name="Adminhtml"><dir name="Clientlog"><file name="Grid.php" hash="
|
| 22 |
<compatible/>
|
| 23 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 24 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Briel_ReviewPlus</name>
|
| 4 |
+
<version>0.9.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GNU General Public License (GPL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>ReviewPlus will help boost the amount of reviews you receive for your products by sending a review notification email to customers.</summary>
|
| 10 |
<description>Once enabled and configured, the extension will start logging orders and as per user defined settings will start sending review notification emails.<br />
|
| 11 |
+
<br />
|
| 12 |
In order for this to work properly, make sure both cron and email sending are configured and working on your server. And please define a transactional email based on our template.<br />
|
| 13 |
+
<br />
|
| 14 |
Additionally, you can log individual orders via the ReviewPlus tab on Sales/Order/View page. There are also two customer grids, one for managing customers, and another for managing reviews.<br />
|
| 15 |
+
<br />
|
| 16 |
Once received, reviews can be approved from the Product Reviews grid and will appear on your site.</description>
|
| 17 |
<notes>Stable version, fully functional on our website.</notes>
|
| 18 |
<authors><author><name>Onel Velica</name><user>mage_briel</user><email>mage@briel.ro</email></author></authors>
|
| 19 |
+
<date>2013-05-07</date>
|
| 20 |
+
<time>13:50:31</time>
|
| 21 |
+
<contents><target name="magecommunity"><dir name="Briel"><dir name="ReviewPlus"><dir name="Block"><dir name="Adminhtml"><dir name="Clientlog"><file name="Grid.php" hash="798e291ca45dde24ba06fe7c43c820b7"/><dir name="Renderer"><file name="Orderid.php" hash="d827cb94ef34cd3dd3fba167cd4b1501"/><file name="Sendtime.php" hash="5c6965be08be0856b9ae7be49be5c2d4"/><file name="Status.php" hash="0ae75b2f2740f047f3b2d07d8a80a507"/></dir></dir><file name="Clientlog.php" hash="54d09a42d11006f2425fb4c7227e6f0f"/><file name="Ordertab.php" hash="043b4df77ecf8311b56dd26722621d3a"/><dir name="Reviews"><file name="Grid.php" hash="77d93f579ed2e87d2ffbc9c9015f761c"/><dir name="Renderer"><file name="Rating.php" hash="34d9b45c8012d393bbad8361b55863c0"/></dir></dir><file name="Reviews.php" hash="57fc9e182ae5221c9fb2f4485a047dae"/></dir><file name="Review.php" hash="6b181bd14a05633e49c81758c2eeab57"/></dir><dir name="Helper"><file name="Data.php" hash="b6d18df74629c1499a1880fb9347a39e"/></dir><dir name="Model"><file name="Clientlog.php" hash="3d9d0b2896f596eed7c8b94e0ba8b457"/><dir name="Mysql4"><file name="Setup.php" hash="7afa5ad62c814dd2509791476354bd16"/></dir><file name="Observer.php" hash="03ac868c2af66025540ec686cc60074d"/><dir name="Resource"><dir name="Clientlog"><file name="Collection.php" hash="2b4a6adbe1faebcae17a8b6e2007a346"/></dir><file name="Clientlog.php" hash="b2570fccc223172f2194153a495c3034"/><dir name="Reviews"><file name="Collection.php" hash="a821396365da812545a22c1030076fad"/></dir><file name="Reviews.php" hash="b3c0b995486a6f0da43693998fb4bf58"/></dir><file name="Reviews.php" hash="bcd36606992998de00a52db4cf121e6a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ClientlogController.php" hash="95b97a615c71b43f083d017d375ee05a"/><file name="OrdertabController.php" hash="52828b442e388679546455143dc0c374"/><file name="ReviewsController.php" hash="9e066cb473dd13640bcdfa051ce4dcc6"/></dir><file name="IndexController.php" hash="3ba73988c86e2c9831670ab26462afaa"/></dir><dir name="etc"><file name="config.xml" hash="c837fe8d8fef41051a55167676740421"/><file name="system.xml" hash="be1b59421ec02c09285f483118e16472"/></dir><dir name="sql"><dir name="briel_reviewplus_setup"><file name="mysql4-install-0.9.1.php" hash="4b7d1693622586b1ffbf0c71d874d75a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Briel_ReviewPlus.xml" hash="896cf8c524bc7cca77b68a94e9747f7b"/></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="briel_reviewplus.xml" hash="20ec754748d22432060acae114be3937"/></dir><dir name="template"><dir name="briel_reviewplus"><file name="ordertab.phtml" hash="a586e49fa33021262b9579bb07cbb8b1"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="briel_reviewplus.xml" hash="5de4dbf6075c40c147da6c42c61ccf9b"/></dir><dir name="template"><dir name="briel_reviewplus"><file name="review.phtml" hash="2ea263fdac247bf7943ee54d99935e5e"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><dir name="template"><dir name="email"><file name="reviewplus_email.html" hash="9ddf01044dc7b6ce0cd9f3f0a99bce33"/></dir></dir></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="reviewplus_email_template"><file name="1-star.jpg" hash="3d6fbc36d97bde7d10cfe2ca1a86f89f"/><file name="2-stars.jpg" hash="311c7e4d5cb9af3badaa45436d28ad24"/><file name="3-stars.jpg" hash="859affa52072d9c6809c4dbd5f70d70a"/><file name="4-stars.jpg" hash="307572d5b17dbc2e4c6d201ac5c53e2a"/><file name="5-stars.jpg" hash="dbce095164d7af04b0950f5cf2a84e3b"/></dir></dir></dir></dir></dir></dir></target></contents>
|
| 22 |
<compatible/>
|
| 23 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 24 |
</package>
|
