Pantalla en blanco ...
Avisos
Vaciar todo

Hosting WordPress 70% dto Dominios promo

Pantalla en blanco tras registro de cuenta  

Página 2 / 2
 
DOLORES
 DOLORES
Usuario experto

Hola.
Tengo un problema con la tienda de prestashop. Al registrarse tras rellenar los datos, al pulsar el botón, dirige a una página en blanco. El cliente se graba bien y le mana el mail, pero entra en la página de su cuenta.
¿Me podéis ayudar?

URL del sitio: Contenido solo visible a usuarios registrados

Citar
Respondido : 09/02/2015 4:01 pm
DOLORES
 DOLORES
Usuario experto

Pasa lo mismo:
[10-Feb-2015 14:03:29 Europe/Madrid] PHP Fatal error: Call to a member function getProducts() on a non-object in /home2/sociosho/public_html/controllers/front/AuthController.php on line 467

Esta es la linea 467:
if (count($this->context->cart->getProducts(true)) > 0)

ResponderCitar
Respondido : 10/02/2015 2:08 pm

Gestor de Contraseñas - VPN Conexión Segura - Gestor 2FA (Segundo Factor de Autenticación

DOLORES
 DOLORES
Usuario experto

Esta la secuencia que redirecciona:
// redirection: if cart is not empty : redirection to the cart
if (count($this->context->cart->getProducts(true)) > 0)
Tools::redirect('index.php?controller=order&multi-shipping='.(int)Tools::getValue('multi-shipping'));
// else : redirection to the account
else
Tools::redirect('index.php?controller='.(($this->authRedirection !== false) ? urlencode($this->authRedirection) : 'my-account'));
}
else
$this->errors[] = Tools::displayError('An error occurred while creating your account.');

ResponderCitar
Respondido : 10/02/2015 2:10 pm
DOLORES
 DOLORES
Usuario experto

Ya está solucionado. He cogido el código de aquí
https://github.com/PrestaShop/PrestaShop/commit/1359f46baeea0076e0f933a89e0042fd3ce8ff72#diff-798139a830d0ed90cc1972359a797c77R468

ResponderCitar
Respondido : 10/02/2015 2:45 pm

Página 2 / 2