Jump to content

Jake Tran

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Jake Tran

  1. this is full code of this hook from line 360- 380, im using prestashop 1.6, please correct me: protected function processCustomerNewsletter(&$customer) { $blocknewsletter = Module::isInstalled('blocknewsletter') && $module_newsletter = Module::getInstanceByName('blocknewsletter'); if ($blocknewsletter && $module_newsletter->active && !Tools::getValue('newsletter')) { if (is_callable(array($module_newsletter, 'isNewsletterRegistered')) && $module_newsletter->isNewsletterRegistered(Tools::getValue('email')) == $module_newsletter::GUEST_REGISTERED) { /* Force newsletter registration as customer as already registred as guest */ $_POST['newsletter'] = true; } } if (Tools::getValue('newsletter')) { $customer->newsletter = true; $customer->ip_registration_newsletter = pSQL(Tools::getRemoteAddr()); $customer->newsletter_date_add = pSQL(date('Y-m-d H:i:s')); /** @var Blocknewsletter $module_newsletter */ if ($blocknewsletter && $module_newsletter->active) { $module_newsletter->confirmSubscription(Tools::getValue('email')); } } }
  2. hello all, im new, when i upload my shop to server i can not use sign in funtion, when i click sign in it show me an error below any idea is very important to me, please help ! Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/a5654308/public_html/controllers/front/AuthController.php on line 364
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More