Skip to main content

Connexion impossible

More
10 years 5 months ago - 10 years 5 months ago #236599 by chlyroju
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6.20

Bonsoir,
Sur le site, seul nos distributeurs peuvent commander nos produits.
J'ai donc interdit l'enregistrement dans les paramètres utilisateurs de Joomla.
Le formulaire d’enregistrement est donc absent
Pour me connecter, je saisi donc l'identifiant et le mot de passe pour me connecter mais le bouton "Connexion" en sans effet, impossible de se connecter.
Pouvez-vous m'aider ?
Merci
Cordialement
Christian
Last edit: 10 years 5 months ago by chlyroju.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236676 by Xavier
Replied by Xavier on topic Connexion impossible
Bonjour,

Cela semble plus relever d'un soucis dans Joomla que dans HikaShop.

A quel bouton "connexion" faite vous référence ? Celui dans le passage en caisse HikaShop ?
Si oui, Si vous publiez un module de connexion Joomla, est-ce fonctionnel ?

Avez vous essayé depuis un autre navigateur ? Peut être un soucis de session.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236691 by chlyroju
Replied by chlyroju on topic Connexion impossible
Oui je parle bien du passage en caisse d'Hikashop.
Le problème est identique avec Chrome par exemple
Avec un module de connexion joomla, pas de problème

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago - 10 years 5 months ago #236699 by Xavier
Replied by Xavier on topic Connexion impossible
Merci d'éditer la vue "checkout / login_form" et d'y ajouter le code suivant:
Code:
<?php $js =' if (typeof hikashopSubmitForm != \'function\') { function hikashopSubmitForm(form, action) { var button = document.getElementById(\'login_view_action\'), currentForm = document.forms[form]; if(!currentForm) return false; if (form=="hikashop_checkout_form") { if(action && action == "login") { hikashopSubmitFormLog(form,button,currentForm); return false; } if(action && action == "register") { hikashopSubmitFormRegister(form,button,currentForm); return false; } var registrationMethod = currentForm.elements["data[register][registration_method]"]; if (registrationMethod) { if (registrationMethod[0].id == "data[register][registration_method]login" && registrationMethod[0].checked) hikashopSubmitFormLog(form,button,currentForm); else hikashopSubmitFormRegister(form,button,currentForm); } else { var usernameValue = "", passwdValue = "", d = document, el = null; el = d.getElementById("username"); if(el) usernameValue = el.value; el = d.getElementById("passwd"); if(el) passwdValue = el.value; var registeremailValue = "", registeremailconfValue = "", firstnameValue = "", lastnameValue = ""; el = d.getElementById("register_email"); if(el) registeremailValue = el.value; el = d.getElementById("register_email_confirm"); if(el) registeremailconfValue = el.value; el = d.getElementById("address_firstname"); if(el) firstnameValue = el.value; el = d.getElementById("address_lastname"); if(el) lastnameValue = el.value; if (usernameValue != "" && passwdValue != "") { hikashopSubmitFormLog(form,button,currentForm); } else if ((usernameValue != "" || passwdValue != "") && (registeremailValue == "" && registeremailconfValue == "" && firstnameValue == "" && lastnameValue == "")) { hikashopSubmitFormLog(form,button,currentForm); } else { hikashopSubmitFormRegister(form,button,currentForm); } } } else if(form == "hikashop_registration_form") { hikashopSubmitFormRegister(form,button,currentForm); } return false; } function hikashopSubmitFormRegister(form,button,currentForm) { if ( hikashopCheckChangeForm("register",form) && hikashopCheckChangeForm("user",form) && hikashopCheckChangeForm("address",form) ) { if(button) button.value="register"; currentForm.submit(); } } function hikashopSubmitFormLog(form,button,currentForm) { if(button) button.value="login"; currentForm.submit(); } var hkKeyPress = function(e){ var keyCode = (window.event) ? e.which : e.keyCode; if (keyCode != 13) return true; if (e.srcElement) elem = e.srcElement; else if (e.target) elem = e.target; if( elem.name == "username" || elem.name == "passwd" ){ var button = document.getElementById("login_view_action"), currentForm = document.forms["hikashop_checkout_form"]; if(currentForm && button){ hikashopSubmitFormLog("hikashop_checkout_form",button,currentForm); if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); } e.returnValue = false; return false; } }else{ // call hikashopSubmitFormRegister if the name of the field starts with data[register] or data[address] } return true; } if(document.addEventListener) document.addEventListener("keypress", hkKeyPress); else document.attachEvent("onkeypress", hkKeyPress); } '; if (!HIKASHOP_PHP5) { $doc =& JFactory::getDocument(); }else{ $doc = JFactory::getDocument(); } $doc->addScriptDeclaration("\n<!--\n".$js."\n//-->\n"); ?>
Last edit: 10 years 5 months ago by nicolas. Reason: fix code

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236796 by chlyroju
Replied by chlyroju on topic Connexion impossible
Bonjour,
J'ai ajouté le code dans la vue checkout / login_form, à la suite du code existant, de tous les templates puisqu'il y en a 4 différents.
Lorsque je clique sur le bouton "Terminer ma commande" dans le panier j'arrive sur une page blanche (voir image ci-jointe)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236816 by chlyroju
Replied by chlyroju on topic Connexion impossible
Re
J'ai installé en local 2 sauvegardes:
1 en 3.4.8
et 1 en 3.5.0
Le problème est identique!
Cordialement

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236832 by nicolas
Replied by nicolas on topic Connexion impossible
Bonjour,

