Jump to content

Recommended Posts

Bonjour,

Mes clients rapportent un bug. Dès qu'ils se connectent à leur compte et qui veulent commander, aucune méthode de paiement n'apparait et pourtant ils sont bien identifié, il faut obligatoirement rafraichir la page pour voir les méthodes de paiement. Connaissez vous ce problème et pouvez-vous m'aider ?

 

Merci

Sylvain

 

post-72700-0-11207600-1396006725_thumb.png

Link to comment
Share on other sites

Oups pas fait attention ... Si il faut rafraichir la page c'est qu'il y a un soucis pendant la génération des cookies il me semble ;)

 

Mais qu'en est il au niveau la partie "CCC" dans l'onglet performances de votre back office ? ON ou OFF ? j'avais eu ce problème avec une version antérieure de presta

Link to comment
Share on other sites

"Smart cache" pour les feuilles de style ON

 

"Smart cache" pour le code JavaScript ON

 

Réduction du code HTML OFF (fonctionnement classique)

 

Compression du JavaScript dans le code HTML OFF (fonctionnement classique)

Link to comment
Share on other sites

C'est Ok chez moi sur Firefox et Chrome

 

Me suis inscrit puis déconnecté puis ajout panier puis commander, connexion et hop les paiements apparaissent ;)

 

J'ai ensuite redéco et reco ^^ 4 tests et toujours Ok sur deux nav différents...

Link to comment
Share on other sites

Alors çà ne marche toujours pas sur les deux mêmes navigateurs que vous, ci-dessous mon process

Si vous pouvez appliquer le même et me faire un retour. Merci

 

- je suis déconnecté

- je mets un produit dans le panier

- je vais dans mon panier

- "déjà inscrit" je renseigne mon pass et mon mail

- je m'identifie

- je vois mes adresse mais aucun modes de paiement

"Merci de vous connecter pour voir les méthodes de paiement"

Link to comment
Share on other sites

Effectivement ca ne fonctionne plus mais j'ai trouvé le problème au niveau des requetes envoyés pendant l'authentification.

 

Pouvez vous me copier l'ensemble de la partie <head> ... </head> qui se situe dans votre fichier header.tpl

 

Il y a un commentaire sur un script qui n'a rien à faire là avec la notice de prestashop au milieu... assez bizarre

Link to comment
Share on other sites

je viens d'essayer de mon coté :

- j'ai mis un truc en panier, j'ai cliqué sur commander

- j'ai créé un compte, et saisi une adresse

- message "merci de vous connecter pour voir les méthodes de paiement"

- j'ai cliqué en haut sur "mon compte"

- je suis retourné dans le panier

- j'ai bien les moyens de paiement

 

bizarre et emmerdant, comme pb !

  • Like 1
Link to comment
Share on other sites

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:


* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

*  @author PrestaShop SA <[email protected]>

*  @copyright  2007-2012 PrestaShop SA

*  @version  Release: $Revision: 6594 $

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)

*  International Registered Trademark & Property of PrestaShop SA

*}

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="{$lang_iso}"> <![endif]-->

<!--[if IE 7]> <html class="no-js ie7 lt-ie9 lt-ie8" lang="{$lang_iso}"> <![endif]-->

<!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="{$lang_iso}"> <![endif]-->

<!--[if gt IE 8]> <html class="no-js ie9" lang="{$lang_iso}"> <![endif]-->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">

<head>

<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>

{if isset($meta_description) AND $meta_description}

<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />

{/if}

{if isset($meta_keywords) AND $meta_keywords}

<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />

{/if}

<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

{if !$PS_ALLOW_MOBILE_DEVICE}

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

{/if}

<meta http-equiv="content-language" content="{$meta_language}" />

<meta name="generator" content="PrestaShop" />

<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

<link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" />

<link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" />

<script type="text/javascript">

var baseDir = '{$content_dir}';

var baseUri = '{$base_uri}';

var static_token = '{$static_token}';

var token = '{$token}';

var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};

var priceDisplayMethod = {$priceDisplay};

var roundMode = {$roundMode};

</script>

{if isset($css_files)}

{foreach from=$css_files key=css_uri item=media}

<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />

{/foreach}

{/if}

<link media="all" type="text/css" rel="stylesheet" href="{$css_dir}style/classic.css" />

{if !$PS_ALLOW_MOBILE_DEVICE}

