Domanda

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

Ho trovato alcune risposte che devo modificare: $confirmation = $this->getConfirmation(); In $confirmation = $this->getPasswordConfirmation(); ma io nel mio codice mi trovo bene $confirmation = $this->getPasswordConfirmation();

Ho provato a fare il contrario, a cambiare $confirmation = $this->getPasswordConfirmation(); In $confirmation = $this->getConfirmation(); funziona ma c'è un problema:

quando inserisco le informazioni e le invio, mi reindirizza a una pagina vuota con questo url: http://www.domaine.com/customer/account/createpost/ e quando aggiorno la pagina mi reindirizza a http : //www.domaine.com/customer/account/ con la dashboard e l'account creato.

qualcuno sa perché c'è una pagina vuota per il primo URL e come risolvere questo problema

È stato utile?

Soluzione

Cercare setConfirmation() E getConfirmation() nelle tue estensioni e sostituisci con setPasswordConfirmation() E getPasswordConfirmation().

Oppure se dovessero rimanere compatibili con le versioni precedenti, usa qualcosa del genere:

$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
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top