Je ne vois pas pourquoi cela ferait une page blanche à moins que le code n'est pas été copier/coller au bon endroit.
Pourriez vous fournir une copie du code de la vue après modification ?
Aussi, activez l'option "error reporting" de la configuration joomla et raffichez la page avec le soucis et cela affichera un message d'erreur expliquant d'où vient le problème avec cette modification.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago - 10 years 5 months ago #236925 by chlyroju
Replied by chlyroju on topic Connexion impossible
Bonsoir,
J'ai mis le Rapport d'erreurs à Développement, mais il n'y a pas de message d'erreur
Vous pouvez créer une commande si vous voulez. pour voir !
Je peux vous donner un accès à l'admin si besoin ?

Voici le code après du code envoyé :
Je la'i mis à la suite du code existant
Code:
<?php /** * @package HikaShop for Joomla! * @version 2.6.2 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php if(JPluginHelper::isEnabled('authentication', 'openid')) { $lang = &JFactory::getLanguage(); $lang->load( 'plg_authentication_openid', JPATH_ADMINISTRATOR ); $langScript = 'var JLanguage = {};'. ' JLanguage.WHAT_IS_OPENID = \''.JText::_( 'WHAT_IS_OPENID' ).'\';'. ' JLanguage.LOGIN_WITH_OPENID = \''.JText::_( 'LOGIN_WITH_OPENID' ).'\';'. ' JLanguage.NORMAL_LOGIN = \''.JText::_( 'NORMAL_LOGIN' ).'\';'. ' var comlogin = 1;'; $document = &JFactory::getDocument(); $document->addScriptDeclaration( $langScript ); JHTML::_('script', 'openid.js'); } if(!HIKASHOP_RESPONSIVE) { ?> <p id="com-form-login-username"> <label for="username"><?php echo JText::_('HIKA_USERNAME') ?></label><br /> <input name="username" id="username" type="text" class="inputbox" alt="username" size="18" /> </p> <p id="com-form-login-password"> <label for="passwd"><?php echo JText::_('HIKA_PASSWORD') ?></label><br /> <input type="password" id="passwd" name="passwd" class="inputbox" size="18" alt="password" /> </p> <?php if(JPluginHelper::isEnabled('system', 'remember')) : ?> <p id="com-form-login-remember"> <label for="remember"><?php echo JText::_('HIKA_REMEMBER_ME') ?></label> <input type="checkbox" id="remember" name="remember" value="yes" alt="Remember Me" /> </p> <?php endif; ?> <?php echo $this->cart->displayButton(JText::_('HIKA_LOGIN'),'login',@$this->params,'',' hikashopSubmitForm(\'hikashop_checkout_form\', \'login\'); return false;'); $button = $this->config->get('button_style','normal'); if ($button=='css') echo '<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/></input>'; ?> <?php if(!HIKASHOP_J16){ $reset = 'index.php?option=com_user&view=reset'; $remind = 'index.php?option=com_user&view=remind'; }else{ $reset = 'index.php?option=com_users&view=reset'; $remind = 'index.php?option=com_users&view=remind'; } ?> <ul> <li> <a href="<?php echo JRoute::_( $reset ); ?>"> <?php echo JText::_('HIKA_FORGOT_YOUR_PASSWORD'); ?></a> </li> <li> <a href="<?php echo JRoute::_( $remind ); ?>"> <?php echo JText::_('HIKA_FORGOT_YOUR_USERNAME'); ?></a> </li> </ul> <?php } else { ?> <div class="userdata form-inline"> <div id="form-login-username" class="control-group"> <div class="controls"> <div class="input-prepend input-append"> <span class="add-on"> <i class="icon-user tip" title="<?php echo JText::_('HIKA_USERNAME'); ?>"></i> <label for="modlgn-username" class="element-invisible"><?php echo JText::_('HIKA_USERNAME'); ?></label> </span> <input id="modlgn-username" type="text" name="username" class="input-small" tabindex="1" size="18" placeholder="<?php echo JText::_('HIKA_USERNAME'); ?>" /> <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind');?>" class="btn hasTooltip" title="<?php echo JText::_('HIKA_FORGOT_YOUR_USERNAME'); ?>"><i class="icon-question-sign"></i></a> </div> </div> </div> <div id="form-login-password" class="control-group"> <div class="controls"> <div class="input-prepend input-append"> <span class="add-on"> <i class="icon-lock tip" title="<?php echo JText::_('HIKA_PASSWORD') ?>"></i> <label for="modlgn-passwd" class="element-invisible"><?php echo JText::_('HIKA_PASSWORD') ?></label> </span> <input id="modlgn-passwd" type="password" name="passwd" class="input-small" tabindex="2" size="18" placeholder="<?php echo JText::_('HIKA_PASSWORD') ?>" /> <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset');?>" class="btn hasTooltip" title="<?php echo JText::_('HIKA_FORGOT_YOUR_PASSWORD'); ?>"><i class="icon-question-sign"></i></a> </div> </div> </div> <?php if(JPluginHelper::isEnabled('system', 'remember')) { ?> <div id="form-login-remember" class="control-group checkbox"> <label for="modlgn-remember" class="control-label"><?php echo JText::_('HIKA_REMEMBER_ME') ?></label> <input id="modlgn-remember" type="checkbox" name="remember" value="yes"/> </div> <?php } ?> <div id="form-login-submit" class="control-group"> <div class="controls"> <?php echo $this->cart->displayButton(JText::_('HIKA_LOGIN'), 'login', @$this->params, '',' var b = document.getElementById(\'login_view_action\'); if(b) { b.value = \'login\'; } document.hikashop_checkout_form.submit(); return false;','', 0, 1, 'btn btn-primary'); ?> </div> </div> </div> <?php } ?> <?php $js =' if (typeof hikashopSubmitForm != 'function') { function hikashopSubmitForm(form, action) { var button = document.getElementById(\'login_view_action\'), currentForm = document.forms[form]; if(!currentForm) return false; if (form=="hikashop_checkout_form") { if(action && action == "login") { hikashopSubmitFormLog(form,button,currentForm); return false; } if(action && action == "register") { hikashopSubmitFormRegister(form,button,currentForm); return false; } var registrationMethod = currentForm.elements["data[register][registration_method]"]; if (registrationMethod) { if (registrationMethod[0].id == "data[register][registration_method]login" && registrationMethod[0].checked) hikashopSubmitFormLog(form,button,currentForm); else hikashopSubmitFormRegister(form,button,currentForm); } else { var usernameValue = "", passwdValue = "", d = document, el = null; el = d.getElementById("username"); if(el) usernameValue = el.value; el = d.getElementById("passwd"); if(el) passwdValue = el.value; var registeremailValue = "", registeremailconfValue = "", firstnameValue = "", lastnameValue = ""; el = d.getElementById("register_email"); if(el) registeremailValue = el.value; el = d.getElementById("register_email_confirm"); if(el) registeremailconfValue = el.value; el = d.getElementById("address_firstname"); if(el) firstnameValue = el.value; el = d.getElementById("address_lastname"); if(el) lastnameValue = el.value; if (usernameValue != "" && passwdValue != "") { hikashopSubmitFormLog(form,button,currentForm); } else if ((usernameValue != "" || passwdValue != "") && (registeremailValue == "" && registeremailconfValue == "" && firstnameValue == "" && lastnameValue == "")) { hikashopSubmitFormLog(form,button,currentForm); } else { hikashopSubmitFormRegister(form,button,currentForm); } } } else if(form == "hikashop_registration_form") { hikashopSubmitFormRegister(form,button,currentForm); } return false; } function hikashopSubmitFormRegister(form,button,currentForm) { if ( hikashopCheckChangeForm("register",form) && hikashopCheckChangeForm("user",form) && hikashopCheckChangeForm("address",form) ) { if(button) button.value="register"; currentForm.submit(); } } function hikashopSubmitFormLog(form,button,currentForm) { if(button) button.value="login"; currentForm.submit(); } var hkKeyPress = function(e){ var keyCode = (window.event) ? e.which : e.keyCode; if (keyCode != 13) return true; if (e.srcElement) elem = e.srcElement; else if (e.target) elem = e.target; if( elem.name == "username" || elem.name == "passwd" ){ var button = document.getElementById("login_view_action"), currentForm = document.forms["hikashop_checkout_form"]; if(currentForm && button){ hikashopSubmitFormLog("hikashop_checkout_form",button,currentForm); if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); } e.returnValue = false; return false; } }else{ // call hikashopSubmitFormRegister if the name of the field starts with data[register] or data[address] } return true; } if(document.addEventListener) document.addEventListener("keypress", hkKeyPress); else document.attachEvent("onkeypress", hkKeyPress); } '; if (!HIKASHOP_PHP5) { $doc =& JFactory::getDocument(); }else{ $doc = JFactory::getDocument(); } $doc->addScriptDeclaration("\n<!--\n".$js."\n//-->\n"); ?>
Last edit: 10 years 5 months ago by chlyroju.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236935 by nicolas
Replied by nicolas on topic Connexion impossible
Hi,

Thank you. I see the problem. Change the line:
if (typeof hikashopSubmitForm != 'function') {
to:
if (typeof hikashopSubmitForm != \'function\') {
in the code Xavier gave and that will fix the problem of the blank page.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #236998 by chlyroju
Replied by chlyroju on topic Connexion impossible
Bonsoir,
Le problème de connexion est résolu, cependant après la connexion, le formulaire de connexion reste présent sur la page.
Voir l'image jointe de la page après connexion
Merci pour votre aide
Cordialement

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #237000 by nicolas
Replied by nicolas on topic Connexion impossible
Bonjour,

Pouvez vous confirmé que vous avez une entrée pour cet utilisateur dans le menu Clients d'HikaShop et que vous avez le plugin "HikaShop user synchronization" d'activé dans le gestionnaire de plugins de Joomla ?

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #237016 by chlyroju
Replied by chlyroju on topic Connexion impossible
Bonjour,
Effectivement, il n'y avait pas d'entrée pour cet utilisateur
Le plugin "HikaShop user synchronization" était bien activé.
Tout à l'air de bien fonctionner désormais
Faut que je vérifie !
Merci
Cordialement

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #237144 by chlyroju
Replied by chlyroju on topic Connexion impossible
Bonjour,
Tout fonctionne correctement.
Je vous remercie d'avoir pris du temps pour m'aider à régler les problèmes du site internet
Cordialement
Christian

Please Log in or Create an account to join the conversation.

Time to create page: 0.262 seconds
Powered by Kunena Forum