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

#   AFFICHAGE "+ DE CHOIX si caractéristiques liés

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 3 months ago [\#209222](#209222) by [stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")  *[AFFICHAGE "+ DE CHOIX si caractéristiques liés](/forum/5-support-en-francais-french-support-/878328-affichage-de-choix-si-caracteristiques-lies#209222 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.23  Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de &quot;+ DE CHOIX&quot; au lieu de &quot;panier&quot; lorsqu'un produit contient des caractéristiques par exemple poids.  Il serait intéressant d'afficher par exemple &quot;à partir de (+ affichage du prix mini) &quot; ou d'afficher toutes les déclinaisons. Comment peux t'on réaliser cela ? ;)  Merci de votre réponse")* was created by *[stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.23

Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de **"+ DE CHOIX"** au lieu de "panier" lorsqu'un produit contient des caractéristiques par exemple poids.
[ ![choix.jpg](/forum/attachment/25648) ](/forum/attachment/25648 "choix.jpg")

Il serait intéressant d'afficher par exemple **"à partir de (+ affichage du prix mini) "** ou d'afficher toutes les déclinaisons.
Comment peux t'on réaliser cela ? ![;)](/media/kunena/emoticons/11.png ";)")

Merci de votre réponse

- [ ![choix.jpg](/forum/attachment/25648) ](/forum/attachment/25648 "choix.jpg") [ ](/forum/attachment/25648?download=1 "choix.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 3 months ago [\#209231](#209231) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[AFFICHAGE "+ DE CHOIX si caractéristiques liés](/forum/5-support-en-francais-french-support-/878328-affichage-de-choix-si-caracteristiques-lies#209231 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.23  Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de &quot;+ DE CHOIX&quot; au lieu de &quot;panier&quot; lorsqu'un produit contient des caractéristiques par exemple poids.  Il serait intéressant d'afficher par exemple &quot;à partir de (+ affichage du prix mini) &quot; ou d'afficher toutes les déclinaisons. Comment peux t'on réaliser cela ? ;)  Merci de votre réponse")*

Bonjour,

Désolé je suis un peu perdu, vous parlez de la fiche produit et postez un screenshot d'un listing de produits.

Si vous souhaitez remplacer le bouton "panier" dans le listing par "+ de choix" c'est possible par une surcharge de vue, la vue en question est "product / add_to_cart_listing".

Si vous utilisez les caractéristiques et donc les variantes, sur la page produit le prix varie directement lors de la sélection de la variante voulue si vous toutefois vous avez défini un prix différent pour chaque variantes.

Pour ce qui est du listing, vous pouvez modifier la vue "product / listing_price" pour modifier le texte qui apparait et faire des surcharge de langue.

[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 3 months ago [\#209287](#209287) by [stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")  Replied by *[stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")* on topic *[AFFICHAGE "+ DE CHOIX si caractéristiques liés](/forum/5-support-en-francais-french-support-/878328-affichage-de-choix-si-caracteristiques-lies#209287 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.23  Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de &quot;+ DE CHOIX&quot; au lieu de &quot;panier&quot; lorsqu'un produit contient des caractéristiques par exemple poids.  Il serait intéressant d'afficher par exemple &quot;à partir de (+ affichage du prix mini) &quot; ou d'afficher toutes les déclinaisons. Comment peux t'on réaliser cela ? ;)  Merci de votre réponse")*

Désolé de mettre mal exprimé.

Je souhaite tout simplement intervenir sur l'affichage de "+ DE CHOIX" sur la liste des produits.
J'aimerais afficher par exemple : à partir de (le prix le plus bas) ou bien d'avoir une liste déroulante permettant de sélectionner le poids faisant varier le prix en même temps.

Merci d'avance

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 3 months ago [\#209289](#209289) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[AFFICHAGE "+ DE CHOIX si caractéristiques liés](/forum/5-support-en-francais-french-support-/878328-affichage-de-choix-si-caracteristiques-lies#209289 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.23  Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de &quot;+ DE CHOIX&quot; au lieu de &quot;panier&quot; lorsqu'un produit contient des caractéristiques par exemple poids.  Il serait intéressant d'afficher par exemple &quot;à partir de (+ affichage du prix mini) &quot; ou d'afficher toutes les déclinaisons. Comment peux t'on réaliser cela ? ;)  Merci de votre réponse")*

Bonjour,

Très bien donc il va falloir éditer la vue "product / quantity", au début de cette vue ajouter le code suivant entre des balises php: Code:

$lowestPrice = 0; foreach($this-&gt;row-&gt;prices as $price){ if($this-&gt;params-&gt;get('price_with_tax','1') == '1'){ if($lowestPrice == 0 &#124;&#124; $price-&gt;price_value_with_tax &lt; $lowestPrice) $lowestPrice = $price-&gt;price_value_with_tax; }else{ if($lowestPrice == 0 &#124;&#124; $price-&gt;price_value &lt; $lowestPrice) $lowestPrice = $price-&gt;price_value; } }

Puis remplacer les occurences de: Code:

JText::_('CHOOSE_OPTIONS')

Par: Code:

JText::sprintf('CHOOSE_OPTIONS',$lowestPrice)

Puis faire une surcharge de langue tel que:

> CHOOSE\_OPTIONS="à partir de %s"

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 1 month ago [\#213636](#213636) by [stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")  Replied by *[stefoux56](/forum/user/37062-stefoux56 "View stefoux56's Profile")* on topic *[AFFICHAGE "+ DE CHOIX si caractéristiques liés](/forum/5-support-en-francais-french-support-/878328-affichage-de-choix-si-caracteristiques-lies#213636 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.3.23  Bonjour , il y a t'il une alternative à l'affichage dans la fiche produit de &quot;+ DE CHOIX&quot; au lieu de &quot;panier&quot; lorsqu'un produit contient des caractéristiques par exemple poids.  Il serait intéressant d'afficher par exemple &quot;à partir de (+ affichage du prix mini) &quot; ou d'afficher toutes les déclinaisons. Comment peux t'on réaliser cela ? ;)  Merci de votre réponse")*

Merci Xavier cela fonctionne parfaitement !

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

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

[](#top)
