Rack_Jpmail - Version 0.3.0

Version Notes

0.3.0 Update for CE 1.9.1.x. Include text templates.
0.2.5 Compatible for PHP5.5
0.2.4 FIx bug.
0.2.3 Fix bug.
0.2.2 Fix sender and recipient name broken under double byte env
0.2.1 Modify for 1.5 and 1.6
0.2.0 Add External SMTP Server setting
0.1.6 Add Sender Name Encoding
0.1.5 Separate Text and HTML mail encode.
Add Return-Path
Add Reply-To
0.1.4 Fix system.xml
0.1.3 Fix bcc problem
Add Newsletter/Template.php
0.1.2 Fix Bug.

Download this release

Release Info

Developer Hirokazu Nishi
Extension Rack_Jpmail
Version 0.3.0
Comparing to
See all releases


Code changes from version 0.2.3 to 0.3.0

Files changed (55) hide show
  1. app/code/community/Rack/Jpmail/Helper/Data.php +22 -0
  2. app/code/community/Rack/Jpmail/Model/Email/Queue.php +93 -0
  3. app/code/community/Rack/Jpmail/Model/Email/Template.php +94 -48
  4. app/code/community/Rack/Jpmail/Model/Newsletter/Queue.php +69 -0
  5. app/code/community/Rack/Jpmail/Model/Newsletter/Template.php +23 -26
  6. app/code/community/Rack/Jpmail/Model/System/Secure.php +18 -0
  7. app/code/community/Rack/Jpmail/etc/config.xml +237 -77
  8. app/code/community/Rack/Jpmail/etc/system.xml +200 -158
  9. app/design/frontend/base/default/layout/jpmail.xml +93 -0
  10. app/design/frontend/base/default/template/rack_jpmail/order/creditmemo/items.phtml +16 -0
  11. app/design/frontend/base/default/template/rack_jpmail/order/delivery.phtml +8 -0
  12. app/design/frontend/base/default/template/rack_jpmail/order/invoice/items.phtml +16 -0
  13. app/design/frontend/base/default/template/rack_jpmail/order/items.phtml +13 -0
  14. app/design/frontend/base/default/template/rack_jpmail/order/items/creditmemo/default.phtml +17 -0
  15. app/design/frontend/base/default/template/rack_jpmail/order/items/invoice/default.phtml +17 -0
  16. app/design/frontend/base/default/template/rack_jpmail/order/items/order/default.phtml +17 -0
  17. app/design/frontend/base/default/template/rack_jpmail/order/items/shipment/default.phtml +17 -0
  18. app/design/frontend/base/default/template/rack_jpmail/order/payment.phtml +100 -0
  19. app/design/frontend/base/default/template/rack_jpmail/order/shipment/items.phtml +16 -0
  20. app/design/frontend/base/default/template/rack_jpmail/order/shipment/totals.phtml +8 -0
  21. app/design/frontend/base/default/template/rack_jpmail/order/shipment/track.phtml +36 -0
  22. app/design/frontend/base/default/template/rack_jpmail/order/tax.phtml +33 -0
  23. app/design/frontend/base/default/template/rack_jpmail/order/totals.phtml +7 -0
  24. app/locale/ja_JP/Rack_Jpmail.csv +42 -0
  25. app/locale/ja_JP/template/email/jpmail/account_new.html +34 -0
  26. app/locale/ja_JP/template/email/jpmail/account_new_confirmation.html +27 -0
  27. app/locale/ja_JP/template/email/jpmail/account_new_confirmed.html +29 -0
  28. app/locale/ja_JP/template/email/jpmail/account_password_reset_confirmation.html +19 -0
  29. app/locale/ja_JP/template/email/jpmail/newsletter_subscr_confirm.html +18 -0
  30. app/locale/ja_JP/template/email/jpmail/newsletter_subscr_success.html +2 -0
  31. app/locale/ja_JP/template/email/jpmail/newsletter_unsub_success.html +2 -0
  32. app/locale/ja_JP/template/email/jpmail/password_new.html +21 -0
  33. app/locale/ja_JP/template/email/jpmail/product_price_alert.html +8 -0
  34. app/locale/ja_JP/template/email/jpmail/product_share.html +27 -0
  35. app/locale/ja_JP/template/email/jpmail/product_stock_alert.html +8 -0
  36. app/locale/ja_JP/template/email/jpmail/sales/creditmemo_new.html +48 -0
  37. app/locale/ja_JP/template/email/jpmail/sales/creditmemo_new_guest.html +47 -0
  38. app/locale/ja_JP/template/email/jpmail/sales/creditmemo_update.html +25 -0
  39. app/locale/ja_JP/template/email/jpmail/sales/creditmemo_update_guest.html +22 -0
  40. app/locale/ja_JP/template/email/jpmail/sales/invoice_new.html +49 -0
  41. app/locale/ja_JP/template/email/jpmail/sales/invoice_new_guest.html +48 -0
  42. app/locale/ja_JP/template/email/jpmail/sales/invoice_update.html +26 -0
  43. app/locale/ja_JP/template/email/jpmail/sales/invoice_update_guest.html +21 -0
  44. app/locale/ja_JP/template/email/jpmail/sales/order_cancel.html +51 -0
  45. app/locale/ja_JP/template/email/jpmail/sales/order_new.html +48 -0
  46. app/locale/ja_JP/template/email/jpmail/sales/order_new_guest.html +47 -0
  47. app/locale/ja_JP/template/email/jpmail/sales/order_update.html +25 -0
  48. app/locale/ja_JP/template/email/jpmail/sales/order_update_guest.html +21 -0
  49. app/locale/ja_JP/template/email/jpmail/sales/shipment_new.html +54 -0
  50. app/locale/ja_JP/template/email/jpmail/sales/shipment_new_guest.html +50 -0
  51. app/locale/ja_JP/template/email/jpmail/sales/shipment_update.html +25 -0
  52. app/locale/ja_JP/template/email/jpmail/sales/shipment_update_guest.html +21 -0
  53. app/locale/ja_JP/template/email/jpmail/token.html +17 -0
  54. app/locale/ja_JP/template/email/jpmail/wishlist_share.html +15 -0
  55. package.xml +10 -7
app/code/community/Rack/Jpmail/Helper/Data.php CHANGED
@@ -1,4 +1,26 @@
1
  <?php
2
  class Rack_Jpmail_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
1
  <?php
2
  class Rack_Jpmail_Helper_Data extends Mage_Core_Helper_Abstract
3
  {
4
+ public function setDefaultTransport($returnPathEmail)
5
+ {
6
+ if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 0 && $returnPathEmail) {
7
+ $tr = new Zend_Mail_Transport_Sendmail('-f'.$returnPathEmail);
8
+ Zend_Mail::setDefaultTransport($tr);
9
+ }
10
+
11
+ if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 1) {
12
+ $host = Mage::getStoreConfig('extsmtp/extsmtp/smtp_host');
13
+ $config = array(
14
+ 'auth' => 'login',
15
+ 'username' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_user'),
16
+ 'password' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_password'),
17
+ 'port' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_port'),
18
+ );
19
+ if(Mage::getStoreConfig('extsmtp/extsmtp/smtp_secure') == 1) {
20
+ $config['ssl'] = Mage::getStoreConfig('extsmtp/extsmtp/smtp_secure_mode');
21
+ }
22
+ $tr = new Zend_Mail_Transport_Smtp($host, $config);
23
+ Zend_Mail::setDefaultTransport($tr);
24
+ }
25
+ }
26
  }
app/code/community/Rack/Jpmail/Model/Email/Queue.php ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rack_Jpmail_Model_Email_Queue extends Mage_Core_Model_Email_Queue
3
+ {
4
+ /**
5
+ * Send all messages in a queue
6
+ *
7
+ * @return Mage_Core_Model_Email_Queue
8
+ */
9
+ public function send()
10
+ {
11
+ $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
12
+ $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
13
+
14
+ /** @var $collection Mage_Core_Model_Resource_Email_Queue_Collection */
15
+ $collection = Mage::getModel('core/email_queue')->getCollection()
16
+ ->addOnlyForSendingFilter()
17
+ ->setPageSize(self::MESSAGES_LIMIT_PER_CRON_RUN)
18
+ ->setCurPage(1)
19
+ ->load();
20
+
21
+
22
+ ini_set('SMTP', Mage::getStoreConfig('system/smtp/host'));
23
+ ini_set('smtp_port', Mage::getStoreConfig('system/smtp/port'));
24
+
25
+
26
+ /** @var $message Mage_Core_Model_Email_Queue */
27
+ foreach ($collection as $message) {
28
+ if ($message->getId()) {
29
+ $parameters = new Varien_Object($message->getMessageParameters());
30
+
31
+ Mage::helper('jpmail')->setDefaultTransport($parameters->getReturnPathEmail());
32
+
33
+ $encode = 'utf-8';
34
+ if ($parameters->getIsPlain()) {
35
+ $encode = $textencode;
36
+ } else {
37
+ $encode = $htmlencode;
38
+ }
39
+
40
+ $mailer = new Zend_Mail($encode);
41
+
42
+ foreach ($message->getRecipients() as $recipient) {
43
+ list($email, $name, $type) = $recipient;
44
+ switch ($type) {
45
+ case self::EMAIL_TYPE_BCC:
46
+
47
+ $mailer->addBcc($email, mb_encode_mimeheader(mb_convert_encoding($name, $encode, 'utf-8'), $encode));
48
+ break;
49
+ case self::EMAIL_TYPE_TO:
50
+ case self::EMAIL_TYPE_CC:
51
+ default:
52
+ $mailer->addTo($email, mb_encode_mimeheader(mb_convert_encoding($name, $encode, 'utf-8'), $encode));
53
+ break;
54
+ }
55
+ }
56
+
57
+ if ($parameters->getIsPlain()) {
58
+ $mailer->setBodyText($message->getMessageBody());
59
+ } else {
60
+ $mailer->setBodyHTML($message->getMessageBody());
61
+ }
62
+
63
+ $mailer->setSubject(mb_convert_encoding($parameters->getSubject(), $encode, 'utf-8'));
64
+ $mailer->setFrom($parameters->getFromEmail(), $parameters->getFromName());
65
+ if ($parameters->getReplyTo() !== null) {
66
+ $mailer->setReplyTo($parameters->getReplyTo());
67
+ }
68
+ if ($parameters->getReturnTo() !== null) {
69
+ $mailer->setReturnPath($parameters->getReturnTo());
70
+ }
71
+
72
+ try {
73
+ $mailer->send();
74
+ unset($mailer);
75
+ $message->setProcessedAt(Varien_Date::formatDate(true));
76
+ $message->save();
77
+ }
78
+ catch (Exception $e) {
79
+ unset($mailer);
80
+ $oldDevMode = Mage::getIsDeveloperMode();
81
+ Mage::setIsDeveloperMode(true);
82
+ Mage::logException($e);
83
+ Mage::setIsDeveloperMode($oldDevMode);
84
+
85
+ return false;
86
+ }
87
+ }
88
+ }
89
+
90
+ return $this;
91
+ }
92
+
93
+ }
app/code/community/Rack/Jpmail/Model/Email/Template.php CHANGED
@@ -2,7 +2,8 @@
2
 
3
  class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
4
 
5
- public function send($email, $name=null, array $variables = array()) {
 
6
  if (!$this->isValidForSend()) {
7
  Mage::logException(new Exception('This letter cannot be sent.')); // translation is intentionally omitted
8
  return false;
@@ -19,28 +20,36 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
19
 
20
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
21
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
 
22
 
23
  $variables['email'] = reset($emails);
24
  $variables['name'] = reset($names);
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ini_set('SMTP', Mage::getStoreConfig('system/smtp/host'));
27
  ini_set('smtp_port', Mage::getStoreConfig('system/smtp/port'));
28
  $mail = $this->getMail();
29
-
30
- //if ($returnPathEmail !== null) {
31
- // $mailTransport = new Zend_Mail_Transport_Sendmail("-f".$returnPathEmail);
32
- // Zend_Mail::setDefaultTransport($mailTransport);
33
- //}
34
 
35
-
36
  foreach ($emails as $key => $email) {
37
  if ($this->isPlain()) {
38
- $names[$key] = mb_convert_encoding($names[$key], $textencode, 'utf-8');
39
  mb_internal_encoding($textencode);
40
  $mail->addTo($email, mb_encode_mimeheader($names[$key], $textencode));
41
  mb_internal_encoding('utf-8');
42
  } else {
43
- $names[$key] = mb_convert_encoding($names[$key], $htmlencode, 'utf-8');
44
  mb_internal_encoding($htmlencode);
45
  $mail->addTo($email, mb_encode_mimeheader($names[$key], $htmlencode));
46
  mb_internal_encoding('utf-8');
@@ -48,23 +57,53 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
48
  }
49
 
50
  $this->setUseAbsoluteLinks(true);
51
- $text = $this->getProcessedTemplate($variables, true);
52
-
 
 
53
 
54
  if ($this->isPlain()) {
55
- $mail->setBodyText(mb_convert_encoding($text, $textencode, 'utf-8'));
56
- $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $textencode, 'utf-8');
57
- $senderName = mb_convert_encoding($this->getSenderName(), $textencode, 'utf-8');
 
 
58
  mb_internal_encoding($textencode);
59
- $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader($senderName, $textencode));
60
  mb_internal_encoding('utf-8');
 
 
61
  } else {
62
- $mail->setBodyHTML(mb_convert_encoding($text, $htmlencode, 'utf-8'));
63
- $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $htmlencode, 'utf-8');
64
- $senderName = mb_convert_encoding($this->getSenderName(), $htmlencode, 'utf-8');
65
- mb_internal_encoding($textencode);
66
- $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader($senderName, $htmlencode));
 
 
67
  mb_internal_encoding('utf-8');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
 
70
  $mail->setSubject($subject);
@@ -83,9 +122,8 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
83
  public function getMail() {
84
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
85
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
86
-
87
  $setReturnPath = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_SET_RETURN_PATH);
88
- $returnPathEmail = '';
89
  switch ($setReturnPath) {
90
  case 1:
91
  $returnPathEmail = $this->getSenderEmail();
@@ -94,29 +132,12 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
94
  $returnPathEmail = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_RETURN_PATH_EMAIL);
95
  break;
96
  default:
97
- $returnPathEmail = '';
98
  break;
99
  }
100
 
101
- if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 0 && $returnPathEmail !== '') {
102
- $tr = new Zend_Mail_Transport_Sendmail('-f'.$returnPathEmail);
103
- Zend_Mail::setDefaultTransport($tr);
104
- }
105
-
106
- if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 1) {
107
- $host = Mage::getStoreConfig('extsmtp/extsmtp/smtp_host');
108
- $config = array(
109
- 'auth' => 'login',
110
- 'username' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_user'),
111
- 'password' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_password'),
112
- 'port' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_port'),
113
- );
114
- if(Mage::getStoreConfig('extsmtp/extsmtp/smtp_secure') == 1) {
115
- $config['ssl'] = 'ssl';
116
- }
117
- $tr = new Zend_Mail_Transport_Smtp($host, $config);
118
- Zend_Mail::setDefaultTransport($tr);
119
- }
120
 
