Tidak Ada Email Order Via Paypal Pada Magento

Tidak Ada Email Order Via Paypal Pada Magento

Satu lagi error yang saya alami pada Magento, yaitu tidak ada email order via Paypal ke pelanggan maupun ke admin.

Tidak Ada Email Order Via Paypal Pada Magento

Temukan file Onepage.php pada app\code\core\Mage\Checkout\Model\Type\Onepage.php. Edit file tersebut.

Temukan kode dibawah ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
* a flag to set that there will be redirect to third party after confirmation
* eg: paypal standard ipn
*/
$redirectUrl = $this->getQuote()->getPayment()->getOrderPlaceRedirectUrl();
/**
* we only want to send to customer about new order when there is no redirect to third party
*/
if (!$redirectUrl && $order->getCanSendNewEmailFlag()) {
try {
$order->sendNewOrderEmail();
} catch (Exception $e) {
Mage::logException($e);
}
}

Ganti kode

1
if (!$redirectUrl && $order->getCanSendNewEmailFlag()) {

dengan

1
if ($order->getCanSendNewEmailFlag()) {

Dengan melakukan perubahan diatas, maka pelanggan dan admin akan menerima email ketika pelanggan klik Place Order dan diarahkan ke situs Paypal. Jadi, walaupun pelanggan belum atau tidak membayarnya, dia akan menerima email konfirmasi order begitupun dengan admin.

Silahkan tes order menggunakan Paypal Sandbox?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>