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

#   Personnalisation d' un champ personnalisé

##

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

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 8 months ago [\#44084](#44084) by [itiav](/forum/user/6168-itiav "View itiav's Profile")  *[Personnalisation d' un champ personnalisé](/forum/5-support-en-francais-french-support-/44084-personnalisation-d-un-champ-personnalise#44084 "Bonjour,  Je souhaite créer un champ personnalisé qui correspond à une petite description sur la grande fiche produit. Celui ci apparait après le prix.  Est-il possible de placer le champ personnalisé avant le prix dans la grande fiche produit ?  Est-il possible également d'utiliser ce champ sur la vue de la petite fiche produit ?  Merci.")* was created by *[itiav](/forum/user/6168-itiav "View itiav's Profile")*

Bonjour,

Je souhaite créer un champ personnalisé qui correspond à une petite description sur la grande fiche produit. Celui ci apparait après le prix.

Est-il possible de placer le champ personnalisé **avant le prix** dans **la grande fiche produit** ?

Est-il possible également d'utiliser ce champ sur la vue de **la petite fiche produit** ?

Merci.

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

14 years 8 months ago [\#44285](#44285) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Personnalisation d' un champ personnalisé](/forum/5-support-en-francais-french-support-/44084-personnalisation-d-un-champ-personnalise#44285 "Bonjour,  Je souhaite créer un champ personnalisé qui correspond à une petite description sur la grande fiche produit. Celui ci apparait après le prix.  Est-il possible de placer le champ personnalisé avant le prix dans la grande fiche produit ?  Est-il possible également d'utiliser ce champ sur la vue de la petite fiche produit ?  Merci.")*

Bonjour itiav,

Vous pouvez déplacer le champ personnalisé avant le prix.
Il faut éditer le fichier : votreSite\components\com_hikashop\views\product\tmpl\show_default.php (ou show_reversed.php / show_tabular.php selon celui que vous utilisez)

Et couper le code suivant: Code:

&lt;?php if(!empty($this-&gt;fields)){ $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); } ?&gt;

Pour le coller au dessus de: Code:

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt; &lt;?php if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } $this-&gt;setLayout('show_block_dimensions'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/span&gt;

Pour afficher ce champ sur la "petite fiche produit", je comprends par là le listing, il faut aller dans:
Hiksahop &gt; Display &gt; Content menus ou Hiksahop &gt; Display &gt; Content modules, puis éditer votre menu ou module, et activer l'option "Display custom item fields" dans la section "Parameters for products".

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

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

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

Less More

- Posts: 73
- Thank you received: 0
-
-

14 years 8 months ago [\#44491](#44491) by [itiav](/forum/user/6168-itiav "View itiav's Profile")  Replied by *[itiav](/forum/user/6168-itiav "View itiav's Profile")* on topic *[Re: Personnalisation d' un champ personnalisé](/forum/5-support-en-francais-french-support-/44084-personnalisation-d-un-champ-personnalise#44491 "Bonjour,  Je souhaite créer un champ personnalisé qui correspond à une petite description sur la grande fiche produit. Celui ci apparait après le prix.  Est-il possible de placer le champ personnalisé avant le prix dans la grande fiche produit ?  Est-il possible également d'utiliser ce champ sur la vue de la petite fiche produit ?  Merci.")*

Ça ne marche pas le champ personnalisé est toujours en dessous du prix.

Comment savoir si je suis bien dans la vue **show\_default.php** ?

Merci.

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

14 years 8 months ago [\#44492](#44492) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Personnalisation d' un champ personnalisé](/forum/5-support-en-francais-french-support-/44084-personnalisation-d-un-champ-personnalise#44492 "Bonjour,  Je souhaite créer un champ personnalisé qui correspond à une petite description sur la grande fiche produit. Celui ci apparait après le prix.  Est-il possible de placer le champ personnalisé avant le prix dans la grande fiche produit ?  Est-il possible également d'utiliser ce champ sur la vue de la petite fiche produit ?  Merci.")*

Pour savoir si vous êtes dans la bonne vue, allez dans : HikaShop &gt; Configuration &gt; Display et sous "Default parameters for products" regardez ce qui est sélectioné dans "Layout on product page".

Si la vue est default, vous êtes alors dans show_default.php

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

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