[-] MO : #PNM-73 : Mail alerts redirect url on logout corrected
This commit is contained in:
@@ -96,7 +96,6 @@ class MailAlert extends ObjectModel
|
||||
$shop = Context::getContext()->shop;
|
||||
|
||||
$customer = new Customer($id_customer);
|
||||
$customer_email = $customer->email;
|
||||
$products = MailAlert::getProducts($customer, $id_lang);
|
||||
$products_number = count($products);
|
||||
|
||||
|
||||
@@ -42,7 +42,8 @@ class MailalertsAccountModuleFrontController extends ModuleFrontController
|
||||
parent::initContent();
|
||||
|
||||
if (!Context::getContext()->customer->isLogged())
|
||||
Tools::redirect('index.php?controller=auth&redirect=account&module=mailalerts&fc=module');
|
||||
//Tools::redirect('index.php?controller=auth&redirect=account&module=mailalerts&fc=module');
|
||||
Tools::redirect('index.php?controller=auth&redirect=module&module=mailalerts&action=account');
|
||||
|
||||
if (Context::getContext()->customer->id)
|
||||
{
|
||||
|
||||
@@ -49,6 +49,7 @@ class MailAlerts extends Module
|
||||
$this->tab = 'administration';
|
||||
$this->version = '2.4';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->need_instance = 0;
|
||||
|
||||
parent::__construct();
|
||||
|
||||
@@ -286,7 +287,6 @@ class MailAlerts extends Module
|
||||
foreach ($products as $key => $product)
|
||||
{
|
||||
$unit_price = $product['product_price_wt'];
|
||||
$price = $product['total_price'];
|
||||
|
||||
$customization_text = '';
|
||||
if (isset($customized_datas[$product['product_id']][$product['product_attribute_id']]))
|
||||
|
||||
Reference in New Issue
Block a user