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

#   nouveauté avec fourchette de prix

##

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

2 years 4 months ago -  2 years 4 months ago [\#362351](#362351) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[nouveauté avec fourchette de prix](/forum/5-support-en-francais-french-support-/908442-nouveaute-avec-fourchette-de-prix#362351 "-- HikaShop version -- : 5.1 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  Bonjour sur la page d accueil je veux afficher un tirage aléatoire de 8 nouveaux produits pris dans le top 30 des derniers produits et dont le prix est compris entre 30 et 70 € ? comment faire ca simplement sans passer par une requête SQL ?  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 5.1
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.1

Bonjour
sur la page d accueil je veux afficher un tirage aléatoire de 8 nouveaux produits pris dans le top 30 des derniers produits et dont le prix est compris entre 30 et 70 € ?
comment faire ca simplement sans passer par une requête SQL ?

merci

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

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

2 years 4 months ago [\#362354](#362354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[nouveauté avec fourchette de prix](/forum/5-support-en-francais-french-support-/908442-nouveaute-avec-fourchette-de-prix#362354 "-- HikaShop version -- : 5.1 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  Bonjour sur la page d accueil je veux afficher un tirage aléatoire de 8 nouveaux produits pris dans le top 30 des derniers produits et dont le prix est compris entre 30 et 70 € ? comment faire ca simplement sans passer par une requête SQL ?  merci")*

Bonjour,

Le plus simple, ca serait de créer une catégorie "derniers produits", et ensuite l'ajouter aux 30 derniers produits avec un prix entre 30€ et 70€.
Ensuite, vous pouvez créer un module HikaShop content module sur cette catégorie, et limitez le nombre de produits affichés à 8, avec l'option "random" activée.
Il faudra ensuite rajouter la catégorie à chaque nouveau produit qui rempli les conditions de prix, et enlever la catégorie du plus ancien. La mise en place est simple, mais cela demande un peu de travail lors de l'ajout d'un nouveau produit.

Une action de masse devrait permettre d'automatiser cela pour l'ajout de la catégorie aux nouveaux produits.
Pour la suppression, vous pourriez utiliser une action "run MySQL query" pour supprimer le lien de la catégorie du produit le plus ancien.

The following user(s) said Thank You: [erickb](/forum/user/4069-erickb "View erickb's Profile")

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

2 years 4 months ago -  2 years 4 months ago [\#362359](#362359) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[nouveauté avec fourchette de prix](/forum/5-support-en-francais-french-support-/908442-nouveaute-avec-fourchette-de-prix#362359 "-- HikaShop version -- : 5.1 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.1  Bonjour sur la page d accueil je veux afficher un tirage aléatoire de 8 nouveaux produits pris dans le top 30 des derniers produits et dont le prix est compris entre 30 et 70 € ? comment faire ca simplement sans passer par une requête SQL ?  merci")*

oui je pensais aussi a une action de masse

merci pour le tip : action "run MySQL query"
merci

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

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

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