Sinabs_AutomaticResponse - Version 0.2.1

Version Notes

Release 0.2.1 Fix Reply to, add variables to email template

Download this release

Release Info

Developer Sinabs
Extension Sinabs_AutomaticResponse
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.2.0 to 0.2.1

app/code/community/Sinabs/AutomaticResponse/Helper/Data.php CHANGED
@@ -19,5 +19,29 @@
19
*/
20
class Sinabs_AutomaticResponse_Helper_Data extends Mage_Core_Helper_Abstract
21
{
22
23
}
19
*/
20
class Sinabs_AutomaticResponse_Helper_Data extends Mage_Core_Helper_Abstract
21
{
22
+ const XML_PATH_AUTOMATICRESPONSE_GENERAL_ENABLED = 'automaticresponse/general/active';
23
+ const XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE = 'automaticresponse/general/template';
24
+ const XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER = 'automaticresponse/general/sender_email_identity';
25
+ const XML_PATH_AUTOMATICRESPONSE_BACKUP_ACTIVE = 'automaticresponse/backup/active';
26
+ const XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT = 'automaticresponse/general/template_comment';
27
28
+ /**
29
+ * Sort Array By date DESC
30
+ *
31
+ * @param array $array
32
+ * @return array
33
+ */
34
+ public function sortByDateDesc($array)
35
+ {
36
+ if (count($array) < 1) {
37
+ return $array;
38
+ }
39
+ usort($array, array($this, '_callbackDateDesc'));
40
+ return $array;
41
+ }
42
+
43
+ private function _callbackDateDesc($a, $b)
44
+ {
45
+ return strtotime($b['created_at']) - strtotime($a['created_at']);
46
+ }
47
}
app/code/community/Sinabs/AutomaticResponse/Model/Mail.php CHANGED
@@ -18,33 +18,49 @@
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
class Sinabs_AutomaticResponse_Model_Mail extends Mage_Core_Model_Abstract
21
- {
22
- const XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT = 'automaticresponse/general/template_comment';
23
-
24
public function _construct()
25
{
26
parent::_construct();
27
$this->_init('automaticresponse/mail');
28
}
29
30
- public function sendComment($email, $comment)
31
{
32
$translate = Mage::getSingleton('core/translate');
33
$translate->setTranslateInline(false);
34
35
$storeId = Mage::app()->getStore()->getId();
36
37
try {
38
$mailTemplate = Mage::getModel('core/email_template');
39
$mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId));
40
- $mailTemplate->setReplyTo(Mage::getStoreConfig(Sinabs_AutomaticResponse_Model_Observer::XML_PATH_CONTACTS_RECIPIENT_EMAIL, $storeId));
41
$mailTemplate->sendTransactional(
42
- Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT, $storeId),
43
- Mage::getStoreConfig(Sinabs_AutomaticResponse_Model_Observer::XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER),
44
$email,
45
null,
46
array(
47
- 'comment' => $comment
48
),
49
$storeId
50
);
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
class Sinabs_AutomaticResponse_Model_Mail extends Mage_Core_Model_Abstract
21
+ {
22
+ /**
23
+ * Initialize Sinabs_AutomaticResponse_Model_Mail
24
+ *
25
+ */
26
public function _construct()
27
{
28
parent::_construct();
29
$this->_init('automaticresponse/mail');
30
}
31
32
+ /**
33
+ * Send comment and notify customer
34
+ *
35
+ * @param string $email
36
+ * @param string $name
37
+ * @param string $comment
38
+ * @return Sinabs_AutomaticResponse_Model_Mail
39
+ */
40
+ public function sendComment($email, $name, $prevComment, $comment)
41
{
42
$translate = Mage::getSingleton('core/translate');
43
$translate->setTranslateInline(false);
44
45
$storeId = Mage::app()->getStore()->getId();
46
47
+ $sender = Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER, $storeId);
48
+ $replyTo = Mage::getStoreConfig('trans_email/ident_' . $sender . '/email', $storeId);
49
+
50
try {
51
$mailTemplate = Mage::getModel('core/email_template');
52
$mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId));
53
+ $mailTemplate->setReplyTo($replyTo);
54
$mailTemplate->sendTransactional(
55
+ Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT, $storeId),
56
+ $sender,
57
$email,
58
null,
59
array(
60
+ 'comment' => $comment,
61
+ 'email' => $email,
62
+ 'name' => $name,
63
+ 'comment_client' => $prevComment
64
),
65
$storeId
66
);
app/code/community/Sinabs/AutomaticResponse/Model/Mysql4/Mail.php CHANGED
@@ -19,6 +19,10 @@
19
*/
20
class Sinabs_AutomaticResponse_Model_Mysql4_Mail extends Mage_Core_Model_Mysql4_Abstract
21
{
22
public function _construct()
23
{
24
$this->_init('automaticresponse/mail', 'mail_id');
19
*/
20
class Sinabs_AutomaticResponse_Model_Mysql4_Mail extends Mage_Core_Model_Mysql4_Abstract
21
{
22
+ /**
23
+ * Initialize resource
24
+ *
25
+ */
26
public function _construct()
27
{
28
$this->_init('automaticresponse/mail', 'mail_id');
app/code/community/Sinabs/AutomaticResponse/Model/Mysql4/Mail/Collection.php CHANGED
@@ -19,6 +19,10 @@
19
*/
20
class Sinabs_AutomaticResponse_Model_Mysql4_Mail_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
21
{
22
public function _construct()
23
{
24
parent::_construct();
19
*/
20
class Sinabs_AutomaticResponse_Model_Mysql4_Mail_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
21
{
22
+ /**
23
+ * Initialize collection
24
+ *
25
+ */
26
public function _construct()
27
{
28
parent::_construct();
app/code/community/Sinabs/AutomaticResponse/Model/Observer.php CHANGED
@@ -19,12 +19,6 @@
19
*/
20
class Sinabs_AutomaticResponse_Model_Observer
21
{
22
- const XML_PATH_AUTOMATICRESPONSE_GENERAL_ENABLED = 'automaticresponse/general/active';
23
- const XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE = 'automaticresponse/general/template';
24
- const XML_PATH_CONTACTS_RECIPIENT_EMAIL = 'contacts/email/recipient_email';
25
- const XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER = 'automaticresponse/general/sender_email_identity';
26
- const XML_PATH_AUTOMATICRESPONSE_BACKUP_ACTIVE = 'automaticresponse/backup/active';
27
-
28
/**
29
* Send automatic response
30
*
@@ -33,26 +27,34 @@ class Sinabs_AutomaticResponse_Model_Observer
33
*/
34
public function sendAutomaticResponse(Varien_Event_Observer $observer)
35
{
36
- if (!Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_GENERAL_ENABLED)) {
37
return;
38
}
39
40
$controllerAction = $observer->getControllerAction();
41
- $storeId = Mage::app()->getStore()->getId();
42
43
$translate = Mage::getSingleton('core/translate');
44
$translate->setTranslateInline(false);
45
46
try {
47
$mailTemplate = Mage::getModel('core/email_template');
48
$mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId));
49
- $mailTemplate->setReplyTo(Mage::getStoreConfig(self::XML_PATH_CONTACTS_RECIPIENT_EMAIL, $storeId));
50
$mailTemplate->sendTransactional(
51
- Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE, $storeId),
52
- Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER),
53
$controllerAction->getRequest()->getParam('email'),
54
null,
55
- array(),
56
$storeId
57
);
58
} catch (Exception $e) {
@@ -70,7 +72,7 @@ class Sinabs_AutomaticResponse_Model_Observer
70
*/
71
public function saveEmail(Varien_Event_Observer $observer)
72
{
73
- if (!Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_BACKUP_ACTIVE)) {
74
return;
75
}
76
19
*/
20
class Sinabs_AutomaticResponse_Model_Observer
21
{
22
/**
23
* Send automatic response
24
*
27
*/
28
public function sendAutomaticResponse(Varien_Event_Observer $observer)
29
{
30
+ if (!Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_GENERAL_ENABLED)) {
31
return;
32
}
33
34
$controllerAction = $observer->getControllerAction();
35
36
$translate = Mage::getSingleton('core/translate');
37
$translate->setTranslateInline(false);
38
39
+ $storeId = Mage::app()->getStore()->getId();
40
+
41
+ $sender = Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER, $storeId);
42
+ $replyTo = Mage::getStoreConfig('trans_email/ident_' . $sender . '/email', $storeId);
43
+
44
try {
45
$mailTemplate = Mage::getModel('core/email_template');
46
$mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId));
47
+ $mailTemplate->setReplyTo($replyTo);
48
$mailTemplate->sendTransactional(
49
+ Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE, $storeId),
50
+ $sender,
51
$controllerAction->getRequest()->getParam('email'),
52
null,
53
+ array(
54
+ 'email' => $email,
55
+ 'name' => $controllerAction->getRequest()->getParam('name'),
56
+ 'comment' => $controllerAction->getRequest()->getParam('comment')
57
+ ),
58
$storeId
59
);
60
} catch (Exception $e) {
72
*/
73
public function saveEmail(Varien_Event_Observer $observer)
74
{
75
+ if (!Mage::getStoreConfig(Sinabs_AutomaticResponse_Helper_Data::XML_PATH_AUTOMATICRESPONSE_BACKUP_ACTIVE)) {
76
return;
77
}
78
app/code/community/Sinabs/AutomaticResponse/controllers/Adminhtml/MailController.php CHANGED
@@ -104,7 +104,7 @@ class Sinabs_AutomaticResponse_Adminhtml_MailController extends Mage_Adminhtml_C
104
$mail->save();
105
106
if ($isCustomerNotified) {
107
- Mage::getModel('automaticresponse/mail')->sendComment($mail->getEmail(), $comment);
108
}
109
110
Mage::register('current_mail', $mail);
104
$mail->save();
105
106
if ($isCustomerNotified) {
107
+ Mage::getModel('automaticresponse/mail')->sendComment($mail->getEmail(), $mail->getName(), $mail->getComment(), $comment);
108
}
109
110
Mage::register('current_mail', $mail);
app/code/community/Sinabs/AutomaticResponse/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
<config>
23
<modules>
24
<Sinabs_AutomaticResponse>
25
- <version>0.2.0</version>
26
</Sinabs_AutomaticResponse>
27
</modules>
28
<global>
22
<config>
23
<modules>
24
<Sinabs_AutomaticResponse>
25
+ <version>0.2.1</version>
26
</Sinabs_AutomaticResponse>
27
</modules>
28
<global>
app/code/community/Sinabs/AutomaticResponse/sql/automaticresponse_setup/mysql4-upgrade-0.2.0-0.2.1.php ADDED
@@ -0,0 +1,24 @@
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Sinabs
16
+ * @package Sinabs_AutomaticResponse
17
+ * @copyright Copyright (c) 2012 Sinabs (http://www.sinabs.fr)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ /* @var $installer Mage_Core_Model_Resource_Setup */
22
+ $installer = $this;
23
+ $installer->startSetup();
24
+ $installer->endSetup();
app/design/adminhtml/default/default/template/sinabs/automaticresponse/mail/view.phtml CHANGED
@@ -27,7 +27,7 @@
27
<tbody>
28
<tr>
29
<td class="label"><label><?php echo $this->__('Date'); ?></label></td>
30
- <td><strong><?php echo Mage::helper('core')->formatDate($_mail->getDate(), 'medium', false); ?></strong></td>
31
</tr>
32
<tr>
33
<td class="label"><label><?php echo $this->__('Name'); ?></label></td>
27
<tbody>
28
<tr>
29
<td class="label"><label><?php echo $this->__('Date'); ?></label></td>
30
+ <td><strong><?php echo Mage::helper('core')->formatDate($_mail->getDate(), 'medium', true); ?></strong></td>
31
</tr>
32
<tr>
33
<td class="label"><label><?php echo $this->__('Name'); ?></label></td>
app/design/adminhtml/default/default/template/sinabs/automaticresponse/mail/view/comment.phtml CHANGED
@@ -18,7 +18,10 @@
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
?>
21
- <?php $_mail = $this->getMail(); ?>
22
<div id="reply_form">
23
<span class="field-row">
24
<label class="normal" for="comment"><?php echo $this->__('Comment'); ?></label>
@@ -35,10 +38,11 @@
35
</div>
36
<div class="divider"></div>
37
<ul class="note-list" id="comment-list">
38
- <?php if ($_mail->getReply()) : ?>
39
- <?php foreach (unserialize($_mail->getReply()) as $_reply) : ?>
40
<li>
41
- <strong><?php echo Mage::helper('core')->formatDate($_reply['created_at'], 'long', false); ?></strong>
42
<p><?php echo nl2br($_reply['comment']); ?></p>
43
<small>
44
<?php echo $this->__('Customer'); ?>
@@ -52,6 +56,6 @@
52
</li>
53
<?php endforeach; ?>
54
<?php else : ?>
55
- <li><strong><?php echo $this->__('No answer found.'); ?></strong></li>
56
<?php endif; ?>
57
</ul>
18
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
*/
20
?>
21
+ <?php
22
+ $_mail = $this->getMail();
23
+ $_helper = $this->helper('automaticresponse');
24
+ ?>
25
<div id="reply_form">
26
<span class="field-row">
27
<label class="normal" for="comment"><?php echo $this->__('Comment'); ?></label>
38
</div>
39
<div class="divider"></div>
40
<ul class="note-list" id="comment-list">
41
+ <?php if ($_mail->getReply() !== null) : ?>
42
+ <?php $reply = $_helper->sortByDateDesc(unserialize($_mail->getReply())); ?>
43
+ <?php foreach ($reply as $_reply) : ?>
44
<li>
45
+ <strong><?php echo Mage::helper('core')->formatDate($_reply['created_at'], 'medium', true); ?></strong>
46
<p><?php echo nl2br($_reply['comment']); ?></p>
47
<small>
48
<?php echo $this->__('Customer'); ?>
56
</li>
57
<?php endforeach; ?>
58
<?php else : ?>
59
+ <li><strong><?php echo $this->__('No answer'); ?></strong></li>
60
<?php endif; ?>
61
</ul>
app/locale/en_US/template/email/automatic_response.html CHANGED
@@ -1,4 +1,9 @@
1
<!--@subject Contact Form @-->
2
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
<table cellspacing="0" cellpadding="0" border="0" width="98%"
4
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
@@ -14,11 +19,15 @@
14
<table cellspacing="0" cellpadding="0" border="0" width="650">
15
<tr>
16
<td valign="top">
17
- <p><strong>Hello,</strong>
18
<p>
19
Thank you for your interest in {{var store.getFrontendName()}}.
20
Your message has been sent to our customer service and will be treated as soon as possible.
21
</p>
22
<p>
23
Regards,<br />
24
<strong>Team {{var store.getFrontendName()}}</strong>
1
<!--@subject Contact Form @-->
2
+ <!--@vars
3
+ {"var name":"Sender Name",
4
+ "var email":"Sender Email",
5
+ "var comment":"Comment"}
6
+ @-->
7
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
8
<table cellspacing="0" cellpadding="0" border="0" width="98%"
9
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
19
<table cellspacing="0" cellpadding="0" border="0" width="650">
20
<tr>
21
<td valign="top">
22
+ <p><strong>Hello {{var name}},</strong>
23
<p>
24
Thank you for your interest in {{var store.getFrontendName()}}.
25
Your message has been sent to our customer service and will be treated as soon as possible.
26
</p>
27
+ <p><strong>Your message: </strong></p>
28
+ <p>
29
+ {{var comment}}
30
+ </p>
31
<p>
32
Regards,<br />
33
<strong>Team {{var store.getFrontendName()}}</strong>
app/locale/en_US/template/email/automatic_response_comment.html CHANGED
@@ -1,4 +1,10 @@
1
- <!--@subject [RE] Formulaire de contact @-->
2
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
<table cellspacing="0" cellpadding="0" border="0" width="98%"
4
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
@@ -14,10 +20,14 @@
14
<table cellspacing="0" cellpadding="0" border="0" width="650">
15
<tr>
16
<td valign="top">
17
- <p><strong>Hello,</strong>
18
<p>
19
{{var comment}}
20
</p>
21
<p>
22
Regards,<br />
23
<strong>Team {{var store.getFrontendName()}}</strong>
1
+ <!--@subject [RE] Contact Form @-->
2
+ <!--@vars
3
+ {"var name":"Sender Name",
4
+ "var email":"Sender Email",
5
+ "var comment":"Comment",
6
+ "var comment_client":"Client Comment"}
7
+ @-->
8
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
9
<table cellspacing="0" cellpadding="0" border="0" width="98%"
10
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
20
<table cellspacing="0" cellpadding="0" border="0" width="650">
21
<tr>
22
<td valign="top">
23
+ <p><strong>Hello {{var name}},</strong>
24
<p>
25
{{var comment}}
26
</p>
27
+ <p><strong>Your Message: </strong></p>
28
+ <p>
29
+ {{var comment_client}}
30
+ </p>
31
<p>
32
Regards,<br />
33
<strong>Team {{var store.getFrontendName()}}</strong>
app/locale/fr_FR/Sinabs_AutomaticResponse.csv CHANGED
@@ -7,4 +7,5 @@
7
"Automatic Response", "Réponse automatique"
8
"Automatic Response Comment", "Réponse automatique commentaire"
9
"Reply to %s", "Répondre à %s"
10
- "Email Template Comment", "Gabarit du mail de commentaire"
7
"Automatic Response", "Réponse automatique"
8
"Automatic Response Comment", "Réponse automatique commentaire"
9
"Reply to %s", "Répondre à %s"
10
+ "Email Template Comment", "Gabarit du mail de commentaire"
11
+ "No answer", "Aucune réponse"
app/locale/fr_FR/template/email/automatic_response.html CHANGED
@@ -1,4 +1,9 @@
1
<!--@subject Formulaire de contact @-->
2
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
<table cellspacing="0" cellpadding="0" border="0" width="98%"
4
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
@@ -14,11 +19,15 @@
14
<table cellspacing="0" cellpadding="0" border="0" width="650">
15
<tr>
16
<td valign="top">
17
- <p><strong>Bonjour,</strong>
18
<p>
19
Merci de l'intêret que vous portez à {{var store.getFrontendName()}}.
20
Votre message a bien été transmis à notre service client et sera traité dans les meilleurs délais.
21
</p>
22
<p>
23
Cordialement,<br />
24
<strong>L'équipe {{var store.getFrontendName()}}</strong>
1
<!--@subject Formulaire de contact @-->
2
+ <!--@vars
3
+ {"var name":"Sender Name",
4
+ "var email":"Sender Email",
5
+ "var comment":"Comment"}
6
+ @-->
7
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
8
<table cellspacing="0" cellpadding="0" border="0" width="98%"
9
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
19
<table cellspacing="0" cellpadding="0" border="0" width="650">
20
<tr>
21
<td valign="top">
22
+ <p><strong>Bonjour {{var name}},</strong>
23
<p>
24
Merci de l'intêret que vous portez à {{var store.getFrontendName()}}.
25
Votre message a bien été transmis à notre service client et sera traité dans les meilleurs délais.
26
</p>
27
+ <p><strong>Rappel de votre message : </strong></p>
28
+ <p>
29
+ {{var comment}}
30
+ </p>
31
<p>
32
Cordialement,<br />
33
<strong>L'équipe {{var store.getFrontendName()}}</strong>
app/locale/fr_FR/template/email/automatic_response_comment.html CHANGED
@@ -1,4 +1,10 @@
1
<!--@subject [RE] Formulaire de contact @-->
2
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
<table cellspacing="0" cellpadding="0" border="0" width="98%"
4
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
@@ -14,10 +20,12 @@
14
<table cellspacing="0" cellpadding="0" border="0" width="650">
15
<tr>
16
<td valign="top">
17
- <p><strong>Bonjour,</strong>
18
<p>
19
{{var comment}}
20
</p>
21
<p>
22
Cordialement,<br />
23
<strong>L'équipe {{var store.getFrontendName()}}</strong>
1
<!--@subject [RE] Formulaire de contact @-->
2
+ <!--@vars
3
+ {"var name":"Sender Name",
4
+ "var email":"Sender Email",
5
+ "var comment":"Comment",
6
+ "var comment_client":"Client Comment"}
7
+ @-->
8
<div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
9
<table cellspacing="0" cellpadding="0" border="0" width="98%"
10
style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
20
<table cellspacing="0" cellpadding="0" border="0" width="650">
21
<tr>
22
<td valign="top">
23
+ <p><strong>Bonjour {{var name}},</strong>
24
<p>
25
{{var comment}}
26
</p>
27
+ <p>Rappel de votre message : </p>
28
+ <p>{{var comment_client}}</p>
29
<p>
30
Cordialement,<br />
31
<strong>L'équipe {{var store.getFrontendName()}}</strong>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Sinabs_AutomaticResponse</name>
4
- <version>0.2.0</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Automatic response to requests for contact and archiving.</summary>
10
<description>The Sinabs module Automatic Response allows you to set an automatic response to any request for contact on your website. The module also enables archiving of all contact requests.</description>
11
- <notes>Release 0.2.0 Add Comment</notes>
12
- <authors><author><name>Sinabs</name><user>auto-converted</user><email>tech@sinabs.fr</email></author></authors>
13
- <date>2013-09-16</date>
14
- <time>21:28:38</time>
15
- <contents><target name="magecommunity"><dir name="Sinabs"><dir name="AutomaticResponse"><dir name="Block"><dir name="Adminhtml"><dir name="Mail"><dir name="View"><file name="Comment.php" hash="373c3b96d4bea123c142570ec80f4ada"/><file name="Form.php" hash="8c3795c7cd36644f5841f5f61b62f644"/></dir><file name="Grid.php" hash="17c4f7b926c64f92ce8132a9987f11f7"/><file name="View.php" hash="aaff72924e4ea4f77d5ef7a3f67624c8"/></dir><file name="Mail.php" hash="1a35a05e80aede11ce215e53dde18cdc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="56cd1e0335dfd23d07be6274e2d72194"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mail"><file name="Collection.php" hash="96f9c96a4de4fa01f4a79d67796308d4"/></dir><file name="Mail.php" hash="c3e297f1ca0304a4c829dd6cf6132dd3"/></dir><file name="Mail.php" hash="07b4643f15a2e1d55ec20605d260cbb1"/><file name="Observer.php" hash="e08a8b23bbc5b54d3871884356e8000a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailController.php" hash="f64e7cf930880a04abdcd71e5db901ff"/></dir></dir><dir name="etc"><file name="config.xml" hash="e15a1687c89e82433f834a6fa2793189"/><file name="system.xml" hash="2512453701e0168b2073818b51561cc9"/></dir><dir name="sql"><dir name="automaticresponse_setup"><file name="mysql4-install-0.1.0.php" hash="17a271fbb467d5561912e848686fe53a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="cf2e22a1506e22327336fec942ff29b2"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d20386a51c47a16517cb82473e86d9fc"/><file name="mysql4-upgrade-0.1.2-0.1.8.php" hash="3ba8a88600de64d2c74f16b59e6c21bc"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="a60dbdf9f1b1bea58fddcb96ff381eb0"/><file name="mysql4-upgrade-0.1.9-0.2.0.php" hash="0c7a2d363fcc9f0fa13d70675360b6fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sinabs"><dir name="automaticresponse"><dir name="mail"><dir name="view"><file name="comment.phtml" hash="2b9ee3adb7c8077ffb34fd02ce16bac5"/></dir><file name="view.phtml" hash="107c4aa7b6a764582e1aac72b4406ccf"/></dir></dir></dir></dir><dir name="layout"><file name="sinabs_automaticresponse.xml" hash="433931469f0a766545e7a38d43e93003"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sinabs_AutomaticResponse.xml" hash="ed9cb08f1a08076b7f8ba5810151daf8"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Sinabs_AutomaticResponse.csv" hash="aff2903270e35f6de7a3787f87817589"/><dir name="template"><dir name="email"><file name="automatic_response.html" hash="5c3fda353ae00468b56453a40a4b208e"/><file name="automatic_response_comment.html" hash="97c139b0b0729273974d8c294c889b39"/></dir></dir></dir><dir name="en_US"><dir name="template"><dir name="email"><file name="automatic_response.html" hash="d12165e940add0bbad49be149b55981b"/><file name="automatic_response_comment.html" hash="0bd49b2f3f6b066375d971d357760c94"/></dir></dir></dir></target></contents>
16
<compatible/>
17
- <dependencies/>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Sinabs_AutomaticResponse</name>
4
+ <version>0.2.1</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Automatic response to requests for contact and archiving.</summary>
10
<description>The Sinabs module Automatic Response allows you to set an automatic response to any request for contact on your website. The module also enables archiving of all contact requests.</description>
11
+ <notes>Release 0.2.1 Fix Reply to, add variables to email template</notes>
12
+ <authors><author><name>Sinabs</name><user>sinabs_fr</user><email>tech@sinabs.fr</email></author></authors>
13
+ <date>2013-09-17</date>
14
+ <time>13:19:35</time>
15
+ <contents><target name="magecommunity"><dir name="Sinabs"><dir name="AutomaticResponse"><dir name="Block"><dir name="Adminhtml"><dir name="Mail"><file name="Grid.php" hash="17c4f7b926c64f92ce8132a9987f11f7"/><dir name="View"><file name="Comment.php" hash="373c3b96d4bea123c142570ec80f4ada"/><file name="Form.php" hash="8c3795c7cd36644f5841f5f61b62f644"/></dir><file name="View.php" hash="aaff72924e4ea4f77d5ef7a3f67624c8"/></dir><file name="Mail.php" hash="1a35a05e80aede11ce215e53dde18cdc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7dcea97022522215e067b71e6f989fa1"/></dir><dir name="Model"><file name="Mail.php" hash="de947fa208dc781da0e973c9fc76094d"/><dir name="Mysql4"><dir name="Mail"><file name="Collection.php" hash="087ba18c00c0e060dda427a3221187d0"/></dir><file name="Mail.php" hash="f7efa066bea4592560fe2dd0a3510c49"/></dir><file name="Observer.php" hash="07099e641bded2523c138cb23a8c9085"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailController.php" hash="ba28bacce9b99de7735f4fcfaf4feaf4"/></dir></dir><dir name="etc"><file name="config.xml" hash="1356140c2a73c9688c17ad9032e7269e"/><file name="system.xml" hash="2512453701e0168b2073818b51561cc9"/></dir><dir name="sql"><dir name="automaticresponse_setup"><file name="mysql4-install-0.1.0.php" hash="17a271fbb467d5561912e848686fe53a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="cf2e22a1506e22327336fec942ff29b2"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d20386a51c47a16517cb82473e86d9fc"/><file name="mysql4-upgrade-0.1.2-0.1.8.php" hash="3ba8a88600de64d2c74f16b59e6c21bc"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="a60dbdf9f1b1bea58fddcb96ff381eb0"/><file name="mysql4-upgrade-0.1.9-0.2.0.php" hash="0c7a2d363fcc9f0fa13d70675360b6fc"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="a60dbdf9f1b1bea58fddcb96ff381eb0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sinabs"><dir name="automaticresponse"><dir name="mail"><dir name="view"><file name="comment.phtml" hash="2226e18657a9073a4c7e5c4ad8f80c9f"/></dir><file name="view.phtml" hash="5840b6daaa06eddcec305285a9042801"/></dir></dir></dir></dir><dir name="layout"><file name="sinabs_automaticresponse.xml" hash="433931469f0a766545e7a38d43e93003"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sinabs_AutomaticResponse.xml" hash="ed9cb08f1a08076b7f8ba5810151daf8"/></dir></target><target name="magelocale"><dir><dir name="fr_FR"><file name="Sinabs_AutomaticResponse.csv" hash="d72967b389e59123ea431dfd46252b70"/></dir></dir><dir name="en_US"><dir name="template"><dir name="email"><file name="automatic_response.html" hash="6acd37107b8dc2b7e9eebc0a56faefea"/><file name="automatic_response_comment.html" hash="dc85561b544f60ea7cbc58b6c7aefe8c"/></dir></dir></dir><dir name="fr_FR"><dir name="template"><dir name="email"><file name="automatic_response.html" hash="a9d14a2888f83cf344a63c1c63993251"/><file name="automatic_response_comment.html" hash="a73bf4d70a14914ab9f09443c68d5002"/></dir></dir></dir></target></contents>
16
<compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>