Pregunta

app/code/core/Mage/Customer/Model/Customer.php

Encontré algunas respuestas que debo cambiar: $confirmation = $this->getConfirmation(); en $confirmation = $this->getPasswordConfirmation(); pero yo en mi código encuentro bien $confirmation = $this->getPasswordConfirmation();

Intenté hacer lo contrario, cambiar. $confirmation = $this->getPasswordConfirmation(); en $confirmation = $this->getConfirmation(); Funciona pero hay un problema:

cuando ingreso la información y la envío, me redirige a una página en blanco con esto url: http://www.domaine.com/customer/account/createpost/ y cuando actualizo la página me redirige a http : //www.domaine.com/customer/account/ con el tablero y la cuenta creada.

¿Alguien sabe por qué hay una página en blanco para la primera URL y cómo solucionar este problema?

¿Fue útil?

Solución

Buscar setConfirmation() y getConfirmation() en tus extensiones y reemplaza con setPasswordConfirmation() y getPasswordConfirmation().

O si deberían seguir siendo compatibles con versiones anteriores, use algo como esto:

$info = Mage::getVersionInfo();
$version = "{$info['major']}.{$info['minor']}.{$info['revision']}.{$info['patch']}";

if($version >= '1.9.1.0'){
$customer->setPasswordConfirmation($this->getRequest()->getPost('confirmation')); // just check the name of confirm password field in the registration form accordlingly add the name in the get Post
} else {
$customer->setConfirmation($this->getRequest()->getPost('confirmation')); // just check the name of confirm password field in the registration form accordlingly add the name in the get Post
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top