121
  if (is_null($this->_mail)) {
122
  if ($this->isPlain()) {
@@ -125,19 +146,20 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
125
  $this->_mail = new Zend_Mail($htmlencode);
126
  }
127
  } else {
 
128
  if ($this->isPlain() && ($this->_mail->getCharset() !== $textencode)) {
129
- $this->_mail = new Zend_Mail($textencode);
130
- $this->_mail->addBcc($this->bcc);
131
  } elseif (!$this->isPlain() && ($this->_mail->getCharset() !== $htmlencode)) {
132
- $this->_mail = new Zend_Mail($htmlencode);
133
- $this->_mail->addBcc($this->bcc);
134
  }
 
 
135
  }
136
- if($returnPathEmail !== '') {
137
  $this->_mail->setReturnPath($returnPathEmail);
138
  }
139
  if (Mage::getStoreConfig('jpmail/jpmail/use_reply_to')) {
140
- $this->_mail->setReplyTo(Mage::getStoreConfig('jpmail/jpmail/reply_to'));
141
  }
142
 
143
  return $this->_mail;
@@ -154,5 +176,29 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
154
  $this->bcc = $bcc;
155
  return $this;
156
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
158
  }
2
 
3
  class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template {
4
 
5
+ public function send($email, $name=null, array $variables = array())
6
+ {
7
  if (!$this->isValidForSend()) {
8
  Mage::logException(new Exception('This letter cannot be sent.')); // translation is intentionally omitted
9
  return false;
20
 
21
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
22
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
23
+ $nameSuffix = Mage::getStoreConfig('jpmail/jpmail/name_suffix');
24
 
25
  $variables['email'] = reset($emails);
26
  $variables['name'] = reset($names);
27
 
28
+ $setReturnPath = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_SET_RETURN_PATH);
29
+ switch ($setReturnPath) {
30
+ case 1:
31
+ $returnPathEmail = $this->getSenderEmail();
32
+ break;
33
+ case 2:
34
+ $returnPathEmail = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_RETURN_PATH_EMAIL);
35
+ break;
36
+ default:
37
+ $returnPathEmail = null;
38
+ break;
39
+ }
40
+
41
  ini_set('SMTP', Mage::getStoreConfig('system/smtp/host'));
42
  ini_set('smtp_port', Mage::getStoreConfig('system/smtp/port'));
43
  $mail = $this->getMail();
 
 
 
 
 
44
 
 
45
  foreach ($emails as $key => $email) {
46
  if ($this->isPlain()) {
47
+ $names[$key] = mb_convert_encoding($names[$key]. $nameSuffix, $textencode, 'utf-8');
48
  mb_internal_encoding($textencode);
49
  $mail->addTo($email, mb_encode_mimeheader($names[$key], $textencode));
50
  mb_internal_encoding('utf-8');
51
  } else {
52
+ $names[$key] = mb_convert_encoding($names[$key] . $nameSuffix, $htmlencode, 'utf-8');
53
  mb_internal_encoding($htmlencode);
54
  $mail->addTo($email, mb_encode_mimeheader($names[$key], $htmlencode));
55
  mb_internal_encoding('utf-8');
57
  }
58
 
59
  $this->setUseAbsoluteLinks(true);
60
+ $text = $this->getProcessedTemplate($variables, true);
61
+ $subject = $this->getProcessedTemplateSubject($variables);
62
+ $from = $this->getSenderEmail();
63
+ $fromName= $this->getSenderName();
64
 
65
  if ($this->isPlain()) {
66
+ $text = mb_convert_encoding($text, $textencode, 'utf-8');
67
+ $mail->setBodyText($text, null, Zend_Mime::ENCODING_7BIT);
68
+
69
+ $subject = mb_convert_encoding($subject, $textencode, 'utf-8');
70
+
71
  mb_internal_encoding($textencode);
72
+ $fromName = mb_encode_mimeheader(mb_convert_encoding($fromName, $textencode, 'utf-8'), $textencode);
73
  mb_internal_encoding('utf-8');
74
+
75
+ $mail->setFrom($from, $fromName);
76
  } else {
77
+ $text = mb_convert_encoding($text, $htmlencode, 'utf-8');
78
+ $mail->setBodyHTML($text, null, Zend_Mime::ENCODING_7BIT);
79
+
80
+ $subject = mb_convert_encoding($subject, $htmlencode, 'utf-8');
81
+
82
+ mb_internal_encoding($htmlencode);
83
+ $fromName = mb_encode_mimeheader(mb_convert_encoding($fromName, $htmlencode, 'utf-8'), $htmlencode);
84
  mb_internal_encoding('utf-8');
85
+
86
+ $mail->setFrom($from, $fromName);
87
+ }
88
+
89
+ if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {
90
+ /** @var $emailQueue Mage_Core_Model_Email_Queue */
91
+ $emailQueue = $this->getQueue();
92
+ $emailQueue->setMessageBody($text);
93
+ $emailQueue->setMessageParameters(array(
94
+ 'subject' => $subject,
95
+ 'return_path_email' => $returnPathEmail,
96
+ 'is_plain' => $this->isPlain(),
97
+ 'from_email' => $from,
98
+ 'from_name' => $fromName,
99
+ 'reply_to' => $mail->getReplyTo(),
100
+ 'return_to' => $mail->getReturnPath(),
101
+ ))
102
+ ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
103
+ ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);
104
+ $emailQueue->addMessageToQueue();
105
+
106
+ return true;
107
  }
108
 
109
  $mail->setSubject($subject);
122
  public function getMail() {
123
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
124
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
125
+
126
  $setReturnPath = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_SET_RETURN_PATH);
 
127
  switch ($setReturnPath) {
128
  case 1:
129
  $returnPathEmail = $this->getSenderEmail();
132
  $returnPathEmail = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_RETURN_PATH_EMAIL);
133
  break;
134
  default:
135
+ $returnPathEmail = null;
136
  break;
137
  }
138
 
139
+
140
+ Mage::helper('jpmail')->setDefaultTransport($returnPathEmail);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  if (is_null($this->_mail)) {
143
  if ($this->isPlain()) {
146
  $this->_mail = new Zend_Mail($htmlencode);
147
  }
148
  } else {
149
+ $encode = 'utf-8';
150
  if ($this->isPlain() && ($this->_mail->getCharset() !== $textencode)) {
151
+ $encode = $textencode;
 
152
  } elseif (!$this->isPlain() && ($this->_mail->getCharset() !== $htmlencode)) {
153
+ $encode = $htmlencode;
 
154
  }
155
+ $this->_mail = new Zend_Mail($encode);
156
+ $this->_mail->addBcc($this->bcc);
157
  }
158
+ if($returnPathEmail !== '' && !$this->_mail->getReturnPath()) {
159
  $this->_mail->setReturnPath($returnPathEmail);
160
  }
161
  if (Mage::getStoreConfig('jpmail/jpmail/use_reply_to')) {
162
+ $this->setReplyTo(Mage::getStoreConfig('jpmail/jpmail/reply_to'));
163
  }
164
 
165
  return $this->_mail;
176
  $this->bcc = $bcc;
177
  return $this;
178
  }
179
+
180
+ /**
181
+ * Add Reply-To header
182
+ *
183
+ * @param string $email
184
+ * @return Mage_Core_Model_Email_Template
185
+ */
186
+ public function setReplyTo($email)
187
+ {
188
+ if(is_object($this->_mail) && !$this->_mail->getReplyTo()) {
189
+ $this->_mail->setReplyTo($email);
190
+ }
191
+ return $this;
192
+ }
193
+
194
+ public function getQueue()
195
+ {
196
+ if(!$this->hasQueue())
197
+ {
198
+ $this->setQueue(Mage::getModel('core/email_queue'));
199
+ }
200
+
201
+ return $this->getData('queue');
202
+ }
203
 
204
  }
app/code/community/Rack/Jpmail/Model/Newsletter/Queue.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rack_Jpmail_Model_Newsletter_Queue extends Mage_Newsletter_Model_Queue
3
+ {
4
+ /**
5
+ * Send messages to subscribers for this queue
6
+ *
7
+ * @param int $count
8
+ * @param array $additionalVariables
9
+ * @return Mage_Newsletter_Model_Queue
10
+ */
11
+ public function sendPerSubscriber($count=20, array $additionalVariables=array())
12
+ {
13
+ if($this->getQueueStatus()!=self::STATUS_SENDING
14
+ && ($this->getQueueStatus()!=self::STATUS_NEVER && $this->getQueueStartAt())
15
+ ) {
16
+ return $this;
17
+ }
18
+
19
+ if ($this->getSubscribersCollection()->getSize() == 0) {
20
+ $this->_finishQueue();
21
+ return $this;
22
+ }
23
+
24
+ $count = Mage::getStoreConfig('newsletter/delivery/count');
25
+
26
+ $collection = $this->getSubscribersCollection()
27
+ ->useOnlyUnsent()
28
+ ->showCustomerInfo()
29
+ ->setPageSize($count)
30
+ ->setCurPage(1)
31
+ ->load();
32
+
33
+ /* @var $sender Mage_Core_Model_Email_Template */
34
+ $sender = Mage::getModel('core/email_template');
35
+ $sender->setSenderName($this->getNewsletterSenderName())
36
+ ->setSenderEmail($this->getNewsletterSenderEmail())
37
+ ->setTemplateType($this->_template->getType())
38
+ ->setTemplateSubject($this->getNewsletterSubject())
39
+ ->setTemplateText($this->getNewsletterText())
40
+ ->setTemplateStyles($this->getNewsletterStyles())
41
+ ->setTemplateFilter(Mage::helper('newsletter')->getTemplateProcessor());
42
+
43
+ foreach($collection->getItems() as $item) {
44
+ $email = $item->getSubscriberEmail();
45
+ $name = $item->getSubscriberFullName();
46
+
47
+ $sender->emulateDesign($item->getStoreId());
48
+ $successSend = $sender->send($email, $name, array('subscriber' => $item));
49
+ $sender->revertDesign();
50
+
51
+ if($successSend) {
52
+ $item->received($this);
53
+ } else {
54
+ $problem = Mage::getModel('newsletter/problem');
55
+ $notification = Mage::helper('newsletter')->__('Please refer to exeption.log');
56
+ $problem->addSubscriberData($item)
57
+ ->addQueueData($this)
58
+ ->addErrorData(new Exception($notification))
59
+ ->save();
60
+ $item->received($this);
61
+ }
62
+ }
63
+
64
+ if(count($collection->getItems()) < $count-1 || count($collection->getItems()) == 0) {
65
+ $this->_finishQueue();
66
+ }
67
+ return $this;
68
+ }
69
+ }
app/code/community/Rack/Jpmail/Model/Newsletter/Template.php CHANGED
@@ -5,27 +5,22 @@ class Rack_Jpmail_Model_Newsletter_Template extends Mage_Newsletter_Model_Templa
5
  {
6
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
7
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
8
-
9
- if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 0 && Mage::getStoreConfig('jpmail/jpmail/use_return_path')) {
10
- $tr = new Zend_Mail_Transport_Sendmail('-f'.Mage::getStoreConfig('jpmail/jpmail/return_path'));
11
- Zend_Mail::setDefaultTransport($tr);
12
- }
13
-
14
- if(Mage::getStoreConfig('extsmtp/extsmtp/use_external') == 1) {
15
- $host = Mage::getStoreConfig('extsmtp/extsmtp/smtp_host');
16
- $config = array(
17
- 'auth' => 'login',
18
- 'username' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_user'),
19
- 'password' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_password'),
20
- 'port' => Mage::getStoreConfig('extsmtp/extsmtp/smtp_port'),
21
- );
22
- if(Mage::getStoreConfig('extsmtp/extsmtp/smtp_secure') == 1) {
23
- $config['ssl'] = 'ssl';
24
- }
25
- $tr = new Zend_Mail_Transport_Smtp($host, $config);
26
- Zend_Mail::setDefaultTransport($tr);
27
  }
28
 
 
 
29
  if (is_null($this->_mail)) {
30
  if($this->isPlain()) {
31
  $this->_mail = new Zend_Mail($textencode);
@@ -33,17 +28,18 @@ class Rack_Jpmail_Model_Newsletter_Template extends Mage_Newsletter_Model_Templa
33
  $this->_mail = new Zend_Mail($htmlencode);
34
  }
35
  } else {
36
- if($this->isPlain() && ($this->_mail->getCharset() !== $textencode)) {
37
- $this->_mail = new Zend_Mail($textencode);
38
- $this->_mail->addBcc($this->bcc);
39
  } elseif (!$this->isPlain() && ($this->_mail->getCharset() !== $htmlencode)) {
40
- $this->_mail = new Zend_Mail($htmlencode);
41
- $this->_mail->addBcc($this->bcc);
42
  }
 
 
43
  }
44
 
45
  if(Mage::getStoreConfig('jpmail/jpmail/use_return_path')) {
46
- $this->_mail->setReturnPath(Mage::getStoreConfig('jpmail/jpmail/return_path'));
47
  }
48
 
