ashishScripter / activationbymail

Automatically exported from code.google.com/p/activationbymail
0 stars 0 forks source link

prestashop 1.5.2 problem #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.activation link
2.
3.

What is the expected output? What do you see instead?
I expect to see the activation success page, instead i see a page not found 404 

What version of the product are you using? On what operating system?
last version of module on prestashop 1.5.2 

Please provide any additional information below.

Original issue reported on code.google.com by O.Shayes...@gmail.com on 14 Jul 2013 at 10:20

GoogleCodeExporter commented 9 years ago
I found the problem :
in file "activationbymail.php"
  line 73
  the '&link=' should be replaced by '?link=' 

Original comment by O.Shayes...@gmail.com on 14 Jul 2013 at 2:53

GoogleCodeExporter commented 9 years ago
If "Friendly URL's" option is activated, your modification is ok, but if that 
option is not active, you must use '&link='. So, I modified the file 
'activationbymail.php' like this:

"$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;
}  "

I check if "Friendly URL's" option is activated or not to compose the 
activation link.

Hope that helps.

Original comment by vlad.ghe...@gmail.com on 29 Oct 2013 at 12:32

GoogleCodeExporter commented 9 years ago
Hello vlad.ghe...@gmail.com

Your code works good, thanks a lot, but another problem i am getting is:

I tested as a unregistered customer, added few items in cart, and then in check 
out,
i registered as a new customer then got verification mail, Backend Customer 
status is also Enabled, after clicking verification mail. Everything is perfect 
until this.

Problem:
Following email verification URL the landing page is: "Your Account is 
Activated". Not the (step 2, customer address). So here what i am coming to 
tell is the purchase continuity is missing, ordered items in cart is missing as 
well as not logged in.

How to fix this please help.
My Prestashop Version is 1.5.4.1

Thank you

Original comment by boj...@gmail.com on 4 Dec 2013 at 7:20

GoogleCodeExporter commented 9 years ago
Author, can u provide pls some fixes to this module in order to cart products 
remain there

Original comment by sergiu.g...@omnisourcetech.com on 13 Jan 2014 at 5:20