<link media="all" type="text/css" rel="stylesheet" href="{$css_dir}responsive.css" />

{/if}

<link href="http://fonts.googleapis.com/css?family=Oswald:400,300" rel="stylesheet" type="text/css" />

 

{if isset($js_files)}

{foreach from=$js_files item=js_uri}

<script type="text/javascript" src="{$js_uri}"></script>

{/foreach}

{/if}

<script type="text/javascript" src="{$js_dir}custom.js"></script>

{if $page_name=='index'}<script type="text/javascript" src="{$js_dir}jquery.flexslider-min.js"></script>{/if}

<script type="text/javascript" src="{$js_dir}overthrow.js"></script>

 

{$HOOK_HEADER}

</head>

 

<body {if isset($page_name)}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if} class="pimpmytheme gradient radius">

{if !$content_only}

{if isset($restricted_country_mode) && $restricted_country_mode}

<div id="restricted-country">

<p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>

</div>

{/if}

 

<div id="page">

<!-- Header -->

<div id="header">

<div class="container">

<div class="row-fluid">

<div id="header_left" class="span4">

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo scale" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" />

</a>

</div>

<div id="header_right" class="span8">

{$HOOK_TOP}

</div>

</div>

</div>

</div>

 

<div id="columns" class="clearfix">

<div class="container">

<div class="row-fluid">

 

{if $page_name=='category'} 

<!-- Left -->

<div id="left_column" class="column span3 hidden-phone">

{$HOOK_LEFT_COLUMN}

</div>

{/if}

 

<!-- Center -->

<div id="center_column" class="{if $page_name=='category'|| $page_name=='index' || $page_name=='cms' }span9{else}span12{/if}">

 

{/if}

 

Link to comment
Share on other sites

Rien à signaler dans le header.tpl

 

Le problème est apparut depuis peu ? Vous avez ajouter un modules greffé au Header recemment ?

 

Je retrouve ceci en dessous du code analytics :

<script type="text/javascript">/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/



$(document).ready( function() {

	$('#payment_paypal_express_checkout').click(function() {
		$('#paypal_payment_form').submit();
		return false;
	});

	$('#paypal_payment_form').live('submit', function() {
		var nb = $('#quantity_wanted').val();
		var id = $('#idCombination').val();

		$('#paypal_payment_form input[name=quantity]').val(nb);
		$('#paypal_payment_form input[name=id_p_attr]').val(id);
	});

	function displayExpressCheckoutShortcut() {
		var id_product = $('input[name="id_product"]').val();
		var id_product_attribute = $('input[name="id_product_attribute"]').val();

		$.ajax({
			type: "GET",
			url: baseDir+'/modules/paypal/express_checkout/ajax.php',
			data: { get_qty: "1", id_product: id_product, id_product_attribute: id_product_attribute },
			cache: false,
			success: function(result) {
				if (result == '1') {
					$('#container_express_checkout').slideDown();
				} else {
					$('#container_express_checkout').slideUp();
				}
				return true;
			}
		});
	}

	$('select[name^="group_"]').change(function () {
		displayExpressCheckoutShortcut();
	});

	$('.color_pick').click(function () {
		displayExpressCheckoutShortcut();
	});
	
	
			

	var modulePath = 'modules/paypal';
	var subFolder = '/integral_evolution';
	var fullPath = baseDir + modulePath + subFolder;
	var confirmTimer = false;
		
	if ($('form[target="hss_iframe"]').length == 0) {
		if ($('select[name^="group_"]').length > 0)
			displayExpressCheckoutShortcut();
		return false;
	} else {
		checkOrder();
	}

	function checkOrder() {
		confirmTimer = setInterval(getOrdersCount, 1000);
	}

		function getOrdersCount() {
		$.get(
			fullPath + '/confirm.php',
			{ id_cart: '130' },
			function (data) {
				if ((typeof(data) != 'undefined') && (data > 0)) {
					clearInterval(confirmTimer);
					window.location.replace(fullPath + '/submit.php?id_cart=130');
					$('p.payment_module, p.cart_navigation').hide();
				}
			}
		);
	}
	});


</script>

Bizarre qu'en actualisant on puisse voir les modes de paiements

 

Donc je vous conseille de désactiver un à un les modules accroché à votre Hook header jusqu'à trouver le module responsable

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

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...