Модуль [old] Каталог модулей PrestaShop 1.5 - 1.6

Статус
В этой теме нельзя размещать новые ответы.

Alexpro2011

Мой дом здесь!
Регистрация
11 Дек 2012
Сообщения
127
Реакции
292
Последнее редактирование модератором:
Wow, thanks! Please any changelog? Appreciate your share
 
Happy New Year has you all without forgetting our moderators friends ..
Module Connect with Facebook , Для просмотра ссылки Войди или Зарегистрируйся

To have a button on header :

First create a file connect_top.tpl with in :

{if $fbconnect_link}
<a href="{$fbconnect_link|escape}" title="{$fbconnect_title|escape}" >
Connexion Facebook
</a>
{/if}

Then in the file fb connect.php add in the install function
A line below rightCollumn :


!$this->registerHook(top) ||

Then always in the same file after the function :

public function hookRightColumn($params)
{
return $this->hookLeftColumn($params);
}

Add a function :

public function hookTop($params)
{
$logout_url= $this->context->smarty->tpl_vars['base_dir']->value .'modules/fbconnect/logout.php';
$login_url= $this->context->smarty->tpl_vars['base_dir']->value .'modules/fbconnect/login.php';
$fbconnect_result=$this->fbconnect($logout_url,$login_url);
if ($fbconnect_result!=false) {
if ($fbconnect_result['facebook_loginUrl']<>'' and !$this->context->customer->isLogged()) {
$fbconnect_link=$fbconnect_result['facebook_loginUrl'];
$fbconnect_logout='';
$fbconnect_email='';
$fbconnect_firstname='';
$fbconnect_lastname='';
$fbconnect_gender='';
$fbconnect_image='facebook_connect_fr.png';
} elseif ($fbconnect_result['facebook_loginUrl']<>'' and $this->context->customer->isLogged()) {
$fbconnect_link='';
$fbconnect_logout='';
$fbconnect_email='';
$fbconnect_firstname='';
$fbconnect_lastname='';
$fbconnect_gender='';
$fbconnect_image='';
} else {
$fbconnect_link='';
$fbconnect_logout=$fbconnect_result['facebook_logoutUrl'];
$fbconnect_email=$fbconnect_result['facebook_email'];
$fbconnect_firstname=$fbconnect_result['facebook_firstname'];
$fbconnect_lastname=$fbconnect_result['facebook_lastname'];
$fbconnect_gender=$fbconnect_result['facebook_gender'];
$fbconnect_image='facebook_logout_fr.png';
}
$this->smarty->assign(array(
'fbconnect_title' => Configuration::get('PS_FBCONNECT_TITLE'),
'fbconnect_title_logout' => 'Déconnexion Facebook',
'fbconnect_image' => $fbconnect_image,
'fbconnect_link' => $fbconnect_link,
'fbconnect_logout' => $fbconnect_logout
));
return $this->display(__FILE__, 'connect_top.tpl');
}

}


 

Вложения

  • fbconnect.zip
    185,1 KB · Просмотры: 83
Последнее редактирование:

Вложения

  • prestashop_magicscroll_v2.0.26.rar
    140,6 KB · Просмотры: 286
Módulo ONEPAGE PS 2.2.4 99 euros
Для просмотра ссылки Войди или Зарегистрируйся

Скрытое содержимое доступно для зарегистрированных пользователей!
 
Последнее редактирование:
Abandoned Cart Reminder Pro Module by Prestashop 119,99 €

  • Compatibilityv1.6.0.4 - v1.7.0.3
  • Version 1.7.15 (12/21/2016)
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху