Merhaba, E-mail ile uyarı modülünü etkinleştirdiğimizde kullanıcı sipariş verdiğinde mailimize sipairş bilgisi gelmekte. Ancak varolan sisteme göre mailalerts.php dosyasında bir eksiklik nedeniyle gelen bilgiler arasında state alanı olmasına rağmen bu alanın bilgisi gözükmüyor. Bu sorunu ingilizce prestashop forumunda buldum buraya eklemek istedim. Bu modülü kullananlar bu sorunla karşılaşıyor. Bu sorunu çözmek için
.../modules/mailalerts/mailalerts.php dosyasında
--------------------------------------------------------------------------
// Getting differents vars
$id_lang = intval(Configuration::get('PS_LANG_DEFAULT'));
$currency = $params['currency'];
$configuration = Configuration::getMultiple(array('PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME'));
$order = $params['order'];
$customer = $params['customer'];
$delivery = new Address(intval($order->id_address_delivery));
$invoice = new Address(intval($order->id_address_invoice));
$order_date_text = Tools::displayDate($order->date_add, intval($id_lang));
$carrier = new Carrier(intval($order->id_carrier));
$message = $order->getLastMessage();
----------------------------------------------------------------------------
yukarıdaki alanı
aşağıdakiyle değiştiriyoruz.
----------------------------------------------------------------------------
// Getting differents vars
$id_lang = intval(Configuration::get('PS_LANG_DEFAULT'));
$currency = $params['currency'];
$configuration = Configuration::getMultiple(array('PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME'));
$order = $params['order'];
$customer = $params['customer'];
$delivery = new Address(intval($order->id_address_delivery));
$invoice = new Address(intval($order->id_address_invoice));
# -- Fix state problem
$delivery_state = $delivery->id_state ? new State(intval($delivery->id_state)) : false;
$invoice_state = $invoice->id_state ? new State(intval($invoice->id_state)) : false;
# --
$order_date_text = Tools::displayDate($order->date_add, intval($id_lang));
$carrier = new Carrier(intval($order->id_carrier));
$message = $order->getLastMessage();
----------------------------------------------------------------------------------------------------------------
.../modules/mailalerts/mailalerts.php dosyasında
--------------------------------------------------------------------------
// Getting differents vars
$id_lang = intval(Configuration::get('PS_LANG_DEFAULT'));
$currency = $params['currency'];
$configuration = Configuration::getMultiple(array('PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME'));
$order = $params['order'];
$customer = $params['customer'];
$delivery = new Address(intval($order->id_address_delivery));
$invoice = new Address(intval($order->id_address_invoice));
$order_date_text = Tools::displayDate($order->date_add, intval($id_lang));
$carrier = new Carrier(intval($order->id_carrier));
$message = $order->getLastMessage();
----------------------------------------------------------------------------
yukarıdaki alanı
aşağıdakiyle değiştiriyoruz.
----------------------------------------------------------------------------
// Getting differents vars
$id_lang = intval(Configuration::get('PS_LANG_DEFAULT'));
$currency = $params['currency'];
$configuration = Configuration::getMultiple(array('PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME'));
$order = $params['order'];
$customer = $params['customer'];
$delivery = new Address(intval($order->id_address_delivery));
$invoice = new Address(intval($order->id_address_invoice));
# -- Fix state problem
$delivery_state = $delivery->id_state ? new State(intval($delivery->id_state)) : false;
$invoice_state = $invoice->id_state ? new State(intval($invoice->id_state)) : false;
# --
$order_date_text = Tools::displayDate($order->date_add, intval($id_lang));
$carrier = new Carrier(intval($order->id_carrier));
$message = $order->getLastMessage();
----------------------------------------------------------------------------------------------------------------