Jump to content

Redirection Problems (Add to Cart and Login)


Recommended Posts

Hello,

 

newbie here, I'll go directly to the point:

 

OK, I got this one working (by simply doing what I've said below), but now the problem is when i want to login through the checout, any thoughs?

 

On user login, I want it to redirect to the check-out page.

 

In order to do this I followed what I found in the forums, and it was to edit the AuthController.php (root/prestashop/controllers/front) .

 

Edited it to change my-account to order-opc it worked once, then i keep getting:

 

index.php?controller=authentication&back=my-account

 

So I'm editing the correct file? or I'm missing something?

 

 

 

 

 

SOLUTION: It had to do with the them I was using, which where using ajax.

Second, quite related is:

 

On add to cart (in product.tpl), I want it to redirect to the check-out page.

 

I also researched, and found the simple answer of: BackOffice > Preference > Products > Redirect after adding product to cart -> Cart Summary.

 

But this ain't working, is there something like in the first case, where I can make it go to the checkout page?

 

What it drives me mad, is that I've already disabled ajax "add to cart" in product-list.tpl , but for some reason I can't in product.tpl, and so it keeps using the ajax, since it an input, and not a button and I believe this is the source of my problem (?).

 

 

 

 

Thanks in advance,

 

Cheers.

Edited by Minkiu (see edit history)
Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...