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

#   Prix par pièce et prix par 100g

##

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

Less More

- Posts: 56
- Thank you received: 6
-
-

5 years 8 months ago -  5 years 8 months ago [\#331077](#331077) by [PierreR](/forum/user/37838-pierrer "View PierreR's Profile")  *[Prix par pièce et prix par 100g](/forum/32-content-creation/902238-prix-par-piece-et-prix-par-100g#331077 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4 -- Error-message(debug-mod must be tuned on) -- : -  Bonjour,  Dans un même e-shop, certains produits sont vendus par pièces (objets), d'autres par tranches de 100g. (aliments). Est-il possible de prévoir un prix par 100g et limiter l'achat de 400g à 2'000g. (sans devoir programmer des variantes pour chaque tranche de 100g) ?  Merci par avance ...")* was created by *[PierreR](/forum/user/37838-pierrer "View PierreR's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4
-- Error-message(debug-mod must be tuned on) -- : -

Bonjour,

Dans un même e-shop, certains produits sont vendus par pièces (objets), d'autres par tranches de 100g. (aliments). Est-il possible de prévoir un prix par 100g et limiter l'achat de 400g à 2'000g. (sans devoir programmer des variantes pour chaque tranche de 100g) ?

Merci par avance ...

Last edit: 5 years 8 months ago by [PierreR](/forum/user/37838-pierrer "View PierreR's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTAyMjM4LXByaXgtcGFyLXBpZWNlLWV0LXByaXgtcGFyLTEwMGc/dG1wbD1tYXJrZG93bg==) 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
-
-

5 years 8 months ago [\#331080](#331080) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Prix par pièce et prix par 100g](/forum/32-content-creation/902238-prix-par-piece-et-prix-par-100g#331080 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4 -- Error-message(debug-mod must be tuned on) -- : -  Bonjour,  Dans un même e-shop, certains produits sont vendus par pièces (objets), d'autres par tranches de 100g. (aliments). Est-il possible de prévoir un prix par 100g et limiter l'achat de 400g à 2'000g. (sans devoir programmer des variantes pour chaque tranche de 100g) ?  Merci par avance ...")*

Bonjour,

Oui. Vous pouvez faire cela avec ce plugin:
[ www.hikashop.com/marketplace/product/221...quantity-plugin.html](https://www.hikashop.com/marketplace/product/221-shopcustom-quantity-plugin.html)
Il suffira de configurer votre custom field "ordered_length" soit avec une liste de valeurs possibles à sélectionner ou avec un champ texte et une regex pour limiter les nombres possibles.

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

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