Jump to content

Résolu - Problème affichage deuxième page produit


Recommended Posts

Bonjour à tous,

 

Je rencontre actuellement un problème avec mon catalogue produit.

 

Lorsque que j’accède à la première page d’une de mes catégories l’ensemble des produits s’affiche normalement (paramétré sur 12 produits par page).

 

Par contre lorsque je souhaite accéder à la deuxième page, aucun produit ne s’affiche. J’ai simplement droit au message : « Il n’y a pas de produit ».

 

Pourtant j’ai plus de cinquante produits rentrés en BO.

 

Je suis actuellement sur prestashop 1.6.0.9.

 

D’avance merci pour votre aide. 

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

Bonjour,

Il y a en effet un probleme sur la page appelé :

Lien actuel pour la page 2 de collection/gateaux : http://delalleau.fr/PrestaShop/5-gateaux#

Lien corrigé qui fonctionne : http://delalleau.fr/PrestaShop/5-gateaux?p=2

 

Par contre , je ne l'explique pas, a part le htacces qui merdouillerait.

Pouvez vous désactiver la réecriture pour voir si le probleme perciste ?

Link to comment
Share on other sites

Merci pour le retour.

 

Parle-t-on biend de la même chose pour "désactiver la réecriture"  ?

 

> Préférences > SEO & URL > Configuration des URL

 

Voilà ce que j'ai

 

URL simplifiée : oui

URL accentuées : non

Désactiver l'option MultiViews d'Apache : non
Désactiver le module mod_security d'Apache : non
Link to comment
Share on other sites

T'as trouver la seule categorie qui fonctionne lol !

Si tu prends la categorie collection/gateaux, y'a un # dans l'url (pour la page 2)

 

Bien vu x)

 

Bizarre comme souci.

J'ai pas trop d'idée la.

En général, si la pagination déconne, la navigation à facette est pas loin, mais elle ne semble pas activé la :/

 

Aucune modification n'a été faite sur le pagination.tpl de votre thème ?

Link to comment
Share on other sites

Pour revenir sur le post de Szed

 

"Chez moi c'est bon la. La pagination m'emmene sur : 

http://delalleau.fr/...er=category&p=2

Et j'ai bien douze produit."

 

En fait la pagination sur les liens de deuxième niveau de l'arbo Collections > Pâtisserie fonctionnent: http://delalleau.fr/PrestaShop/index.php?id_category=4&controller=category&p=2

Mais dès que l'on descend d'un niveau, là, la pagination en deuxième page ne fonctionne plus : http://delalleau.fr/PrestaShop/index.php?id_category=5&controller=category

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

Voici :

 

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
RewriteRule . - [E=REWRITEBASE:/PrestaShop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
ErrorDocument 404 /PrestaShop/index.php?controller=404
 
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
 
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
 
RewriteEngine on
RewriteRule . - [E=REWRITEBASE:/PrestaShop/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
 
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>
 
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
 
#If rewrite mod isn't enabled
ErrorDocument 404 /PrestaShop/index.php?controller=404
 
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Link to comment
Share on other sites

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...