[Skip to main content](#vessel-content)

#   prec suiv bug sur prod non publie

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago -  14 years 8 months ago [\#43555](#43555) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[prec suiv bug sur prod non publie](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43555 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit

Last edit: 14 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86570
- Thank you received: 14314
-
-

14 years 8 months ago [\#43556](#43556) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43556 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

C'est l'option "Afficher les raccourcis vers les autres produits de la catégorie" de l'onglet affichage de la configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago [\#43558](#43558) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43558 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

et dans show.php

merci nickel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago -  14 years 8 months ago [\#43563](#43563) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43563 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

par contre il navigue dans les produits non publies donc ca génère une erreur produit non trouve

et il ne navigue pas dans la collection courante , je navigue dans les bottes je trouve des sandales

où est la requête qui genere ça ? je veux mettre publish = 1 et le bon category_id ?

merci

Last edit: 14 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86570
- Thank you received: 14314
-
-

14 years 8 months ago [\#43566](#43566) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43566 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

Ah oui en effet.

Il faut modifier cela dans la fonction "show" du view.html.php de la vue product.
J'ai corrigé cela dnas le paquet sur notre serveur si vous voulez voir ce qu'il faut faire (ou tout simplement réinstaller le nouveau paquet).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago -  14 years 8 months ago [\#43567](#43567) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43567 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

je teste de suite

en tout cas merci pour la rapidité

Last edit: 14 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago [\#43568](#43568) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43568 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

ça marche pour les produits publies mais pas pour les catégories
Code:

SELECT a.product_id FROM sacfr_hikashop_product_category AS a LEFT JOIN sacfr_hikashop_product AS b ON a.product_id=b.product_id WHERE b.product_published=1 AND a.category_id = [b]56[/b] AND (b.product_access = 'all' OR b.product_access LIKE '%,1,%') AND b.product_quantity!=0 ORDER BY a.ordering ASC

**j'ai teste sur la catégorie 244 et il cherche sur la 56** , ça ne marche que si le produit n'est que dans une seule catégorie ON a.product_id=b.product_id il faut pouvoir recuperer la categorie selectionne et la garder qquepart

sinon la navigation dans les produits perds tout son intérêt

comment recuperez vous la categorie courante ou la derniere categorie selectionnee , session ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86570
- Thank you received: 14314
-
-

14 years 8 months ago [\#43574](#43574) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43574 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

En effet, le système charge la première catégorie du produit.

Normalement, la catégorie d'où l'on vient est passé dans le paramètre category_pathway de l'URL (a moins que vous ayez activé l'option pour le fil d'ariane simplifié dans la conf). Donc il suffit de faire comme cela:
$category_id = JRequest::getInt('category_pathway',0);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago [\#43576](#43576) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43576 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

non en SEF il reste rien , je vais voir si je peux stocker dans la session
c'est dommage car ça en ferait un super outil pour naviguer dans la catégorie courante

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86570
- Thank you received: 14314
-
-

14 years 8 months ago [\#43578](#43578) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43578 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

Essayez voir sinon avec cette requête:

$query='SELECT DISTINCT a.product_id FROM '.hikashop_table('product_category').' AS a LEFT JOIN '.hikashop_table('product').' AS b ON a.product_id=b.product_id WHERE '.implode(' AND ',$filters).' GROUP BY a.product_id ORDER BY a.product_category_id ASC, a.ordering ASC';

Cela devrait ainsi toujours utiliser la première catégorie du produit. Je vais aussi ajouter du code pour utiliser le category_pathway si présent.
Je ne suis pas fan de la solution de la session mais à voir par la suite.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 8 months ago -  14 years 8 months ago [\#43579](#43579) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: 1.5.7 prec suiv](/forum/5-support-en-francais-french-support-/43555-prec-suiv-bug-sur-prod-non-publie#43579 "Bonjour  dans la 1.5.7 je ne trouve pas comment on met precedent suivant dans la fiche produit")*

vu que tout le monde utilise SEF il n'y a presque jamais de récupération dans l'url
ou alors passer en parametre un hidden ou alors dans la base de donnees last_category_id

je ne sais pas , je vais essayer de bricoler cette piste je crois

merci en tout cas

Last edit: 14 years 8 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDM1NTUtcHJlYy1zdWl2LWJ1Zy1zdXItcHJvZC1ub24tcHVibGllP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
