Jump to content

Luizsb

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Luizsb's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Na minha página o módulo do Checkout transparente está dando 500 server error, no endereço module/fkpagseguroct/validation, também uso o Hostgator, alguma ideia do que pode ser?
  2. I have the same problem after update the module. My site www.afroditeseducao.com.br, isn't work analytics. There are anyone how really solve it?
  3. I think I found the better solution: http://www.prestashop.com/forums/topic/111298-how-to-redirect-user-to-the-original-page-after-authentication/page__view__findpost__p__690504
  4. Hi guys, I found the solution. I don't know if this is the best way, but it's working pretty good! I've changed 2 files. STEP 1 - FrontController.php Where you find this: if ($this->auth AND !$cookie->isLogged($this->guestAllowed)){ Tools::redirect('authentication.php'.($this->authRedirection ? '?back='.$this->authRedirection : '')); } change for: if ($this->auth AND !$cookie->isLogged($this->guestAllowed)){ if ($this->authRedirection === 'back') { $this->authRedirection = Tools::safeOutput(urldecode($_SERVER['REQUEST_URI'])); } Tools::redirect('authentication.php'.($this->authRedirection ? '?back='.$this->authRedirection : '')); } The conditional ($this->authRedirection === 'back') will be used in the ProductController.php or wherever you want. STEP 2 - ProductController.php I put new public var to the Class public $auth = true; public $authRedirection = 'back'; When you do that, every time when the user is not logged, he will be redirect to Autentication, so he need to log in and then he will be redirect to the previous page. I've made just for the Product, but you can do for the Category, and everything else. You just need to do the 2nd Step again. I hope I helped! If you have a better solution, please write back!
  5. Hi guys, I've been searching for this solution long time... Did someone solved it? I'd like to redirect the user to the previous page. My problem is... When the customer comes from a product page (id_product=N) and he's not logged, he goes to authentication. But after his login I'd like to redirect to the product page (id_product=N) where he cames from. I've already changed the ProductController.php, inserting: public $auth = true; public $authRedirection = 'product.php'; But the customer is redirected to the product page without id_product and shows a error. Could someone help me? Thanks in advance!
  6. Hi guys, I've been searching for this solution long time... Did someone solved it? Could someone help me? Thanks in advance!
×
×
  • Create New...