これがあなたを助けるかもしれないコードの一部です:
public function sendMail() {
$mailTemplate = Mage::getModel('core/email_template');
$template = Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE); // template id of email template
$email = Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT); // recipient example: example@yahoo.com
$mailTemplate->setDesignConfig(array('area'=>'frontend'))
->sendTransactional(
$template,
Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY),
$email,
null,
array(
'subject' => $this->getSubject(),
'line' => $this->getLine(),
'message' => $this->getMessage()
)
);
$translate->setTranslateInline(true);
return $this;
}
の配列
array(
'subject' => $this->getSubject(),
'line' => $this->getLine(),
'message' => $this->getMessage()
)
{{var subject}} {{var line}} {{var message}} で取得できます
次に、shippingMethodを取得する方法は??
配送方法のモデルを取得し、最初に配送方法をロードしてから配列に設定する必要があります。