49
  if(Mage::getStoreConfig('jpmail/jpmail/use_reply_to')) {
@@ -70,12 +66,13 @@ class Rack_Jpmail_Model_Newsletter_Template extends Mage_Newsletter_Model_Templa
70
 
71
  $textencode = Mage::getStoreConfig('jpmail/jpmail/textcharset');
72
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/htmlcharset');
 
73
 
74
  $email = '';
75
  if ($subscriber instanceof Mage_Newsletter_Model_Subscriber) {
76
  $email = $subscriber->getSubscriberEmail();
77
  if (is_null($name) && ($subscriber->hasCustomerFirstname() || $subscriber->hasCustomerLastname()) ) {
78
- $name = $subscriber->getCustomerFirstname() . ' ' . $subscriber->getCustomerLastname();
79
  }
80
  }
81
  else {
5
  {
6
  $textencode = Mage::getStoreConfig('jpmail/jpmail/text_charset');
7
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/html_charset');
8
+
9
+ $setReturnPath = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_SET_RETURN_PATH);
10
+ switch ($setReturnPath) {
11
+ case 1:
12
+ $returnPathEmail = $this->getSenderEmail();
13
+ break;
14
+ case 2:
15
+ $returnPathEmail = Mage::getStoreConfig(Mage_Core_Model_Email_Template::XML_PATH_SENDING_RETURN_PATH_EMAIL);
16
+ break;
17
+ default:
18
+ $returnPathEmail = null;
19
+ break;
 
 
 
 
 
 
 
20
  }
21
 
22
+ Mage::helper('jpmail')->setDefaultTransport($returnPathEmail);
23
+
24
  if (is_null($this->_mail)) {
25
  if($this->isPlain()) {
26
  $this->_mail = new Zend_Mail($textencode);
28
  $this->_mail = new Zend_Mail($htmlencode);
29
  }
30
  } else {
31
+ $encode = 'utf-8';
32
+ if ($this->isPlain() && ($this->_mail->getCharset() !== $textencode)) {
33
+ $encode = $textencode;
34
  } elseif (!$this->isPlain() && ($this->_mail->getCharset() !== $htmlencode)) {
35
+ $encode = $htmlencode;
 
36
  }
37
+ $this->_mail = new Zend_Mail($encode);
38
+ $this->_mail->addBcc($this->bcc);
39
  }
40
 
41
  if(Mage::getStoreConfig('jpmail/jpmail/use_return_path')) {
42
+ $this->_mail->setReturnPath($setReturnPath);
43
  }
44
 
45
  if(Mage::getStoreConfig('jpmail/jpmail/use_reply_to')) {
66
 
67
  $textencode = Mage::getStoreConfig('jpmail/jpmail/textcharset');
68
  $htmlencode = Mage::getStoreConfig('jpmail/jpmail/htmlcharset');
69
+ $nameSuffix = Mage::getStoreConfig('jpmail/jpmail/name_suffix');
70
 
71
  $email = '';
72
  if ($subscriber instanceof Mage_Newsletter_Model_Subscriber) {
73
  $email = $subscriber->getSubscriberEmail();
74
  if (is_null($name) && ($subscriber->hasCustomerFirstname() || $subscriber->hasCustomerLastname()) ) {
75
+ $name = $subscriber->getCustomerFirstname() . ' ' . $subscriber->getCustomerLastname(). $nameSuffix;
76
  }
77
  }
78
  else {
app/code/community/Rack/Jpmail/Model/System/Secure.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Rack_Jpmail_Model_System_Secure
3
+ {
4
+
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ return array(
13
+ array('value' => 'ssl', 'label'=>Mage::helper('jpmail')->__('SSL')),
14
+ array('value' => 'tls', 'label'=>Mage::helper('jpmail')->__('TLS')),
15
+ );
16
+ }
17
+
18
+ }
app/code/community/Rack/Jpmail/etc/config.xml CHANGED
@@ -1,86 +1,246 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <modules>
4
- <Rack_Jpmail>
5
- <version>0.2.3</version>
6
- </Rack_Jpmail>
7
- </modules>
8
- <global>
9
- <models>
10
- <jpmail>
11
- <class>Rack_Jpmail_Model</class>
12
- </jpmail>
13
- <core>
14
- <rewrite>
15
- <email_template>Rack_Jpmail_Model_Email_Template</email_template>
16
- <newsletter_template>Rack_Jpmail_Model_Newsletter_Template</newsletter_template>
17
- </rewrite>
18
- </core>
19
- </models>
20
- <helpers>
21
- <jpmail>
22
- <class>Rack_Jpmail_Helper</class>
23
- </jpmail>
24
- </helpers>
25
- </global>
26
- <adminhtml>
27
- <translate>
28
- <modules>
29
  <Rack_Jpmail>
30
- <files>
31
- <default>Rack_Jpmail.csv</default>
32
- </files>
33
  </Rack_Jpmail>
34
- </modules>
35
- </translate>
36
- <acl>
37
- <resources>
38
- <all>
39
- <title>Allow Everything</title>
40
- </all>
41
- <admin>
42
- <children>
43
- <system>
44
- <children>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <config>
46
- <children>
47
- <jpmail>
48
- <title>Multibyte email Setting</title>
49
- </jpmail>
50
- <extsmtp>
51
- <title>External SMTP Setting</title>
52
- </extsmtp>
53
- </children>
54
  </config>
55
- </children>
56
- </system>
57
- </children>
58
- </admin>
59
- </resources>
60
- </acl>
61
- <system>
62
- <children>
63
- <config>
64
- <children>
 
 
 
 
65
  <jpmail>
66
- <title>Multibyte email Setting</title>
 
 
 
67
  </jpmail>
68
- <extsmtp>
69
- <title>External SMTP Setting</title>
70
- </extsmtp>
71
- </children>
72
- </config>
73
- </children>
74
- </system>
75
- </adminhtml>
76
- <default>
77
- <jpmail>
78
- <jpmail>
79
- <text_charset>utf-8</text_charset>
80
- <html_charset>utf-8</html_charset>
81
- <use_return_path>0</use_return_path>
82
- <use_reply_to>0</use_reply_to>
83
- </jpmail>
84
- </jpmail>
85
- </default>
86
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <modules>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <Rack_Jpmail>
5
+ <version>0.3.0</version>
 
 
6
  </Rack_Jpmail>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <jpmail>
11
+ <class>Rack_Jpmail_Model</class>
12
+ </jpmail>
13
+ <core>
14
+ <rewrite>
15
+ <email_template>Rack_Jpmail_Model_Email_Template</email_template>
16
+ <email_queue>Rack_Jpmail_Model_Email_Queue</email_queue>
17
+ <newsletter_template>Rack_Jpmail_Model_Newsletter_Template</newsletter_template>
18
+ <newsletter_queue>Rack_Jpmail_Model_Newsletter_Queue</newsletter_queue>
19
+ </rewrite>
20
+ </core>
21
+ </models>
22
+ <helpers>
23
+ <jpmail>
24
+ <class>Rack_Jpmail_Helper</class>
25
+ </jpmail>
26
+ </helpers>
27
+ <template>
28
+ <email>
29
+ <jpmail_customer_create_account_email_template translate="label" module="customer">
30
+ <label>New account(text)</label>
31
+ <file>jpmail/account_new.html</file>
32
+ <type>text</type>
33
+ </jpmail_customer_create_account_email_template>
34
+ <jpmail_customer_create_account_email_confirmation_template translate="label" module="customer">
35
+ <label>New account confirmation key(text)</label>
36
+ <file>jpmail/account_new_confirmation.html</file>
37
+ <type>text</type>
38
+ </jpmail_customer_create_account_email_confirmation_template>
39
+ <jpmail_customer_create_account_email_confirmed_template translate="label" module="customer">
40
+ <label>New account confirmed(text)</label>
41
+ <file>jpmail/account_new_confirmed.html</file>
42
+ <type>text</type>
43
+ </jpmail_customer_create_account_email_confirmed_template>
44
+ <jpmail_customer_password_forgot_email_template translate="label" module="customer">
45
+ <label>Forgot Password(text)</label>
46
+ <file>jpmail/account_password_reset_confirmation.html</file>
47
+ <type>text</type>
48
+ </jpmail_customer_password_forgot_email_template>
49
+ <jpmail_customer_password_remind_email_template translate="label" module="customer">
50
+ <label>Remind Password(text)</label>
51
+ <file>jpmail/password_new.html</file>
52
+ <type>text</type>
53
+ </jpmail_customer_password_remind_email_template>
54
+ <jpmail_newsletter_subscription_confirm_email_template translate="label" module="newsletter">
55
+ <label>Newsletter subscription confirmation(text)</label>
56
+ <file>jpmail/newsletter_subscr_confirm.html</file>
57
+ <type>text</type>
58
+ </jpmail_newsletter_subscription_confirm_email_template>
59
+ <jpmail_newsletter_subscription_success_email_template translate="label" module="newsletter">
60
+ <label>Newsletter subscription success(text)</label>
61
+ <file>jpmail/newsletter_subscr_success.html</file>
62
+ <type>text</type>
63
+ </jpmail_newsletter_subscription_success_email_template>
64
+ <jpmail_newsletter_subscription_un_email_template translate="label" module="newsletter">
65
+ <label>Newsletter unsubscription success(text)</label>
66
+ <file>jpmail/newsletter_unsub_success.html</file>
67
+ <type>text</type>
68
+ </jpmail_newsletter_subscription_un_email_template>
69
+ <jpmail_catalog_productalert_email_stock_template translate="label" module="productalert">
70
+ <label>Product stock alert(text)</label>
71
+ <file>jpmail/product_stock_alert.html</file>
72
+ <type>text</type>
73
+ </jpmail_catalog_productalert_email_stock_template>
74
+ <jpmail_catalog_productalert_email_price_template translate="label" module="productalert">
75
+ <label>Product price alert(text)</label>
76
+ <file>jpmail/product_price_alert.html</file>
77
+ <type>text</type>
78
+ </jpmail_catalog_productalert_email_price_template>
79
+ <jpmail_catalog_productalert_cron_error_email_template translate="label" module="productalert">
80
+ <label>Product alerts Cron error(text)</label>
81
+ <file>jpmail/product_alert_cron_error.html</file>
82
+ <type>text</type>
83
+ </jpmail_catalog_productalert_cron_error_email_template>
84
+ <jpmail_sales_email_order_template translate="label" module="sales">
85
+ <label>New Order(text)</label>
86
+ <file>jpmail/sales/order_new.html</file>
87
+ <type>text</type>
88
+ </jpmail_sales_email_order_template>
89
+ <jpmail_sales_email_order_guest_template translate="label" module="sales">
90
+ <label>New Order for Guest(text)</label>
91
+ <file>jpmail/sales/order_new_guest.html</file>
92
+ <type>text</type>
93
+ </jpmail_sales_email_order_guest_template>
94
+ <jpmail_sales_email_order_comment_template translate="label" module="sales">
95
+ <label>Order Update(text)</label>
96
+ <file>jpmail/sales/order_update.html</file>
97
+ <type>text</type>
98
+ </jpmail_sales_email_order_comment_template>
99
+ <jpmail_sales_email_order_comment_guest_template translate="label" module="sales">
100
+ <label>Order Update for Guest(text)</label>
101
+ <file>jpmail/sales/order_update_guest.html</file>
102
+ <type>text</type>
103
+ </jpmail_sales_email_order_comment_guest_template>
104
+ <jpmail_sales_email_invoice_template translate="label" module="sales">
105
+ <label>New Invoice(text)</label>
106
+ <file>jpmail/sales/invoice_new.html</file>
107
+ <type>text</type>
108
+ </jpmail_sales_email_invoice_template>
109
+ <jpmail_sales_email_invoice_guest_template translate="label" module="sales">
110
+ <label>New Invoice for Guest(text)</label>
111
+ <file>jpmail/sales/invoice_new_guest.html</file>
112
+ <type>text</type>
113
+ </jpmail_sales_email_invoice_guest_template>
114
+ <jpmail_sales_email_invoice_comment_template translate="label" module="sales">
115
+ <label>Invoice Update(text)</label>
116
+ <file>jpmail/sales/invoice_update.html</file>
117
+ <type>text</type>
118
+ </jpmail_sales_email_invoice_comment_template>
119
+ <jpmail_sales_email_invoice_comment_guest_template translate="label" module="sales">
120
+ <label>Invoice Update for Guest(text)</label>
121
+ <file>jpmail/sales/invoice_update_guest.html</file>
122
+ <type>text</type>
123
+ </jpmail_sales_email_invoice_comment_guest_template>
124
+ <jpmail_sales_email_creditmemo_template translate="label" module="sales">
125
+ <label>New Credit Memo(text)</label>
126
+ <file>jpmail/sales/creditmemo_new.html</file>
127
+ <type>text</type>
128
+ </jpmail_sales_email_creditmemo_template>
129
+ <jpmail_sales_email_creditmemo_guest_template translate="label" module="sales">
130
+ <label>New Credit Memo for Guest(text)</label>
131
+ <file>jpmail/sales/creditmemo_new_guest.html</file>
132
+ <type>text</type>
133
+ </jpmail_sales_email_creditmemo_guest_template>
134
+ <jpmail_sales_email_creditmemo_comment_template translate="label" module="sales">
135
+ <label>Credit Memo Update(text)</label>
136
+ <file>jpmail/sales/creditmemo_update.html</file>
137
+ <type>text</type>
138
+ </jpmail_sales_email_creditmemo_comment_template>
139
+ <jpmail_sales_email_creditmemo_comment_guest_template translate="label" module="sales">
140
+ <label>Credit Memo Update for Guest(text)</label>
141
+ <file>jpmail/sales/creditmemo_update_guest.html</file>
142
+ <type>text</type>
143
+ </jpmail_sales_email_creditmemo_comment_guest_template>
144
+ <jpmail_sales_email_shipment_template translate="label" module="sales">
145
+ <label>New Shipment(text)</label>
146
+ <file>jpmail/sales/shipment_new.html</file>
147
+ <type>text</type>
148
+ </jpmail_sales_email_shipment_template>
149
+ <jpmail_sales_email_shipment_guest_template translate="label" module="sales">
150
+ <label>New Shipment for Guest(text)</label>
151
+ <file>jpmail/sales/shipment_new_guest.html</file>
152
+ <type>text</type>
153
+ </jpmail_sales_email_shipment_guest_template>
154
+ <jpmail_sales_email_shipment_comment_template translate="label" module="sales">
155
+ <label>Shipment Update(text)</label>
156
+ <file>jpmail/sales/shipment_update.html</file>
157
+ <type>text</type>
158
+ </jpmail_sales_email_shipment_comment_template>
159
+ <jpmail_sales_email_shipment_comment_guest_template translate="label" module="sales">
160
+ <label>Shipment Update for Guest(text)</label>
161
+ <file>jpmail/sales/shipment_update_guest.html</file>
162
+ <type>text</type>
163
+ </jpmail_sales_email_shipment_comment_guest_template>
164
+ <jpmail_wishlist_email_email_template translate="label" module="wishlist">
165
+ <label>Share Wishlist(text)</label>
166
+ <file>jpmail/wishlist_share.html</file>
167
+ <type>text</type>
168
+ </jpmail_wishlist_email_email_template>
169
+ </email>
170
+ </template>
171
+ </global>
172
+ <adminhtml>
173
+ <translate>
174
+ <modules>
175
+ <Rack_Jpmail>
176
+ <files>
177
+ <default>Rack_Jpmail.csv</default>
178
+ </files>
179
+ </Rack_Jpmail>
180
+ </modules>
181
+ </translate>
182
+ <acl>
183
+ <resources>
184
+ <all>
185
+ <title>Allow Everything</title>
186
+ </all>
187
+ <admin>
188
+ <children>
189
+ <system>
190
+ <children>
191
+ <config>
192
+ <children>
193
+ <jpmail>
194
+ <title>Multibyte email Setting</title>
195
+ </jpmail>
196
+ <extsmtp>
197
+ <title>External SMTP Setting</title>
198
+ </extsmtp>
199
+ </children>
200
+ </config>
201
+ </children>
202
+ </system>
203
+ </children>
204
+ </admin>
205
+ </resources>
206
+ </acl>
207
+ <system>
208
+ <children>
209
  <config>
210
+ <children>
211
+ <jpmail>
212
+ <title>Multibyte email Setting</title>
213
+ </jpmail>
214
+ <extsmtp>
215
+ <title>External SMTP Setting</title>
216
+ </extsmtp>
217
+ </children>
218
  </config>
219
+ </children>
220
+ </system>
221
+ </adminhtml>
222
+ <frontend>
223
+ <layout>
224
+ <updates>
225
+ <jpmail>
226
+ <file>jpmail.xml</file>
227
+ </jpmail>
228
+ </updates>
229
+ </layout>
230
+ </frontend>
231
+ <default>
232
+ <jpmail>
233
  <jpmail>
234
+ <text_charset>utf-8</text_charset>
235
+ <html_charset>utf-8</html_charset>
236
+ <use_return_path>0</use_return_path>
237
+ <use_reply_to>0</use_reply_to>
238
  </jpmail>
239
+ </jpmail>
240
+ <newsletter>
241
+ <delivery>
242
+ <count>20</count>
243
+ </delivery>
244
+ </newsletter>
245
+ </default>
 
 
 
 
 
 
 
 
 
 
 
246
  </config>
app/code/community/Rack/Jpmail/etc/system.xml CHANGED
@@ -1,159 +1,201 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <jpmail translate="label" module="jpmail">
5
- <label>multibyte email setting</label>
6
- <sort_order>400</sort_order>
7
- </jpmail>
8
- </tabs>
9
- <sections>
10
- <jpmail translate="label" module="jpmail">
11
- <label>Multibyte Email Settings</label>
12
- <tab>jpmail</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>120</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
- <groups>
19
- <jpmail translate="label">
20
- <label>Multibyte Email Settings</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>10</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>1</show_in_website>
25
- <show_in_store>1</show_in_store>
26
- <fields>
27
- <text_charset translate="label">
28
- <label>text mail character set</label>
29
- <frontend_type>text</frontend_type>
30
- <sort_order>10</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- </text_charset>
35
- <html_charset translate="label">
36
- <label>html mail character set</label>
37
- <frontend_type>text</frontend_type>
38
- <sort_order>10</sort_order>
39
- <show_in_default>1</show_in_default>
40
- <show_in_website>1</show_in_website>
41
- <show_in_store>1</show_in_store>
42
- </html_charset>
43
- <use_return_path translate="label">
44
- <label>use return path</label>
45
- <frontend_type>select</frontend_type>
46
- <source_model>adminhtml/system_config_source_yesno</source_model>
47
- <sort_order>12</sort_order>
48
- <show_in_default>1</show_in_default>
49
- <show_in_website>1</show_in_website>
50
- <show_in_store>1</show_in_store>
51
- </use_return_path>
52
- <return_path translate="label">
53
- <label>return path</label>
54
- <frontend_type>text</frontend_type>
55
- <sort_order>13</sort_order>
56
- <show_in_default>1</show_in_default>
57
- <show_in_website>1</show_in_website>
58
- <show_in_store>1</show_in_store>
59
- <depends>
60
- <use_return_path>1</use_return_path>
61
- </depends>
62
- </return_path>
63
- <use_reply_to translate="label">
64
- <label>use reply to</label>
65
- <frontend_type>select</frontend_type>
66
- <source_model>adminhtml/system_config_source_yesno</source_model>
67
- <sort_order>14</sort_order>
68
- <show_in_default>1</show_in_default>
69
- <show_in_website>1</show_in_website>
70
- <show_in_store>1</show_in_store>
71
- </use_reply_to>
72
- <reply_to translate="label">
73
- <label>reply to</label>
74
- <frontend_type>text</frontend_type>
75
- <sort_order>15</sort_order>
76
- <show_in_default>1</show_in_default>
77
- <show_in_website>1</show_in_website>
78
- <show_in_store>1</show_in_store>
79
- <depends>
80
- <use_reply_to>1</use_reply_to>
81
- </depends>
82
- </reply_to>
83
- </fields>
84
- </jpmail>
85
- </groups>
86
- </jpmail>
87
- <extsmtp translate="label" module="jpmail">
88
- <label>External Smtp Settings</label>
89
- <tab>jpmail</tab>
90
- <frontend_type>text</frontend_type>
91
- <sort_order>130</sort_order>
92
- <show_in_default>1</show_in_default>
93
- <show_in_website>1</show_in_website>
94
- <show_in_store>1</show_in_store>
95
- <groups>
96
- <extsmtp translate="label">
97
- <label>External Smtp Settings</label>
98
- <frontend_type>text</frontend_type>
99
- <sort_order>10</sort_order>
100
- <show_in_default>1</show_in_default>
101
- <show_in_website>1</show_in_website>
102
- <show_in_store>1</show_in_store>
103
- <fields>
104
- <use_external translate="label">
105
- <label>Use External SMTP</label>
106
- <frontend_type>select</frontend_type>
107
- <source_model>adminhtml/system_config_source_yesno</source_model>
108
- <sort_order>10</sort_order>
109
- <show_in_default>1</show_in_default>
110
- <show_in_website>1</show_in_website>
111
- <show_in_store>1</show_in_store>
112
- </use_external>
113
- <smtp_host translate="label">
114
- <label>SMTP Host</label>
115
- <frontend_type>text</frontend_type>
116
- <sort_order>11</sort_order>
117
- <show_in_default>1</show_in_default>
118
- <show_in_website>1</show_in_website>
119
- <show_in_store>1</show_in_store>
120
- </smtp_host>
121
- <smtp_port translate="label">
122
- <label>SMTP Port</label>
123
- <frontend_type>text</frontend_type>
124
- <sort_order>12</sort_order>
125
- <show_in_default>1</show_in_default>
126
- <show_in_website>1</show_in_website>
127
- <show_in_store>1</show_in_store>
128
- </smtp_port>
129
- <smtp_secure translate="label">
130
- <label>Use SSL</label>
131
- <frontend_type>select</frontend_type>
132
- <source_model>adminhtml/system_config_source_yesno</source_model>
133
- <sort_order>13</sort_order>
134
- <show_in_default>1</show_in_default>
135
- <show_in_website>1</show_in_website>
136
- <show_in_store>1</show_in_store>
137
- </smtp_secure>
138
- <smtp_user translate="label">
139
- <label>SMTP User</label>
140
- <frontend_type>text</frontend_type>
141
- <sort_order>14</sort_order>
142
- <show_in_default>1</show_in_default>
143
- <show_in_website>1</show_in_website>
144
- <show_in_store>1</show_in_store>
145
- </smtp_user>
146
- <smtp_password translate="label">
147
- <label>SMTP Password</label>
148
- <frontend_type>password</frontend_type>
149
- <sort_order>15</sort_order>
150
- <show_in_default>1</show_in_default>
151
- <show_in_website>1</show_in_website>
152
- <show_in_store>1</show_in_store>
153
- </smtp_password>
154
- </fields>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  </extsmtp>
156
- </groups>
157
- </extsmtp>
158
- </sections>
159
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <jpmail translate="label" module="jpmail">
5
+ <label>multibyte email setting</label>
6
+ <sort_order>400</sort_order>
7
+ </jpmail>
8
+ </tabs>
9
+ <sections>
10
+ <jpmail translate="label" module="jpmail">
11
+ <label>Multibyte Email Settings</label>
12
+ <tab>jpmail</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>120</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <jpmail translate="label">
20
+ <label>Multibyte Email Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <text_charset translate="label">
28
+ <label>text mail character set</label>
29
+ <frontend_type>text</frontend_type>
30
+ <sort_order>10</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </text_charset>
35
+ <html_charset translate="label">
36
+ <label>html mail character set</label>
37
+ <frontend_type>text</frontend_type>
38
+ <sort_order>10</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ </html_charset>
43
+ <use_return_path translate="label">
44
+ <label>use return path</label>
45
+ <frontend_type>select</frontend_type>
46
+ <source_model>adminhtml/system_config_source_yesno</source_model>
47
+ <sort_order>12</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ </use_return_path>
52
+ <!--<return_path translate="label">-->
53
+ <!--<label>return path</label>-->
54
+ <!--<frontend_type>text</frontend_type>-->
55
+ <!--<sort_order>13</sort_order>-->
56
+ <!--<show_in_default>1</show_in_default>-->
57
+ <!--<show_in_website>1</show_in_website>-->
58
+ <!--<show_in_store>1</show_in_store>-->
59
+ <!--<depends>-->
60
+ <!--<use_return_path>1</use_return_path>-->
61
+ <!--</depends>-->
62
+ <!--</return_path>-->
63
+ <use_reply_to translate="label">
64
+ <label>use reply to</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_yesno</source_model>
67
+ <sort_order>14</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ </use_reply_to>
72
+ <reply_to translate="label">
73
+ <label>reply to</label>
74
+ <frontend_type>text</frontend_type>
75
+ <sort_order>15</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>1</show_in_store>
79
+ <depends>
80
+ <use_reply_to>1</use_reply_to>
81
+ </depends>
82
+ </reply_to>
83
+ <name_suffix translate="label">
84
+ <label>Name Suffix</label>
85
+ <frontend_type>text</frontend_type>
86
+ <sort_order>16</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>1</show_in_store>
90
+ </name_suffix>
91
+ </fields>
92
+ </jpmail>
93
+ </groups>
94
+ </jpmail>
95
+ <extsmtp translate="label" module="jpmail">
96
+ <label>External Smtp Settings</label>
97
+ <tab>jpmail</tab>
98
+ <frontend_type>text</frontend_type>
99
+ <sort_order>130</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ <groups>
104
+ <extsmtp translate="label">
105
+ <label>External Smtp Settings</label>
106
+ <frontend_type>text</frontend_type>
107
+ <sort_order>10</sort_order>
108
+ <show_in_default>1</show_in_default>
109
+ <show_in_website>1</show_in_website>
110
+ <show_in_store>1</show_in_store>
111
+ <fields>
112
+ <use_external translate="label">
113
+ <label>Use External SMTP</label>
114
+ <frontend_type>select</frontend_type>
115
+ <source_model>adminhtml/system_config_source_yesno</source_model>
116
+ <sort_order>10</sort_order>
117
+ <show_in_default>1</show_in_default>
118
+ <show_in_website>1</show_in_website>
119
+ <show_in_store>1</show_in_store>
120
+ </use_external>
121
+ <smtp_host translate="label">
122
+ <label>SMTP Host</label>
123
+ <frontend_type>text</frontend_type>
124
+ <sort_order>11</sort_order>
125
+ <show_in_default>1</show_in_default>
126
+ <show_in_website>1</show_in_website>
127
+ <show_in_store>1</show_in_store>
128
+ </smtp_host>
129
+ <smtp_port translate="label">
130
+ <label>SMTP Port</label>
131
+ <frontend_type>text</frontend_type>
132
+ <sort_order>12</sort_order>
133
+ <show_in_default>1</show_in_default>
134
+ <show_in_website>1</show_in_website>
135
+ <show_in_store>1</show_in_store>
136
+ </smtp_port>
137
+ <smtp_secure translate="label">
138
+ <label>Use Secure</label>
139
+ <frontend_type>select</frontend_type>
140
+ <source_model>adminhtml/system_config_source_yesno</source_model>
141
+ <sort_order>13</sort_order>
142
+ <show_in_default>1</show_in_default>
143
+ <show_in_website>1</show_in_website>
144
+ <show_in_store>1</show_in_store>
145
+ </smtp_secure>
146
+ <smtp_secure_mode translate="label">
147
+ <label>Secure Mode</label>
148
+ <frontend_type>select</frontend_type>
149
+ <source_model>jpmail/system_secure</source_model>
150
+ <sort_order>14</sort_order>
151
+ <show_in_default>1</show_in_default>
152
+ <show_in_website>1</show_in_website>
153
+ <show_in_store>1</show_in_store>
154
+ <depends>
155
+ <smtp_secure>1</smtp_secure>
156
+ </depends>
157
+ </smtp_secure_mode>
158
+ <smtp_user translate="label">
159
+ <label>SMTP User</label>
160
+ <frontend_type>text</frontend_type>
161
+ <sort_order>15</sort_order>
162
+ <show_in_default>1</show_in_default>
163
+ <show_in_website>1</show_in_website>
164
+ <show_in_store>1</show_in_store>
165
+ </smtp_user>
166
+ <smtp_password translate="label">
167
+ <label>SMTP Password</label>
168
+ <frontend_type>password</frontend_type>
169
+ <sort_order>16</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>1</show_in_website>
172
+ <show_in_store>1</show_in_store>
173
+ </smtp_password>
174
+ </fields>
175
+ </extsmtp>
176
+ </groups>
177
  </extsmtp>
178
+ <newsletter>
179
+ <groups>
180
+ <delivery translate="label">
181
+ <label>Newsletter Delivery Settings</label>
182
+ <frontend_type>text</frontend_type>
183
+ <sort_order>10</sort_order>
184
+ <show_in_default>1</show_in_default>
185
+ <show_in_website>1</show_in_website>
186
+ <show_in_store>1</show_in_store>
187
+ <fields>
188
+ <count translate="label">
189
+ <label>Number of letters sending at once</label>
190
+ <frontend_type>text</frontend_type>
191
+ <sort_order>1</sort_order>
192
+ <show_in_default>1</show_in_default>
193
+ <show_in_website>1</show_in_website>
194
+ <show_in_store>1</show_in_store>
195
+ </count>
196
+ </fields>
197
+ </delivery>
198
+ </groups>
199
+ </newsletter>
200
+ </sections>
201
+ </config>
app/design/frontend/base/default/layout/jpmail.xml ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+
4
+ <jpmail_sales_email_order_items>
5
+ <block type="sales/order_email_items" name="items" template="rack_jpmail/order/items.phtml">
6
+ <action method="addItemRender">
7
+ <type>default</type>
8
+ <block>sales/order_email_items_order_default</block>
9
+ <template>rack_jpmail/order/items/order/default.phtml</template>
10
+ </action>
11
+ <action method="addItemRender">
12
+ <type>grouped</type>
13
+ <block>sales/order_email_items_order_grouped</block>
14
+ <template>rack_jpmail/order/items/order/default.phtml</template>
15
+ </action>
16
+ <block type="sales/order_totals" name="order_totals" template="rack_jpmail/order/totals.phtml">
17
+ <action method="setLabelProperties">
18
+ <value>colspan="3" align="right" style="padding:3px 9px"</value>
19
+ </action>
20
+ <action method="setValueProperties">
21
+ <value>align="right" style="padding:3px 9px"</value>
22
+ </action>
23
+ <block type="tax/sales_order_tax" name="tax" template="rack_jpmail/order/tax.phtml">
24
+ <action method="setIsPlaneMode">
25
+ <value>1</value>
26
+ </action>
27
+ </block>
28
+ </block>
29
+ </block>
30
+ <block type="core/text_list" name="additional.product.info"/>
31
+ </jpmail_sales_email_order_items>
32
+
33
+ <jpmail_sales_email_order_invoice_items>
34
+ <block type="sales/order_email_invoice_items" name="items" template="rack_jpmail/order/invoice/items.phtml">
35
+ <action method="addItemRender">
36
+ <type>default</type>
37
+ <block>sales/order_email_items_default</block>
38
+ <template>rack_jpmail/order/items/invoice/default.phtml</template>
39
+ </action>
40
+ <action method="addItemRender">
41
+ <type>grouped</type>
42
+ <block>sales/order_email_items_order_grouped</block>
43
+ <template>rack_jpmail/order/items/invoice/default.phtml</template>
44
+ </action>
45
+ <block type="sales/order_invoice_totals" name="invoice_totals" template="rack_jpmail/order/totals.phtml">
46
+ <action method="setLabelProperties">
47
+ <value>colspan="3" align="right" style="padding:3px 9px"</value>
48
+ </action>
49
+ <action method="setValueProperties">
50
+ <value>align="right" style="padding:3px 9px"</value>
51
+ </action>
52
+ <block type="tax/sales_order_tax" name="tax" template="rack_jpmail/order/tax.phtml"/>
53
+ </block>
54
+ </block>
55
+ <block type="core/text_list" name="additional.product.info"/>
56
+ </jpmail_sales_email_order_invoice_items>
57
+
58
+ <jpmail_sales_email_order_shipment_items>
59
+ <block type="sales/order_email_shipment_items" name="items" template="rack_jpmail/order/shipment/items.phtml">
60
+ <action method="addItemRender">
61
+ <type>default</type>
62
+ <block>sales/order_email_items_default</block>
63
+ <template>rack_jpmail/order/items/shipment/default.phtml</template>
64
+ </action>
65
+ </block>
66
+ <block type="core/text_list" name="additional.product.info"/>
67
+ </jpmail_sales_email_order_shipment_items>
68
+
69
+ <jpmail_sales_email_order_creditmemo_items>
70
+ <block type="sales/order_email_creditmemo_items" name="items" template="rack_jpmail/order/creditmemo/items.phtml">
71
+ <action method="addItemRender">
72
+ <type>default</type>
73
+ <block>sales/order_email_items_default</block>
74
+ <template>rack_jpmail/order/items/creditmemo/default.phtml</template>
75
+ </action>
76
+ <action method="addItemRender">
77
+ <type>grouped</type>
78
+ <block>sales/order_email_items_order_grouped</block>
79
+ <template>rack_jpmail/order/items/creditmemo/default.phtml</template>
80
+ </action>
81
+ <block type="sales/order_creditmemo_totals" name="creditmemo_totals" template="rack_jpmail/order/totals.phtml">
82
+ <action method="setLabelProperties">
83
+ <value>colspan="3" align="right" style="padding:3px 9px"</value>
84
+ </action>
85
+ <action method="setValueProperties">
86
+ <value>align="right" style="padding:3px 9px"</value>
87
+ </action>
88
+ <block type="tax/sales_order_tax" name="tax" template="rack_jpmail/order/tax.phtml"/>
89
+ </block>
90
+ </block>
91
+ <block type="core/text_list" name="additional.product.info"/>
92
+ </jpmail_sales_email_order_creditmemo_items>
93
+ </layout>
app/design/frontend/base/default/template/rack_jpmail/order/creditmemo/items.phtml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_creditmemo = $this->getCreditmemo() ?>
2
+ <?php $_order = $this->getOrder() ?>
3
+ <?php if ($_creditmemo && $_order): ?>
4
+ <?php $i=0; $count = 1; foreach ($_creditmemo->getAllItems() as $_item): ?>
5
+ <?php if($_item->getOrderItem()->getParentItem()) continue; else $i++; ?>
6
+ <?php if($count > 1):?>
7
+ ----------------
8
+ <?php endif;?>
9
+ <?php echo $this->getItemHtml($_item) . "\r\n" ?>
10
+ <?php $count++ ?>
11
+ <?php $qty += $_item->getQty()*1;?>
12
+ <?php endforeach; ?>
13
+ ****************************************************************
14
+ 合計商品数: <?php echo ($qty); ?>(個)
15
+ <?php echo $this->getChildHtml('creditmemo_totals');?>
16
+ <?php endif; ?>
app/design/frontend/base/default/template/rack_jpmail/order/delivery.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php $_order = $this->getOrder();
2
+ $method = $_order->getPayment()->getMethod();
3
+ if (($method != "paygent_cvs") && ($method != "paygent_atm")){
4
+ $message = Mage::getModel('core/variable')
5
+ ->loadByCode('delivery_message');
6
+ $value = $message->getValue(Mage_Core_Model_Variable::TYPE_TEXT);
7
+ echo $value . "\r\n";
8
+ } ?>
app/design/frontend/base/default/template/rack_jpmail/order/invoice/items.phtml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_invoice = $this->getInvoice() ?>
2
+ <?php $_order = $this->getOrder() ?>
3
+ <?php if ($_invoice && $_order): ?>
4
+ <?php $i=0; $count = 1; foreach ($_invoice->getAllItems() as $_item): ?>
5
+ <?php if($_item->getOrderItem()->getParentItem()) continue; else $i++; ?>
6
+ <?php if($count > 1):?>
7
+ ----------------
8
+ <?php endif;?>
9
+ <?php echo $this->getItemHtml($_item) . "\r\n" ?>
10
+ <?php $count++ ?>
11
+ <?php $qty += $_item->getQtyOrdered()*1;?>
12
+ <?php endforeach; ?>
13
+ ****************************************************************
14
+ 合計商品数: <?php echo ($qty); ?>(個)
15
+ <?php echo $this->getChildHtml('invoice_totals')?>
16
+ <?php endif; ?>
app/design/frontend/base/default/template/rack_jpmail/order/items.phtml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_order = $this->getOrder() ?>
2
+ <?php $i=0; $qty=0; $count = 1; foreach ($_order->getAllItems() as $_item): ?>
3
+ <?php if($_item->getParentItem()) continue; else $i++; ?>
4
+ <?php if($count > 1):?>
5
+ ----------------
6
+ <?php endif;?>
7
+ <?php echo $this->getItemHtml($_item) . "\r\n" ?>
8
+ <?php $count++ ?>
9
+ <?php $qty += $_item->getQtyOrdered()*1;?>
10
+ <?php endforeach; ?>
11
+ ****************************************************************
12
+ 合計商品数: <?php echo ($qty); ?>(個)
13
+ <?php echo $this->getChildHtml('order_totals') ?>
app/design/frontend/base/default/template/rack_jpmail/order/items/creditmemo/default.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_item = $this->getItem() ;
3
+ $_order = $this->getItem()->getOrder();
4
+ $price = 0;
5
+ $qyt = $_item->getQty()*1;
6
+ $total = 0;
7
+ echo ' '.$this->htmlEscape($_item->getName())." (".$this->htmlEscape($this->getSku($_item)).")";
8
+ if ($this->getItemOptions()){
9
+ foreach ($this->getItemOptions() as $option){
10
+ echo "\r\n ".$option['label'].": ".$option['value'];
11
+ }
12
+ }
13
+ $total = $this->helper('checkout')->getSubtotalInclTax($_item);
14
+ $price = $_order->formatPriceTxt($total/$qyt);
15
+ $price_str = sprintf("\r\n 価格 %s × %s(個) = %s", $price, $qyt, $_order->formatPriceTxt($total));
16
+ echo $price_str . ' (税込)';
17
+ ?>
app/design/frontend/base/default/template/rack_jpmail/order/items/invoice/default.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_item = $this->getItem() ;
3
+ $_order = $this->getItem()->getOrder();
4
+ $price = 0;
5
+ $qyt = $_item->getQty()*1;
6
+ $total = 0;
7
+ echo ' '.$this->htmlEscape($_item->getName())." (".$this->htmlEscape($this->getSku($_item)).")";
8
+ if ($this->getItemOptions()){
9
+ foreach ($this->getItemOptions() as $option){
10
+ echo "\r\n ".$option['label'].": ".$option['value'];
11
+ }
12
+ }
13
+ $total = $this->helper('checkout')->getSubtotalInclTax($_item);
14
+ $price = $_order->formatPriceTxt($total/$qyt);
15
+ $price_str = sprintf("\r\n 価格 %s × %s(個) = %s", $price, $qyt, $_order->formatPriceTxt($total));
16
+ echo $price_str . ' (税込)';
17
+ ?>
app/design/frontend/base/default/template/rack_jpmail/order/items/order/default.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_item = $this->getItem() ;
3
+ $_order = $this->getItem()->getOrder();
4
+ $price = 0;
5
+ $qyt = $_item->getQtyOrdered()*1;
6
+ $total = 0;
7
+ echo ' '.$this->htmlEscape($_item->getName())." (".$this->htmlEscape($this->getSku($_item)).")";
8
+ if ($this->getItemOptions()){
9
+ foreach ($this->getItemOptions() as $option){
10
+ echo "\r\n ".$option['label'].": ".$option['value'];
11
+ }
12
+ }
13
+ $total = $this->helper('checkout')->getSubtotalInclTax($_item);
14
+ $price = $_order->formatPriceTxt($total/$qyt);
15
+ $price_str = sprintf("\r\n 価格 %s × %s(個) = %s", $price, $qyt, $_order->formatPriceTxt($total));
16
+ echo $price_str . ' (税込)';
17
+ ?>
app/design/frontend/base/default/template/rack_jpmail/order/items/shipment/default.phtml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_item = $this->getItem() ;
3
+ $_order = $this->getItem()->getOrder();
4
+ $price = 0;
5
+ $qyt = $_item->getQtyOrdered()*1;
6
+ $total = 0;
7
+ echo ' '.$this->htmlEscape($_item->getName())." (".$this->htmlEscape($_item->getSku()).")";
8
+ if ($_item->getItemOptions()){
9
+ foreach ($_item->getItemOptions() as $option){
10
+ echo "\r\n ".$option['label'].": ".$option['value'];
11
+ }
12
+ }
13
+ $total = $this->helper('checkout')->getSubtotalInclTax($_item);
14
+ $price = $_order->formatPriceTxt($total/$qyt);
15
+ $price_str = sprintf("\r\n 価格 %s × %s(個) = %s", $price, $qyt, $_order->formatPriceTxt($total));
16
+ echo $price_str . ' (税込)';
17
+ ?>
app/design/frontend/base/default/template/rack_jpmail/order/payment.phtml ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_order = $this->getOrder();
2
+ $orderId = $_order->getId();
3
+ $method = $_order->getPayment()->getMethod();
4
+
5
+ if ($method == "paygent_cvs"){
6
+ $cvs_header = Mage::getModel('core/variable')
7
+ ->loadByCode('payment_cvs_header');
8
+ $value = $cvs_header->getValue(Mage_Core_Model_Variable::TYPE_TEXT);
9
+ echo $value . "\r\n\r\n";
10
+
11
+ $cvsCode = explode("-", $_order->getPayment()->getCvsCompanyId());
12
+ $cvsName = array();
13
+ foreach ($cvsCode as $value) {
14
+ switch($value) {
15
+ case '00C016' :
16
+ $cvsName[] = 'セイコーマート';
17
+ break;
18
+ case '00C002' :
19
+ $cvsName[] = 'ローソン';
20
+ break;
21
+ case '00C004' :
22
+ $cvsName[] = 'ミニストップ';
23
+ break;
24
+ case '00C006' :
25
+ $cvsName[] = 'サンクス';
26
+ break;
27
+ case '00C007' :
28
+ $cvsName[] = 'サークルK';
29
+ break;
30
+ case '00C014' :
31
+ $cvsName[] = 'デイリーヤマザキ';
32
+ break;
33
+ case '00C001' :
34
+ $cvsName[] = 'セブンイレブン';
35
+ break;
36
+ case '00C005' :
37
+ $cvsName[] = 'ファミリーマート';
38
+ break;
39
+
40
+ }
41
+ //$cvsName[] = Mage::helper('paygent')->__(Mage::getModel('paygent/source_cvstype')->getCvsType($value));
42
+ }
43
+ echo "・お支払先コンビニ名:" . join(", ", $cvsName) . "\r\n";
44
+ switch($_order->getPayment()->getCvsCompanyId()) {
45
+ case '00C016' :
46
+ echo "・お支払い受付番号:";
47
+ break;
48
+ case '00C001' :
49
+ echo "・払込票番号:";
50
+ break;
51
+ case '00C005' :
52
+ echo "・企業コード:20020\r\n";
53
+ echo "・収納番号:";
54
+ break;
55
+ default :
56
+ echo "・お客様番号(オンライン決済番号):";
57
+ break;
58
+ }
59
+
60
+ if(in_array('00C005', $cvsCode)) {
61
+ list($comCode, $receiptNum) = explode('-', $_order->getPayment()->getCvsReceiptNum());
62
+ echo $receiptNum . "\r\n";
63
+ } else {
64
+ echo $_order->getPayment()->getCvsReceiptNum() . "\r\n";
65
+ }
66
+
67
+ if(in_array('00C002', $cvsCode)) {
68
+ echo "・確認番号:400008\r\n";
69
+ }
70
+
71
+ if ($receiptLimit = $_order->getPayment()->getPayLimitDate()) {
72
+ echo "・お支払期限日:" . preg_replace('/^(\d\d\d\d)(\d\d)(\d\d)$/', '$1/$2/$3', $receiptLimit) . "\r\n";
73
+ }
74
+
75
+ if(in_array('00C001', $cvsCode)) {
76
+ echo "・確認URL:". " ".$_order->getPayment()->getCvsReceiptUrl() . "\r\n(確認URLは携帯からはご覧いただけません。PC環境でご確認ください)\r\n";
77
+ }
78
+
79
+ $cvs_footer = Mage::getModel('core/variable')
80
+ ->loadByCode('payment_cvs_footer');
81
+ $value = $cvs_footer->getValue(Mage_Core_Model_Variable::TYPE_TEXT);
82
+ echo "\r\n" . $value . "\r\n";
83
+ }
84
+
85
+ if ($method == "paygent_atm"){
86
+ $atm_header = Mage::getModel('core/variable')
87
+ ->loadByCode('payment_payeasy_header');
88
+ $value = $atm_header->getValue(Mage_Core_Model_Variable::TYPE_TEXT);
89
+ echo $value . "\r\n\r\n";
90
+
91
+ echo "・収納機関番号:" . $_order->getPayment()->getAtmPayCenterNumber() . "\r\n";
92
+ echo "・お客様番号:" . $_order->getPayment()->getAtmCustomerNumber() . "\r\n";
93
+ echo "・確認番号:" . $_order->getPayment()->getAtmConfNumber() . "\r\n";
94
+ echo "・お支払期限日:" . preg_replace('/^(\d\d\d\d)(\d\d)(\d\d)$/', '$1/$2/$3', $_order->getPayment()->getPaymentLimitDate()) . "\r\n\r\n";
95
+
96
+ $atm_footer = Mage::getModel('core/variable')
97
+ ->loadByCode('payment_payeasy_footer');
98
+ $value = $atm_footer->getValue(Mage_Core_Model_Variable::TYPE_TEXT);
99
+ echo $value . "\r\n";
100
+ }
app/design/frontend/base/default/template/rack_jpmail/order/shipment/items.phtml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $_shipment = $this->getShipment() ?>
2
+ <?php $_order = $this->getOrder() ?>
3
+ <?php if ($_shipment && $_order): ?>
4
+ <?php $i=0; $count = 1; foreach ($_order->getAllItems() as $_item): ?>
5
+ <?php if($_item->getParentItem()) continue; else $i++; ?>
6
+ <?php if($count > 1):?>
7
+ ----------------
8
+ <?php endif;?>
9
+ <?php echo $this->getItemHtml($_item) . "\r\n" ?>
10
+ <?php $count++ ?>
11
+ <?php $qty += $_item->getQtyOrdered()*1;?>
12
+ <?php endforeach; ?>
13
+ ****************************************************************
14
+ 合計商品数: <?php echo $qty; ?>(個)
15
+ <?php echo $this->getChildHtml('order_totals'); ?>
16
+ <?php endif; ?>
app/design/frontend/base/default/template/rack_jpmail/order/shipment/totals.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php $_order = $this->getOrder();?>
2
+ <?php foreach ($this->getTotals() as $_code => $_total): ?>
3
+ <?php if ($_total->getBlockName()): ?>
4
+ <?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
5
+ <?php else:?>
6
+ <?php echo sprintf('%-10s', strip_tags($_total->getLabel())) ?>: <?php echo strip_tags($this->formatValue($_total)) ?><?php echo("\r\n") ?>
7
+ <?php endif?>
8
+ <?php endforeach?>
app/design/frontend/base/default/template/rack_jpmail/order/shipment/track.phtml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-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
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ $_shipment=$this->getShipment();
29
+ $_order=$this->getOrder();
30
+ if ($_shipment && $_order && $_shipment->getAllTracks()){
31
+ foreach ($_shipment->getAllTracks() as $_item){
32
+ echo $this->__('Carrier Company') . ":" . $_item->getTitle() ."\r\n";
33
+ echo $this->__('Tracking Number') .":". $_item->getNumber()."\r\n";
34
+ }
35
+ }
36
+ ?>
app/design/frontend/base/default/template/rack_jpmail/order/tax.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_order = $this->getOrder();
3
+ $_source = $this->getSource();
4
+ $_fullInfo = $_order->getFullTaxInfo();
5
+ global $taxIter; $taxIter++;
6
+ ?>
7
+ <?php ?>
8
+ <?php if ($this->displayFullSummary()): ?>
9
+ <?php $isTop = 1; ?>
10
+ <?php if ($_fullInfo) foreach ($_fullInfo as $info): ?>
11
+ <?php if (isset($info['hidden']) && $info['hidden']) continue; ?>
12
+ <?php
13
+ $percent = $info['percent'];
14
+ $amount = $info['amount'];
15
+ $rates = $info['rates'];
16
+ $isFirst = 1;
17
+ ?>
18
+ <?php foreach ($rates as $rate): ?>
19
+ <?php echo $this->escapeHtml($rate['title']); ?>:
20
+ <?php if (!is_null($rate['percent'])): ?>
21
+ (<?php echo (float)$rate['percent']; ?>%)
22
+ <?php endif; ?>
23
+ <?php if ($isFirst): ?>
24
+ <?php echo strip_tags($_order->formatPrice($amount)); ?>
25
+ <?php endif; ?>
26
+ <?php $isFirst = 0; ?>
27
+ <?php $isTop = 0; ?>
28
+ <?php echo("\r\n") ?>
29
+ <?php endforeach; ?>
30
+ <?php echo("\r\n") ?>
31
+ <?php endforeach; ?>
32
+ <?php endif;?>
33
+ <?php echo sprintf('%-10s', $this->__('Tax')); ?>:<?php echo strip_tags($_order->formatPrice($_source->getTaxAmount())) ?><?php echo("\r\n") ?>
app/design/frontend/base/default/template/rack_jpmail/order/totals.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php foreach ($this->getTotals() as $_code => $_total): ?>
2
+ <?php if ($_total->getBlockName()): ?>
3
+ <?php echo $this->getChildHtml($_total->getBlockName(), false); ?>
4
+ <?php else:?>
5
+ <?php echo sprintf('%-10s', strip_tags($_total->getLabel())) ?>: <?php echo strip_tags($this->formatValue($_total)) ?><?php echo("\r\n") ?>
6
+ <?php endif?>
7
+ <?php endforeach?>
app/locale/ja_JP/Rack_Jpmail.csv CHANGED
@@ -6,3 +6,45 @@
6
  "return path","return path"
7
  "use reply to","Reply-toを使用する"
8
  "reply to","reply to"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  "return path","return path"
7
  "use reply to","Reply-toを使用する"
8
  "reply to","reply to"
9
+ "Notice: This configration affects only for newsletter.","注意:この設定はニュースレターにのみ影響します。"
10
+ "External Smtp Settings","外部SMTPサーバ設定"
11
+ "Use External SMTP","外部SMTPサーバを使用する"
12
+ "SMTP Host","SMTPホスト"
13
+ "SMTP Port","SMTPポート"
14
+ "Use SSL","SSLを使用する"
15
+ "SMTP User","SMTPユーザー"
16
+ "SMTP Password","SMTPパスワード"
17
+ "New account(text)","新しいアカウント(テキスト)"
18
+ "New account confirmation key(text)","新しいアカウント確認キー(テキスト)"
19
+ "New account confirmed(text)","新しいアカウント確認(テキスト)"
20
+ "Forgot Password(text)","パスワード忘れ(テキスト)"
21
+ "Remind Password(text)","パスワード再発行(テキスト)"
22
+ "Newsletter subscription confirmation(text)","ニュースレター購読確認(テキスト)"
23
+ "Newsletter subscription success(text)","ニュースレター購読完了(テキスト)"
24
+ "Newsletter unsubscription success(text)","ニュースレター購読解除完了(テキスト)"
25
+ "Product stock alert(text)","商品在庫通知(テキスト)"
26
+ "Product price alert(text)","商品価格通知(テキスト)"
27
+ "Product alerts Cron error(text)","商品通知Cronエラー(テキスト)"
28
+ "New Order(text)","新しい注文(テキスト)"
29
+ "New Order for Guest(text)","ゲスト用の新しい注文(テキスト)"
30
+ "Order Update(text)","注文更新(テキスト)"
31
+ "Order Update for Guest(text)","ゲスト用の注文更新(テキスト)"
32
+ "New Invoice(text)","新しい請求書(テキスト)"
33
+ "New Invoice for Guest(text)","ゲスト用の新しい請求書(テキスト)"
34
+ "Invoice Update(text)","請求書更新(テキスト)"
35
+ "Invoice Update for Guest(text)","ゲスト用の請求書更新(テキスト)"
36
+ "New Credit Memo(text)","新しいクレジットメモ(テキスト)"
37
+ "New Credit Memo for Guest(text)","ゲスト用の新しいクレジットメモ(テキスト)"
38
+ "Credit Memo Update(text)","クレジットメモ更新(テキスト)"
39
+ "Credit Memo Update for Guest(text)","ゲスト用のクレジットメモ更新(テキスト)"
40
+ "New Shipment(text)","新しい配送(テキスト)"
41
+ "New Shipment for Guest(text)","ゲスト用の新しい配送(テキスト)"
42
+ "Shipment Update(text)","配送の更新(テキスト)"
43
+ "Shipment Update for Guest(text)","ゲスト用の配送の更新(テキスト)"
44
+ "Share Wishlist(text)","ほしい物リストの共有(テキスト)"
45
+ "Name suffix","宛先の敬称"
46
+ "Use Secure","セキュア通信を行う"
47
+ "Secure Mode","セキュア通信モード"
48
+ "Newsletter Delivery Settings","ニュースレター配信設定"
49
+ "Number of letters sending at once","1回のバッチで配信する件数"
50
+ "Name Suffix","敬称"
app/locale/ja_JP/template/email/jpmail/account_new.html ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject ようこそ、{{var customer.name}}様! @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$customer.name":"Customer Name",
6
+ "store url=\"customer/account/\"":"Customer Account Url",
7
+ "var customer.email":"Customer Email",
8
+ "htmlescape var=$customer.password":"Customer Password"}
9
+ @-->
10
+ {{htmlescape var=$customer.name}} 様
11
+
12
+ {{var store.getFrontendName()}} へようこそ。私どものサイトにログインしていただくには、
13
+ すべてのページの上部にある「ログイン」または「マイアカウント」をクリックし、メールアドレスとパスワードを入力してください。
14
+
15
+ ログイン画面が表示されたら、次の値を入力してください:
16
+
17
+ メールアドレス: {{var customer.email}}
18
+ パスワード: {{htmlescape var=$customer.password}}
19
+
20
+ ログインされますと以下の機能をご使用いただけます:
21
+
22
+ ・購入する際、より簡単にご注文いただけます。
23
+ ・ご注文の状況をいつでもご確認できます。
24
+ ・過去のご注文履歴を見ることができます。
25
+ ・アカウントの情報を変更することができます。
26
+ ・パスワードを変更することができます。
27
+ ・複数の住所を保存できます (複数の家族や友人に配送する場合に!)
28
+
29
+
30
+ アカウントに対するご質問やその他問題がありましたら、{{config path='trans_email/ident_support/email'}}、
31
+ または電話番号 {{config path='general/store_information/phone'}} まで、お気軽にお問い合わせください。
32
+
33
+ ありがとうございました。
34
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/account_new_confirmation.html ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject アカウントを認証してください: {{var customer.name}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "store url=\"customer/account/\"":"Customer Account Url",
6
+ "htmlescape var=$customer.name":"Customer Name",
7
+ "var customer.email":"Customer Email",
8
+ "store url=\"customer/account/confirm/\" _query_id=$customer.id _query_key=$customer.confirmation _query_back_url=$back_url":"Confirmation Url",
9
+ "htmlescape var=$customer.password":"Customer password"}
10
+ @-->
11
+ {{htmlescape var=$customer.name}} 様
12
+
13
+ ログインする前にあなたのメールアドレス{{var customer.email}} の認証をお願い致します。
14
+ メールアドレスの認証とログインするために、以下のURLをクリックしてください。このリンクは一度のみ有効です。
15
+
16
+ {{store url="customer/account/confirm/" _query_id=$customer.id _query_key=$customer.confirmation _query_back_url=$back_url}}
17
+
18
+ ログインする様メッセージが表示されたら、次の値を入力してください:
19
+
20
+ メールアドレス: {{var customer.email}}
21
+ パスワード: {{htmlescape var=$customer.password}}
22
+
23
+ アカウントに対するご質問やその他問題がありましたら、{{config path='trans_email/ident_support/email'}}、
24
+ または電話番号 {{config path='general/store_information/phone'}} まで、お気軽にお問い合わせください。
25
+
26
+ ありがとうございました。
27
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/account_new_confirmed.html ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject ようこそ、{{var customer.name}} 様! @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$customer.name":"Customer Name",
6
+ "store url=\"customer/account/\"":"Customer Account Url"}
7
+ @-->
8
+ {{var store.getFrontendName()}} へようこそ。私どものサイトにログインしていただくには、
9
+ すべてのページの上部にある「ログイン」または「マイアカウント」をクリックし、メールアドレスとパスワードを入力してください。
10
+
11
+ ログイン画面が表示されたら、次の値を入力してください:
12
+
13
+ メールアドレス: {{var customer.email}}
14
+ パスワード: {{htmlescape var=$customer.password}}
15
+
16
+ ログインされますと以下の機能をご使用いただけます:
17
+
18
+ ・購入する際、より簡単にご注文いただけます。
19
+ ・ご注文の状況をいつでもご確認できます。
20
+ ・過去のご注文履歴を見ることができます。
21
+ ・アカウントの情報を変更することができます。
22
+ ・パスワードを変更することができます。
23
+ ・複数の住所を保存できます (複数の家族や友人に配送する場合に!)
24
+
25
+ アカウントに対するご質問やその他問題がありましたら、{{config path='trans_email/ident_support/email'}}、
26
+ または電話番号 {{config path='general/store_information/phone'}} まで、お気軽にお問い合わせください。
27
+
28
+ ありがとうございました。
29
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/account_password_reset_confirmation.html ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject Password Reset Confirmation for {{var customer.name}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$customer.name":"Customer Name",
6
+ "store url=\"customer/account/resetpassword/\" _query_id=$customer.id _query_token=$customer.rp_token":"Reset Password URL"}
7
+ @-->
8
+ {{htmlescape var=$customer.name}}様
9
+
10
+ お客様のアカウントに対し、パスワード変更のリクエストが行われました。
11
+ お客様がパスワード変更のリクエストを出された場合は、下記のリンクをクリックしてパスワードをリセットしてください
12
+
13
+ {{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}
14
+ (リンクをクリックしてもうまくページが開かない場合は、リンクをコピーしてブラウザのアドレス欄にペーストしてください。)
15
+
16
+ ※このメールにお心当たりがない場合は、このメールを無視してください。
17
+
18
+ ありがとうございました。
19
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/newsletter_subscr_confirm.html ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject ニュースレター購読確認 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$customer.name":"Customer Name",
6
+ "var subscriber.getConfirmationLink()":"Subscriber Confirmation Url"}
7
+ @-->
8
+ <!--@styles
9
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
10
+ @-->
11
+ ニュースレターをご購読いただきありがとうございます。
12
+
13
+ ニュースレターの購読を始めるには以下のリンクをクリックして購読の認証をしていただく必要があります。
14
+
15
+ {{var subscriber.getConfirmationLink()}}
16
+
17
+ ありがとうございました。
18
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/newsletter_subscr_success.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@subject ニュースレター購読完了 @-->
2
+ 正常にニュースレターを購読しました。
app/locale/ja_JP/template/email/jpmail/newsletter_unsub_success.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@subject ニュースレター解除完了 @-->
2
+ 正常にニュースレターを解除しました。
app/locale/ja_JP/template/email/jpmail/password_new.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject 新しいパスワード: {{var customer.name}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "store url=\"customer/account/\"":"Customer Account Url",
6
+ "htmlescape var=$customer.name":"Customer Name",
7
+ "htmlescape var=$customer.password":"Customer New Password"}
8
+ @-->
9
+ {{htmlescape var=$customer.name}} 様
10
+
11
+ 新しいパスワードが発行されました。
12
+
13
+ あなたの新しいパスワード: {{htmlescape var=$customer.password}}
14
+
15
+
16
+ パスワードは下記のマイページからいつでも変更が可能です。
17
+
18
+ {{store url="adminhtml/system_account/"}}
19
+
20
+ ありがとうございました。
21
+ {{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/product_price_alert.html ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <!--@subject 商品金額変更通知 @-->
2
+ <!--@vars
3
+ {"var customerName":"Customer Name",
4
+ "var alertGrid":"Alert Data Grid"}
5
+ @-->
6
+ こんにちは {{var customerName}} 様
7
+
8
+ {{var alertGrid}}
app/locale/ja_JP/template/email/jpmail/product_share.html ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {* This is a comment block
2
+
3
+ Available vars in this template:
4
+ - name Recipient name
5
+ - email Recipient Email address
6
+ - product_name Product name
7
+ - product_url Url for product
8
+ - product_image Url for product small image (75 px)
9
+ - message Sender custom message
10
+ - sender_name Sender name
11
+ - sender_email Sender email
12
+
13
+ Use vars: {{var var_name}}
14
+ *}<!--@subject ようこそ、{{var name}} 様 @-->
15
+ <!--@vars
16
+ {"htmlescape var=$name":"Recipient Name",
17
+ "var product_url":"Url for Product",
18
+ "var product_name":"Product Name",
19
+ "var message":"Sender Message"}
20
+ @-->
21
+
22
+ ようこそ、{{htmlescape var=$name}} 様
23
+
24
+ こちらの商品「{{var product_name}}({{var product_url}})」をご覧ください。
25
+
26
+ メッセージ:
27
+ {{var message}}
app/locale/ja_JP/template/email/jpmail/product_stock_alert.html ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <!--@subject 商品在庫通知 @-->
2
+ <!--@vars
3
+ {"var customerName":"Customer Name",
4
+ "var alertGrid":"Alert Data Grid"}
5
+ @-->
6
+ こんにちは {{var customerName}} 様
7
+
8
+ {{var alertGrid}}
app/locale/ja_JP/template/email/jpmail/sales/creditmemo_new.html ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}:ご注文 #{{var order.increment_id}}のクレジットメモ #{{var creditmemo.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "store url=\"customer/account/\"":"Customer Account Url",
8
+ "var creditmemo.increment_id":"Credit Memo Id",
9
+ "var order.increment_id":"Order Id",
10
+ "var order.billing_address.format('html')":"Billing Address",
11
+ "payment_html":"Payment Details",
12
+ "var order.shipping_address.format('html')":"Shipping Address",
13
+ "var order.shipping_description":"Shipping Description",
14
+ "layout handle=\"sales_email_order_creditmemo_items\" creditmemo=$creditmemo order=$order":"Credit Memo Items Grid",
15
+ "var comment":"Credit Memo Comment"}
16
+ @-->
17
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
18
+
19
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
20
+ 荷物が発送されると追跡用のリンクをメールでお知らせいたします。
21
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
22
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
23
+
24
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
25
+
26
+ ◆ ご注文内容 ◆
27
+ ご注文番号: {{var order.increment_id}}
28
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
29
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
30
+ お支払方法; {{var order.getPayment().getMethodInstance().getTitle()}}
31
+
32
+ {{layout handle="sales_email_order_payment" order=$order}}
33
+ --------------------------------
34
+ [ご連絡先]
35
+ {{var order.getBillingAddress().format('text')}}
36
+ {{depend order.getIsNotVirtual()}}
37
+ --------------------------------
38
+ [ご送付先]
39
+ {{var order.getShippingAddress().format('text')}}
40
+ {{/depend}}
41
+ [商品]
42
+ {{layout handle="jpmail_sales_email_order_creditmemo_items" creditmemo=$creditmemo order=$order}}
43
+
44
+ {{layout handle="sales_email_order_delivery" order=$order}}
45
+
46
+ {{var order.getEmailCustomerNote()}}
47
+ ────────────────────────────────────
48
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/creditmemo_new_guest.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}:ご注文 #{{var order.increment_id}}のクレジットメモ #{{var creditmemo.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name (Billing)",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "var creditmemo.increment_id":"Credit Memo Id",
8
+ "var order.increment_id":"Order Id",
9
+ "var order.billing_address.format('html')":"Billing Address",
10
+ "var payment_html":"Payment Details",
11
+ "var order.shipping_address.format('html')":"Shipping Address",
12
+ "var order.shipping_description":"Shipping Description",
13
+ "layout handle=\"sales_email_order_creditmemo_items\" creditmemo=$creditmemo order=$order":"Credit Memo Items Grid",
14
+ "var comment":"Credit Memo Comment"}
15
+ @-->
16
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
17
+
18
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
19
+ 荷物が発送されると追跡用のリンクをメールでお知らせいたします。
20
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
21
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
22
+
23
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
24
+
25
+ ◆ ご注文内容 ◆
26
+ ご注文番号: {{var order.increment_id}}
27
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
28
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
29
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
30
+
31
+ {{layout handle="sales_email_order_payment" order=$order}}
32
+ --------------------------------
33
+ [ご連絡先]
34
+ {{var order.getBillingAddress().format('text')}}
35
+ {{depend order.getIsNotVirtual()}}
36
+ --------------------------------
37
+ [ご送付先]
38
+ {{var order.getShippingAddress().format('text')}}
39
+ {{/depend}}
40
+ [商品]
41
+ {{layout handle="jpmail_sales_email_order_creditmemo_items" creditmemo=$creditmemo order=$order}}
42
+
43
+ {{layout handle="sales_email_order_delivery" order=$order}}
44
+
45
+ {{var order.getEmailCustomerNote()}}
46
+ ────────────────────────────────────
47
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/creditmemo_update.html ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: クレジットメモ # {{var creditmemo.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "store url=\"customer/account/\"":"Customer Account Url",
9
+ "var comment":"Credit Memo Comment",
10
+ "var store.getFrontendName()":"Store Name"}
11
+ @-->
12
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
13
+
14
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
15
+ アカウントにログインしていただくことでご注文の状態をご確認いただけます。
16
+
17
+ マイページへのログインはこちら {{store url="customer/account/"}}
18
+
19
+ 店舗よりのメッセージ:
20
+ {{var comment}}
21
+
22
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
23
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
24
+ ────────────────────────────────────
25
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/creditmemo_update_guest.html ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: クレジットメモ # {{var creditmemo.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+
6
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
7
+ "var order.increment_id":"Order Id",
8
+ "var order.getStatusLabel()":"Order Status",
9
+ "var comment":"Credit Memo Comment",
10
+ "var store.getFrontendName()":"Store Name"}
11
+ @-->
12
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
13
+
14
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
15
+
16
+ 店舗よりのメッセージ:
17
+ {{var comment}}
18
+
19
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
20
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
21
+ ────────────────────────────────────
22
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/invoice_new.html ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 #{{var order.increment_id}} の 領収書 #{{var invoice.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "store url=\"customer/account/\"":"Customer Account Url",
8
+ "var invoice.increment_id":"Invoice Id",
9
+ "var order.increment_id":"Order Id",
10
+ "var order.billing_address.format('html')":"Billing Address",
11
+ "var payment_html":"Payment Details",
12
+ "var order.shipping_address.format('html')":"Shipping Address",
13
+ "var order.shipping_description":"Shipping Description",
14
+ "layout area=\"frontend\" handle=\"sales_email_order_invoice_items\" invoice=$invoice order=$order":"Invoice Items Grid",
15
+ "var comment":"Invoice Comment"}
16
+ @-->
17
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
18
+
19
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
20
+ ご注文のお支払いを下記の通り確認いたしました。
21
+
22
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
23
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
24
+
25
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
26
+
27
+ ◆ ご注文内容 ◆
28
+ ご注文番号: {{var order.increment_id}}
29
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
30
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
31
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
32
+
33
+ {{layout handle="sales_email_order_payment" order=$order}}
34
+ --------------------------------
35
+ [ご連絡先]
36
+ {{var order.getBillingAddress().format('text')}}
37
+ {{depend order.getIsNotVirtual()}}
38
+ --------------------------------
39
+ [ご送付先]
40
+ {{var order.getShippingAddress().format('text')}}
41
+ {{/depend}}
42
+ [商品]
43
+ {{layout area="frontend" handle="jpmail_sales_email_order_invoice_items" invoice=$invoice order=$order}}
44
+
45
+ {{layout handle="sales_email_order_delivery" order=$order}}
46
+
47
+ {{var order.getEmailCustomerNote()}}
48
+ ────────────────────────────────────
49
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/invoice_new_guest.html ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 #{{var order.increment_id}} の 領収書 #{{var invoice.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "var invoice.increment_id":"Invoice Id",
8
+ "var order.increment_id":"Order Id",
9
+ "var order.billing_address.format('html')":"Billing Address",
10
+ "var payment_html":"Payment Details",
11
+ "var order.shipping_address.format('html')":"Shipping Address",
12
+ "var order.shipping_description":"Shipping Description",
13
+ "layout handle=\"sales_email_order_invoice_items\" invoice=$invoice order=$order":"Invoice Items Grid",
14
+ "var comment":"Invoice Comment"}
15
+ @-->
16
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
17
+
18
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
19
+ ご注文のお支払いを下記の通り確認いたしました。
20
+
21
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
22
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
23
+
24
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
25
+
26
+ ◆ ご注文内容 ◆
27
+ ご注文番号: {{var order.increment_id}}
28
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
29
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
30
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
31
+
32
+ {{layout handle="sales_email_order_payment" order=$order}}
33
+ --------------------------------
34
+ [ご連絡先]
35
+ {{var order.getBillingAddress().format('text')}}
36
+ {{depend order.getIsNotVirtual()}}
37
+ --------------------------------
38
+ [ご送付先]
39
+ {{var order.getShippingAddress().format('text')}}
40
+ {{/depend}}
41
+ [商品]
42
+ {{layout area="frontend" handle="jpmail_sales_email_order_invoice_items" invoice=$invoice order=$order}}
43
+
44
+ {{layout handle="sales_email_order_delivery" order=$order}}
45
+
46
+ {{var order.getEmailCustomerNote()}}
47
+ ────────────────────────────────────
48
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/invoice_update.html ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: 領収書 # {{var invoice.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "store url=\"customer/account/\"":"Customer Account Url",
9
+ "var comment":"Invoice Comment",
10
+ "var store.getFrontendName()":"Store Name"}
11
+ @-->
12
+
13
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
14
+
15
+ ご注文 # {{var order.increment_id}} は {{var order.getStatusLabel()}}されました。
16
+ アカウントにログインしていただくことでご注文の状態をご確認いただけます。
17
+
18
+ マイページへのログインはこちら {{store url="customer/account/"}}
19
+
20
+ 店舗よりのメッセージ:
21
+ {{var comment}}
22
+
23
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
24
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
25
+ ────────────────────────────────────
26
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/invoice_update_guest.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: 領収書 # {{var invoice.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "var comment":"Invoice Comment",
9
+ "var store.getFrontendName()":"Store Name"}
10
+ @-->
11
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
12
+
13
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
14
+
15
+ 店舗よりのメッセージ:
16
+ {{var comment}}
17
+
18
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
19
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
20
+ ────────────────────────────────────
21
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/order_cancel.html ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 # {{var order.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "store url=\"customer/account/\"":"Customer Account Url",
8
+ "var order.increment_id":"Order Id",
9
+ "var order.getCreatedAtFormated('long')":"Order Created At (datetime)",
10
+ "var order.getBillingAddress().format('html')":"Billing Address",
11
+ "var payment_html":"Payment Details",
12
+ "var order.getShippingAddress().format('html')":"Shipping Address",
13
+ "var order.getShippingDescription()":"Shipping Description",
14
+ "layout handle=\"sales_email_order_items\" order=$order":"Order Items Grid",
15
+ "var order.getEmailCustomerNote()":"Email Order Note"}
16
+ @-->
17
+ <!--@styles
18
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
19
+ @-->
20
+
21
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
22
+
23
+ {{var store.getFrontendName()}}からのご注文キャンセル手続きが完了しました。
24
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
25
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
26
+
27
+ キャンセルいたしましたご注文の詳細は以下の通りです。
28
+
29
+ ◆ ご注文内容 ◆
30
+ ご注文番号: {{var order.increment_id}}
31
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
32
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
33
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
34
+
35
+ {{layout handle="sales_email_order_payment" order=$order}}
36
+ --------------------------------
37
+ [ご連絡先]
38
+ {{var order.getBillingAddress().format('text')}}
39
+ {{depend order.getIsNotVirtual()}}
40
+ --------------------------------
41
+ [ご送付先]
42
+ {{var order.getShippingAddress().format('text')}}
43
+ {{/depend}}
44
+ [商品]
45
+ {{layout handle="sales_email_order_items" order=$order}}
46
+
47
+ {{layout handle="sales_email_order_delivery" order=$order}}
48
+
49
+ {{var order.getEmailCustomerNote()}}
50
+ ────────────────────────────────────
51
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/order_new.html ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 # {{var order.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "store url=\"customer/account/\"":"Customer Account Url",
8
+ "var order.increment_id":"Order Id",
9
+ "var order.getCreatedAtFormated('long')":"Order Created At (datetime)",
10
+ "var order.getBillingAddress().format('html')":"Billing Address",
11
+ "var payment_html":"Payment Details",
12
+ "var order.getShippingAddress().format('html')":"Shipping Address",
13
+ "var order.getShippingDescription()":"Shipping Description",
14
+ "layout handle=\"sales_email_order_items\" order=$order":"Order Items Grid",
15
+ "var order.getEmailCustomerNote()":"Email Order Note"}
16
+ @-->
17
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
18
+
19
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
20
+ 荷物が発送されると追跡用のリンクをメールでお知らせいたします。
21
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
22
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
23
+
24
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
25
+
26
+ ◆ ご注文内容 ◆
27
+ ご注文番号: {{var order.increment_id}}
28
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
29
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
30
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
31
+
32
+ {{layout handle="sales_email_order_payment" order=$order}}
33
+ --------------------------------
34
+ [ご連絡先]
35
+ {{var order.getBillingAddress().format('text')}}
36
+ {{depend order.getIsNotVirtual()}}
37
+ --------------------------------
38
+ [ご送付先]
39
+ {{var order.getShippingAddress().format('text')}}
40
+ {{/depend}}
41
+ [商品]
42
+ {{layout handle="jpmail_sales_email_order_items" order=$order}}
43
+
44
+ {{layout handle="sales_email_order_delivery" order=$order}}
45
+
46
+ {{var order.getEmailCustomerNote()}}
47
+ ────────────────────────────────────
48
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/order_new_guest.html ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 # {{var order.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getBillingAddress().getName()":"Guest Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "var order.increment_id":"Order Id",
8
+ "var order.getCreatedAtFormated('long')":"Order Created At (datetime)",
9
+ "var order.getBillingAddress().format('html')":"Billing Address",
10
+ "var payment_html":"Payment Details",
11
+ "var order.getShippingAddress().format('html')":"Shipping Address",
12
+ "var order.getShippingDescription()":"Shipping Description",
13
+ "layout handle=\"sales_email_order_items\" order=$order":"Order Items Grid",
14
+ "var order.getEmailCustomerNote()":"Email Order Note"}
15
+ @-->
16
+ こんにちは、{{htmlescape var=$order.getBillingAddress().getName()}} 様
17
+
18
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
19
+ 荷物が発送されると追跡用のリンクをメールでお知らせいたします。
20
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
21
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
22
+
23
+ ご注文の詳細は以下の通りです。ご注文いただきありがとうございます。
24
+
25
+ ◆ ご注文内容 ◆
26
+ ご注文番号: {{var order.increment_id}}
27
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
28
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
29
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
30
+
31
+ {{layout handle="sales_email_order_payment" order=$order}}
32
+ --------------------------------
33
+ [ご連絡先]
34
+ {{var order.getBillingAddress().format('text')}}
35
+ {{depend order.getIsNotVirtual()}}
36
+ --------------------------------
37
+ [ご送付先]
38
+ {{var order.getShippingAddress().format('text')}}
39
+ {{/depend}}
40
+ [商品]
41
+ {{layout handle="jpmail_sales_email_order_items" order=$order}}
42
+
43
+ {{layout handle="sales_email_order_delivery" order=$order}}
44
+
45
+ {{var order.getEmailCustomerNote()}}
46
+ ────────────────────────────────────
47
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/order_update.html ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 # {{var order.increment_id}} update @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "store url=\"customer/account/\"":"Customer Account Url",
9
+ "var comment":"Order Comment",
10
+ "var store.getFrontendName()":"Store Name"}
11
+ @-->
12
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
13
+
14
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
15
+ アカウントにログインしていただくことでご注文の状態をご確認いただけます。
16
+
17
+ マイページへのログインはこちら {{store url="customer/account/"}}
18
+
19
+ 店舗よりのメッセージ:
20
+ {{var comment}}
21
+
22
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
23
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
24
+ ────────────────────────────────────
25
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/order_update_guest.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: ご注文 # {{var order.increment_id}} update @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "var comment":"Order Comment",
9
+ "var store.getFrontendName()":"Store Name"}
10
+ @-->
11
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
12
+
13
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
14
+
15
+ 店舗よりのメッセージ:
16
+ {{var comment}}
17
+
18
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
19
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
20
+ ────────────────────────────────────
21
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/shipment_new.html ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}:ご注文 #{{var order.increment_id}} の 配送 #{{var shipment.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "store url=\"customer/account/\"":"Customer Account Url",
8
+ "var shipment.increment_id":"Shipment Id",
9
+ "var order.increment_id":"Order Id",
10
+ "var order.billing_address.format('html')":"Billing Address",
11
+ "var payment_html":"Payment Details",
12
+ "var order.shipping_address.format('html')":"Shipping Address",
13
+ "var order.shipping_description":"Shipping Description",
14
+ "layout handle=\"sales_email_order_shipment_items\" shipment=$shipment order=$order":"Shipment Items Grid",
15
+ "block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order":"Shipment Track Details",
16
+ "var comment":"Shipment Comment"}
17
+ @-->
18
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
19
+
20
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
21
+
22
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
23
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
24
+
25
+ 配送の詳細は以下の通りです。ご注文いただきありがとうございました。
26
+
27
+ ◆ ご注文内容 ◆
28
+ ご注文番号: {{var order.increment_id}}
29
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
30
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
31
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
32
+
33
+ {{layout handle="sales_email_order_payment" order=$order}}
34
+ --------------------------------
35
+ [ご連絡先]
36
+ {{var order.getBillingAddress().format('text')}}
37
+ {{depend order.getIsNotVirtual()}}
38
+ --------------------------------
39
+ [ご送付先]
40
+ {{var order.getShippingAddress().format('text')}}
41
+ {{/depend}}
42
+ [商品]
43
+ {{layout handle="jpmail_sales_email_order_shipment_items" shipment=$shipment order=$order}}
44
+
45
+ {{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}
46
+
47
+
48
+
49
+ {{var order.getEmailCustomerNote()}}
50
+ ────────────────────────────────────
51
+ ありがとうございました。{{var store.getFrontendName()}}
52
+
53
+
54
+
app/locale/ja_JP/template/email/jpmail/sales/shipment_new_guest.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}:ご注文 #{{var order.increment_id}} の 配送 #{{var shipment.increment_id}} @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
6
+ "var store.getFrontendName()":"Store Name",
7
+ "var shipment.increment_id":"Shipment Id",
8
+ "var order.increment_id":"Order Id",
9
+ "var order.billing_address.format('html')":"Billing Address",
10
+ "var payment_html":"Payment Details",
11
+ "var order.shipping_address.format('html')":"Shipping Address",
12
+ "var order.shipping_description":"Shipping Description",
13
+ "layout handle=\"sales_email_order_shipment_items\" shipment=$shipment order=$order":"Shipment Items Grid",
14
+ "block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order":"Shipment Track Details",
15
+ "var comment":"Shipment Comment"}
16
+ @-->
17
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
18
+
19
+ {{var store.getFrontendName()}}からご注文いただきありがとうございます。
20
+
21
+ ご注文に関してなにか疑問点がありましたら、{{config path='trans_email/ident_support/email'}}
22
+ または、お電話 {{config path='general/store_information/phone'}}(月 - 金, 午前8時 - 午後5時)までお問い合わせください。
23
+
24
+ 配送の詳細は以下の通りです。ご注文いただきありがとうございました。
25
+
26
+ ◆ ご注文内容 ◆
27
+ ご注文番号: {{var order.increment_id}}
28
+ ご注文日時: {{var order.getCreatedAtFormated('long')}}
29
+ ご注文者: {{htmlescape var=$order.getCustomerName()}} 様
30
+ お支払方法: {{var order.getPayment().getMethodInstance().getTitle()}}
31
+
32
+ {{layout handle="sales_email_order_payment" order=$order}}
33
+ --------------------------------
34
+ [ご連絡先]
35
+ {{var order.getBillingAddress().format('text')}}
36
+ {{depend order.getIsNotVirtual()}}
37
+ --------------------------------
38
+ [ご送付先]
39
+ {{var order.getShippingAddress().format('text')}}
40
+ {{/depend}}
41
+ [商品]
42
+ {{layout handle="jpmail_sales_email_order_shipment_items" shipment=$shipment order=$order}}
43
+
44
+ {{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}
45
+
46
+
47
+
48
+ {{var order.getEmailCustomerNote()}}
49
+ ────────────────────────────────────
50
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/shipment_update.html ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: 配送情報 # {{var shipment.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$order.getCustomerName()":"Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "store url=\"customer/account/\"":"Customer Account Url",
9
+ "var comment":"Order Comment",
10
+ "var store.getFrontendName()":"Store Name"}
11
+ @-->
12
+ こんにちは、{{htmlescape var=$order.getCustomerName()}} 様
13
+
14
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
15
+ アカウントにログインしていただくことでご注文の状態をご確認いただけます。
16
+
17
+ マイページへのログインはこちら {{store url="customer/account/"}}
18
+
19
+ 店舗よりのメッセージ:
20
+ {{var comment}}
21
+
22
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
23
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
24
+ ────────────────────────────────────
25
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/sales/shipment_update_guest.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var store.getFrontendName()}}: 配送情報 # {{var shipment.increment_id}} 更新 @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "htmlescape var=$billing.getName()":"Guest Customer Name",
6
+ "var order.increment_id":"Order Id",
7
+ "var order.getStatusLabel()":"Order Status",
8
+ "var comment":"Order Comment",
9
+ "var store.getFrontendName()":"Store Name"}
10
+ @-->
11
+ こんにちは、{{htmlescape var=$billing.getName()}} 様
12
+
13
+ ご注文 # {{var order.increment_id}} は{{var order.getStatusLabel()}}されました。
14
+
15
+ 店舗よりのメッセージ:
16
+ {{var comment}}
17
+
18
+ なにかご質問がございましたら、お気軽にメールアドレス{{config path='trans_email/ident_support/email'}}
19
+ またはお電話 {{config path='general/store_information/phone'}} でお問い合わせください。
20
+ ────────────────────────────────────
21
+ ありがとうございました。{{var store.getFrontendName()}}
app/locale/ja_JP/template/email/jpmail/token.html ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {* This is a comment block
2
+
3
+ Available vars in this template:
4
+ - $userName User name
5
+ - $applicationName Application name
6
+ - $status Token new status
7
+
8
+ Use vars: {{var var_name}}
9
+ *}<!--@subject Welcome, {{var name}} @-->
10
+ <!--@vars
11
+ {"htmlescape var=$userName":"User name",
12
+ "var $applicationName":"Application name",
13
+ "var $status":"Token new status"}
14
+ @-->
15
+
16
+ こんにちは, {{htmlescape var=$userName}}様
17
+ あなたの {{htmlescape var=$applicationName}} の認証情報が管理者によって {{htmlescape var=$status}} に変更されました。
app/locale/ja_JP/template/email/jpmail/wishlist_share.html ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject {{var customer.name}}さんの欲しい物リストを見てみませんか? @-->
2
+ <!--@vars
3
+ {"store url=\"\"":"Store Url",
4
+ "skin url=\"images/logo_email.gif\" _area='frontend'":"Email Logo Image",
5
+ "var message":"Wishlist Message",
6
+ "var items":"Wishlist Items"}
7
+ @-->
8
+ こんにちは、
9
+ {{var store.getFrontendName()}}の欲しい物リストを見てみませんか?
10
+
11
+ {{var message}}
12
+ {{var items}}
13
+
14
+ ありがとうございました。
15
+ {{htmlescape var=$customer.name}}
package.xml CHANGED
@@ -1,14 +1,17 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_Jpmail</name>
4
- <version>0.2.3</version>
5
  <stability>stable</stability>
