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

#   Affichage - product / show\_block\_custom\_item.php

##

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

Less More

- Posts: 175
- Thank you received: 12
-
-

1 year 10 months ago [\#364794](#364794) by [Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")  *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364794 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")* was created by *[Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")*

Bonjour,

Je ne parviens pas a activer product / show_block_custom_item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).

Pouvez-vous m'aider à résoudre ce problème ?

This message contains confidential information

Bonne journée,

Pierre

- [ ![apercu1.png](/forum/attachment/60059) ](/forum/attachment/60059 "apercu1.png") [ ](/forum/attachment/60059?download=1 "apercu1.png")
- [ ![apercu2.png](/forum/attachment/60060) ](/forum/attachment/60060 "apercu2.png") [ ](/forum/attachment/60060?download=1 "apercu2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4OTM5LWFmZmljaGFnZS1wcm9kdWN0LXNob3ctYmxvY2stY3VzdG9tLWl0ZW0tcGhwP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

1 year 10 months ago [\#364797](#364797) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364797 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonjour,

L'accès fourni ne fonctionne pas.

Notez que la zone apparaîtra automatiquement si nécessaire, il n'y a rien à activer.
Pour que la zone apparaisse, il faut que vous ayez configuré au moins un champ personnalisé de la table "article" pour le produit affiché sur la page.
Avez-vous configuré un champ personnalisé ?
Aussi, notez que nous avons corrigé plusieurs soucis d'affichage des champs personnalisés avec la 5.1.2 qui est sortie il y a quelques jours:
[ www.hikashop.com/support/documentation/5...ashop-changelog.html](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html)
Peut être que la mise à jour aiderait ?

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

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

Less More

- Posts: 175
- Thank you received: 12
-
-

1 year 10 months ago [\#364813](#364813) by [Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")  Replied by *[Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364813 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonjour,

Merci de votre retour.

Je viens de trouver pourquoi le champ ne s'affichait pas. C'est parce qu'Hikashop est en mode "Catalogue".

Comment puis-je faire pour afficher les champs en mode "Catalogue" ?

L'accès est maintenant fonctionnel.

Bon après-midi,

Pierre

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4OTM5LWFmZmljaGFnZS1wcm9kdWN0LXNob3ctYmxvY2stY3VzdG9tLWl0ZW0tcGhwP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

1 year 10 months ago [\#364814](#364814) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364814 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonjour,

Pourquoi afficher un champ "article" en mode catalogue ?
Le but des champs personnalisés de la table "article" c'est de permettre à l'utilisateur de sélectionner des choses qui seront ensuite ajouter au panier avec le produit.
Donc, s'il n'y a pas d'ajout au panier, il est normal que les champs "article" ne s'affichent pas.

Après, vous pouvez ajouter ce code au début de product / show_default: Code:

&lt;?php $fieldClass = hikashop_get('class.field'); $this-&gt;itemFields = $fieldClass-&gt;getFields('frontcomp', $this-&gt;element, 'item', 'checkout&amp;task=state'); ?&gt;

Cela chargera les champs personnalisés de la table "article", ce que devrait ensuite permettre au code d'affichage de les afficher.
Mais il ne seront pas utilisables vu qu'il n'y aura toujours pas de bouton d'ajout au panier.

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

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

Less More

- Posts: 175
- Thank you received: 12
-
-

1 year 10 months ago [\#364831](#364831) by [Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")  Replied by *[Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364831 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonsoir Nicolas,

Merci de votre aide.

Quelle serait donc l'approche la plus cohérente et flexible pour ajouter des informations à droite de la photo comme sur l'exemple ci-joint sans bricoler ?

- [ ![apercu-hika.jpg](/forum/attachment/60063) ](/forum/attachment/60063 "apercu-hika.jpg") [ ](/forum/attachment/60063?download=1 "apercu-hika.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4OTM5LWFmZmljaGFnZS1wcm9kdWN0LXNob3ctYmxvY2stY3VzdG9tLWl0ZW0tcGhwP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

1 year 10 months ago [\#364835](#364835) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364835 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonjour,

Si c'est un texte fixe pour tous les produits, vous pouvez directement ajouter le texte dans un override de vue de product / show_default à l'endroit souhaité.
Si c''est un texte qui peut changer en fonction des produits, vous voulez créer un champ personnalisé de la table "produit" via le menu Affichage&gt;Champs personnalisés et ensuite renseigner ce champ dans chaque produit.

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

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

Less More

- Posts: 175
- Thank you received: 12
-
-

1 year 10 months ago [\#364844](#364844) by [Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")  Replied by *[Pierreco](/forum/user/38925-pierreco "View Pierreco's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364844 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

Bonjour Nicolas,

Merci à vous.

Il est possible que les textes changent selon les produits.

Sauf erreur de ma part, les champs de la table "produit" s'affichent dans l'onglet "Spécifications", cependant, je souhaite que mes informations apparaissent à droite de l'image.

Si je déplace ça à droite de l'image dans la vue, cela sera problématique pour d'autres informations que je souhaiterai afficher dans l'onglet "Spécifications".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4OTM5LWFmZmljaGFnZS1wcm9kdWN0LXNob3ctYmxvY2stY3VzdG9tLWl0ZW0tcGhwP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

1 year 10 months ago [\#364845](#364845) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Affichage - product / show\_block\_custom\_item.php](/forum/5-support-en-francais-french-support-/908939-affichage-product-show-block-custom-item-php#364845 "Bonjour,  Je ne parviens pas a activer product / show&#95;block&#95;custom&#95;item.php sur un nouveau site en construction (aperçu 1) comme je l'ai fait pour d'autre sites (aperçu 2).  Pouvez-vous m'aider à résoudre ce problème ?  Bonne journée,  Pierre")*

En effet. Après, vous pouvez désactiver l'affichage du champ, et à la place, l'afficher manuellement à l'endroit souhaité en ajoutant un peu de code dans product / show_tabular:
[ www.hikashop.com/forum/product-category-...t-layout.html#339434](https://www.hikashop.com/forum/product-category-display/903971-get-text-of-custom-field-in-product-layout.html#339434)

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

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

[](#top)
