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

#   JRequest::getVar('task') vide

##

- **[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: 2706
- Thank you received: 74
-
-

14 years 8 months ago [\#43275](#43275) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[JRequest::getVar('task') vide](/forum/5-support-en-francais-french-support-/43275-jrequest-getvar-task-vide#43275 "Bonjour  dans ./templates/MONTPL/html/com&#95;hikashop/product/listing.php  il y a une condition JRequest::getVar('task')=='listing' qui affiche les filtres or dans mes listes de produits JRequest::getVar('task') est empty d'où peut venir cette erreur ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

dans ./templates/MONTPL/html/com_hikashop/product/listing.php

il y a une condition JRequest::getVar('task')=='listing' qui affiche les filtres or dans mes listes de produits JRequest::getVar('task') est empty
d'où peut venir cette erreur ?

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDMyNzUtanJlcXVlc3QtZ2V0dmFyLXRhc2stdmlkZT90bXBsPW1hcmtkb3du) 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: 86593
- Thank you received: 14334
-
-

14 years 8 months ago [\#43466](#43466) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: JRequest::getVar('task') vide](/forum/5-support-en-francais-french-support-/43275-jrequest-getvar-task-vide#43466 "Bonjour  dans ./templates/MONTPL/html/com&#95;hikashop/product/listing.php  il y a une condition JRequest::getVar('task')=='listing' qui affiche les filtres or dans mes listes de produits JRequest::getVar('task') est empty d'où peut venir cette erreur ?  merci")*

Le résultat de JRequest::getVar('task') vient du paramètre task dans l'URL de la page. Avez vous un tel paramètre ?
Quand vous avez un menu de listing de produits, ce paramètre n'est pas dans l'URL.

Dans HikaShop, nous faisons généralement comme ceci:
JRequest::getVar('task','listing')

ainsi, quand le paramètre n'est pas présent dans l'URL,nous supposons que c'est le listing qui est demandé (c'est le cas pour le controlleur product car la tache par défaut du controlleur est la tache listing).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDMyNzUtanJlcXVlc3QtZ2V0dmFyLXRhc2stdmlkZT90bXBsPW1hcmtkb3du) 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: 2706
- Thank you received: 74
-
-

14 years 8 months ago [\#43474](#43474) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: JRequest::getVar('task') vide](/forum/5-support-en-francais-french-support-/43275-jrequest-getvar-task-vide#43474 "Bonjour  dans ./templates/MONTPL/html/com&#95;hikashop/product/listing.php  il y a une condition JRequest::getVar('task')=='listing' qui affiche les filtres or dans mes listes de produits JRequest::getVar('task') est empty d'où peut venir cette erreur ?  merci")*

ok merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDMyNzUtanJlcXVlc3QtZ2V0dmFyLXRhc2stdmlkZT90bXBsPW1hcmtkb3du) 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.062 seconds

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