6
- <license>Open Software Lisence v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This module fix email encoding for multibyte environment</summary>
10
  <description>This module fix email encoding for multibyte environment</description>
11
- <notes>0.2.3 Fix bug.&#xD;
 
 
 
12
  0.2.2 Fix sender and recipient name broken under double byte env&#xD;
13
  0.2.1 Modify for 1.5 and 1.6&#xD;
14
  0.2.0 Add External SMTP Server setting&#xD;
@@ -21,9 +24,9 @@
21
  Add Newsletter/Template.php&#xD;
22
  0.1.2 Fix Bug.</notes>
23
  <authors><author><name>Hirokazu Nishi</name><user>hirokazu_n</user><email>nishi@principle-works.jp</email></author></authors>
24
- <date>2011-12-30</date>
25
- <time>06:57:11</time>
26
- <contents><target name="magelocale"><dir name="ja_JP"><file name="Rack_Jpmail.csv" hash="6323d98df9db69ac9c1da46c9e122525"/></dir><dir name="en_US"><file name="Rack_Jpmail.csv" hash=""/></dir></target><target name="magecommunity"><dir name="Rack"><dir name="Jpmail"><dir name="Helper"><file name="Data.php" hash="184fbc5691c3478047810b827c919dc9"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="7c821d7da0def69eebff045f0e76caa9"/></dir><dir name="Newsletter"><file name="Template.php" hash="62f42463353effcd423b945c8d085a12"/></dir></dir><dir name="etc"><file name="config.xml" hash="21e15931415f96ab129d65710c0dca15"/><file name="system.xml" hash="4933a0fe7e1bd4249b8582373d312022"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_Jpmail.xml" hash="15330a682c67f43d2510c0e72991bc53"/></dir></target></contents>
27
  <compatible/>
