Open GoogleCodeExporter opened 8 years ago
I found a solution. I have the problem, that the generated link leads to a "not
found" page. This is because it is not considered that SEO URLs are in use.
Appending the activation code as a GET parameter in form of a string with "&"
does not work in that case, like it happens in the module. Instead, it is safe
to provide the parameter(s) as an array to the method of the PrestaShop Link
class that generates the link.
Within activationbymail.php in line 73 in the hookCreateAccount method:
$link = $this->context->link->getModuleLink($this->name, 'activation') .
'&link=' . $activation_link;
Should become this:
$link = $this->context->link->getModuleLink($this->name, 'activation',
array('link' => $activation_link));
This automatically takes care of using the right symbol for appending the
parameter.
Original comment by peter.th...@gmail.com
on 13 Feb 2014 at 8:05
[deleted comment]
#1 peter's post worked for me. I am using 1.5.4. However, on other related
issue. When on the mobile site, the module only worked when I added the its
contents a subfolder /en/.
Original comment by dougadan...@gmail.com
on 21 Feb 2014 at 10:37
Insert in 73 line:
$read = "SELECT value FROM ps_configuration WHERE name = 'PS_REWRITING_SETTINGS'";
$connect = @mysqli_connect(_DB_SERVER_, _DB_USER_, _DB_PASSWD_, _DB_NAME_);
if ($connect) {
$res1 = mysqli_query($connect, $read);
while ($row1 = mysqli_fetch_assoc($res1)){
$config = $row1;
}
} else {
echo('Cannot connect to database...'); exit;
}
mysqli_close($connect);
if ($config['value'] == '0'){
$link = $this->context->link->getModuleLink($this->name, 'activation') .
'&link=' . $activation_link;
} else {
$link = $this->context->link->getModuleLink($this->name, 'activation') .
'?link=' . $activation_link;
}
Original comment by ferart...@gmail.com
on 31 Oct 2014 at 10:00
Original issue reported on code.google.com by
ravnsbor...@gmail.com
on 15 Dec 2013 at 5:57