28
- <dependencies><required><php><min>5.2.0</min><max>5.3.99</max></php><extension><name>mbstring</name><min></min><max></max></extension></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_Jpmail</name>
4
+ <version>0.3.0</version>
5
  <stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This module fix email encoding for multibyte environment</summary>
10
  <description>This module fix email encoding for multibyte environment</description>
11
+ <notes>0.3.0 Update for CE 1.9.1.x. Include text templates.&#xD;
12
+ 0.2.5 Compatible for PHP5.5&#xD;
13
+ 0.2.4 FIx bug.&#xD;
14
+ 0.2.3 Fix bug.&#xD;
15
  0.2.2 Fix sender and recipient name broken under double byte env&#xD;
16
  0.2.1 Modify for 1.5 and 1.6&#xD;
17
  0.2.0 Add External SMTP Server setting&#xD;
24
  Add Newsletter/Template.php&#xD;
25
  0.1.2 Fix Bug.</notes>
26
  <authors><author><name>Hirokazu Nishi</name><user>hirokazu_n</user><email>nishi@principle-works.jp</email></author></authors>
27
+ <date>2015-02-23</date>
28
+ <time>01:37:08</time>
29
+ <contents><target name="magecommunity"><dir name="Rack"><dir name="Jpmail"><dir name="Helper"><file name="Data.php" hash="2770638148fb60a5b2678cf1c225a740"/></dir><dir name="Model"><dir name="Email"><file name="Queue.php" hash="fdf13ee929d90bd55291272bc348eec8"/><file name="Template.php" hash="7ab66574e58816166f25d69216bae926"/></dir><dir name="Newsletter"><file name="Queue.php" hash="086e8ab56db996e108c55c8dbe17b54f"/><file name="Template.php" hash="cd31baf7b198257b7352d4863aca45b1"/></dir><dir name="System"><file name="Secure.php" hash="8f084fccdc20a9924c516addf8c49725"/></dir></dir><dir name="etc"><file name="config.xml" hash="55aa365c64fd9daa4754d117d8519092"/><file name="system.xml" hash="1bbe84058ff4626f2464d1a62605ee06"/></dir></dir></dir></target><target name="magelocale"><dir name="ja_JP"><file name="Rack_Jpmail.csv" hash="58d315077af760c362924660a4b5180c"/><dir name="template"><dir name="email"><dir name="jpmail"><file name="account_new.html" hash="f6e51d215088fdec8a36d1facf917bca"/><file name="account_new_confirmation.html" hash="c758523cbe765080ba92488cc758d1ce"/><file name="account_new_confirmed.html" hash="74d8c9454f3be37dfe8ed57c9b841d25"/><file name="account_password_reset_confirmation.html" hash="86b6d0860f9719e70efd97731d64d72a"/><file name="newsletter_subscr_confirm.html" hash="e4b237b7521cd29b953c8c1773fb3c15"/><file name="newsletter_subscr_success.html" hash="a78f812186ae09d9cbdb19b31f9f228d"/><file name="newsletter_unsub_success.html" hash="1d2f3dbd11b1ccea3edc636dd9aee37f"/><file name="password_new.html" hash="c2df9b9876d32165994059f2c27ecb81"/><file name="product_price_alert.html" hash="793e9a806b2f773d3144e4f1b9735b85"/><file name="product_share.html" hash="cfcf329b1f92179d6bc146c66b0d91be"/><file name="product_stock_alert.html" hash="e481b0b907fa5162935940e5fe54bb7c"/><dir name="sales"><file name="creditmemo_new.html" hash="b17c41113127ad6e975389c55ef94576"/><file name="creditmemo_new_guest.html" hash="d2b656b338778889481af3178f6f0cca"/><file name="creditmemo_update.html" hash="91db8f68628afd1688b33c7298cddafd"/><file name="creditmemo_update_guest.html" hash="fb2e1302d7dcf7a7d0e0f03360306a3e"/><file name="invoice_new.html" hash="ad284f555eb8d6409f3f57cb08f94125"/><file name="invoice_new_guest.html" hash="248d6ac9b796f33f410acc7728fae026"/><file name="invoice_update.html" hash="bc51383cc3648401dbb812ec484f0d87"/><file name="invoice_update_guest.html" hash="53e1690253db6cd5b1ab80cca0dd5b8a"/><file name="order_cancel.html" hash="c71cb4464c65891f2b4a45d362f75b96"/><file name="order_new.html" hash="94a4be6cc755cad1e8edc07abd12a43e"/><file name="order_new_guest.html" hash="baaf742a6720c96500bd0b577dada6e9"/><file name="order_update.html" hash="df41a28e96ecb5719fe3546d06b7b3d7"/><file name="order_update_guest.html" hash="cb0b59efcc1e84c26593c991f7eeeeaa"/><file name="shipment_new.html" hash="859361977323e84f1c38e3cc383a72c0"/><file name="shipment_new_guest.html" hash="225374c178c88636c8c18f87395ceae9"/><file name="shipment_update.html" hash="cebd00858ad512edd350a964edc6358f"/><file name="shipment_update_guest.html" hash="c518644d837e1cf8e29388173006323b"/></dir><file name="token.html" hash="c2b6af9fbf792716898ad6dbde932254"/><file name="wishlist_share.html" hash="79c188aee1dc33ddc7594e08554b8ade"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_Jpmail.xml" hash="15330a682c67f43d2510c0e72991bc53"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="rack_jpmail"><dir name="order"><dir name="creditmemo"><file name="items.phtml" hash="598add2bef95883a025f256d543662cb"/></dir><file name="delivery.phtml" hash="ba1b54421e89e904b3c9e12bf9bafb4b"/><dir name="invoice"><file name="items.phtml" hash="ea4bbf0656601bd1032bed43ce9dd40f"/></dir><dir name="items"><dir name="creditmemo"><file name="default.phtml" hash="4a257b7e484819d3d0ecbcc6ed0c6b32"/></dir><dir name="invoice"><file name="default.phtml" hash="4a257b7e484819d3d0ecbcc6ed0c6b32"/></dir><dir name="order"><file name="default.phtml" hash="d8d9a3ebc1a1c7a55b8576f7f6670ae9"/></dir><dir name="shipment"><file name="default.phtml" hash="cfa8d5a6f6aea775d47781afdd844935"/></dir></dir><file name="items.phtml" hash="66afbfd1756be1c434b8369fe5eedb37"/><file name="payment.phtml" hash="8cac0d74414a1e728756c50160880fe1"/><dir name="shipment"><file name="items.phtml" hash="a52eebc3105f69ab7d40ff0c4e2c6aae"/><file name="totals.phtml" hash="8e1b3c5eb4a1e1bfa3f14347dfd91bf4"/><file name="track.phtml" hash="2a78ec152bc0a7889f5c41dc8ad75fa2"/></dir><file name="tax.phtml" hash="6c7cd80ebcd4e35e9e7dcfae713d3f9b"/><file name="totals.phtml" hash="365eb1f0b13fe0439f88f1596e187a05"/></dir></dir></dir><dir name="layout"><file name="jpmail.xml" hash="10b4ee160d8078445f7352672374bdb7"/></dir></dir></dir></dir></target></contents>
30
  <compatible/>
31
+ <dependencies><required><php><min>5.2.0</min><max>5.5.99</max></php><extension><name>mbstring</name><min/><max/></extension></required></dependencies>
32
  </package>