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

#   ajouter un lien a coté du bouton ajouter au panier

##

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

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 4 months ago [\#162405](#162405) by [infotood](/forum/user/31585-infotood "View infotood's Profile")  *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162405 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")* was created by *[infotood](/forum/user/31585-infotood "View infotood's Profile")*

Bonjour,

Je voudrais ajouter un lien a coté du bouton "ajouter au panier" dans la liste des produits. Par exemple : "nos tarifs"

Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit.
Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.

Quelqu'un aurait une idée ?

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

12 years 4 months ago [\#162430](#162430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162430 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,

Pour cela, je vous recommenderai de créer un champs personnalisé de la table "produit" via le menu Affichage&gt;Vues pour pouvoir entrer l'HTML du lien pour chaque produit.
Ensuite, il suffit d'éditer le fichier "listing_img_title" de la vue "product" via le menu Affichage&gt;Vues et d'ajouter ce code après le code d'affichage du bouton d'ajout au panier:
&lt;?php echo $this-&gt;row-&gt;FIELD; ?&gt;
où FIELD est le nom de colonne du champs personnalisé.

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 4 months ago [\#162460](#162460) by [infotood](/forum/user/31585-infotood "View infotood's Profile")  Replied by *[infotood](/forum/user/31585-infotood "View infotood's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162460 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Merci de m'aider.

J'ai essayé mais çà ne fonctionne pas. Voilà ce que j'ai fait :

1/ créer un champs personnalisé "test" avec la table product dans affichage =&gt; champs personnalisé
2/ inserer le code &lt;?php echo $this-&gt;row-&gt;test; ?&gt; dans "listing_img_title" de la vue "product" via le menu Affichage&gt;Vues
Code:

&lt;!-- ADD TO CART BUTTON AREA --&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart') &#124;&#124; $this-&gt;params-&gt;get('add_to_wishlist')){ $this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate(); }?&gt; &lt;!-- EO ADD TO CART BUTTON AREA --&gt; &lt;?php echo $this-&gt;row-&gt;test; ?&gt;

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

12 years 4 months ago [\#162462](#162462) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162462 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,

Dans la fiche produit avez vous saisi des données pour le champ personnalisé "test" ?
Utilisez vous la vue "listing_img_title" pour les listing ou une autre ?

Avez vous fait la modification dans le bon template ?

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 4 months ago [\#162569](#162569) by [infotood](/forum/user/31585-infotood "View infotood's Profile")  Replied by *[infotood](/forum/user/31585-infotood "View infotood's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162569 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,

Oui j'ai saisi des données pour le champs "test"
Non, j'utilise listing_div (merci pour l'info ![:)](/media/kunena/emoticons/3.png ":)"))
Oui j'utilise le bon template

J'ai essayé de modifier avec : &lt;?php echo $this-&gt;row-&gt;test; ?&gt;
rien ne s'affiche. (1er problème)
Par contre si je mets 'echo "test";'
çà s'affiche, mais en dessous du bouton ajouter au panier. J'arrive pas à afficher sur la même ligne. (2eme problème)

Voici le code : Code:

&lt;li class="span&lt;?php echo $span; ?&gt; hikashop_product hikashop_product_column_&lt;?php echo $current_column; ?&gt; hikashop_product_row_&lt;?php echo $current_row; ?&gt;"&gt; &lt;div class="hikashop_container"&gt; &lt;div class="hikashop_subcontainer &lt;?php echo $this-&gt;borderClass; ?&gt;"&gt; &lt;?php } $this-&gt;row =&amp; $row; $this-&gt;setLayout('listing_'.$this-&gt;params-&gt;get('div_item_layout_type')); echo $this-&gt;loadTemplate(); echo "test";

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

12 years 4 months ago [\#162575](#162575) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162575 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,

En fait "listing_div" est le type global, après il faut regarder la valeur de l'option "Type of item layout" pour voir si vous avez sélectionné image and title, ou image and description, etc.

Si echo $this-&gt;row-&gt;test ne fonctionne pas c'est peut être parceque le "Column name" du champ personnalisé dans Display &gt; Custom fields n'a pas la valeur "test" mais une autre.

Pouvez vous nous fournir un screenshot de la configuration de ce champ personnalisé ?

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

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 4 months ago [\#162661](#162661) by [infotood](/forum/user/31585-infotood "View infotood's Profile")  Replied by *[infotood](/forum/user/31585-infotood "View infotood's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162661 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonsoir,

J'ai séléctionné "image" dans hikashop module content.

Voici les screenshot de hikashop module content et du champs personnalisé test :

[ ![h281863d.png](/forum/attachment/18234) ](/forum/attachment/18234 "h281863d.png")

[ ![hc7dddac.png](/forum/attachment/18235) ](/forum/attachment/18235 "hc7dddac.png")

[ ![h554ff7c.png](/forum/attachment/18236) ](/forum/attachment/18236 "h554ff7c.png")

- [ ![h281863d.png](/forum/attachment/18234) ](/forum/attachment/18234 "h281863d.png") [ ](/forum/attachment/18234?download=1 "h281863d.png")
- [ ![hc7dddac.png](/forum/attachment/18235) ](/forum/attachment/18235 "hc7dddac.png") [ ](/forum/attachment/18235?download=1 "hc7dddac.png")
- [ ![h554ff7c.png](/forum/attachment/18236) ](/forum/attachment/18236 "h554ff7c.png") [ ](/forum/attachment/18236?download=1 "h554ff7c.png")

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

12 years 4 months ago [\#162683](#162683) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162683 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,

Comme vous utilisez '"image" au lieu de "image et titre" (qui est la valeur par défaut), ce n'est pas listing_img_title qu'il faut éditer mais listing_img

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

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 4 months ago -  12 years 4 months ago [\#162844](#162844) by [infotood](/forum/user/31585-infotood "View infotood's Profile")  Replied by *[infotood](/forum/user/31585-infotood "View infotood's Profile")* on topic *[ajouter un lien a coté du bouton ajouter au panier](/forum/5-support-en-francais-french-support-/869389-ajouter-un-lien-a-cote-du-bouton-ajouter-au-panier#162844 "Bonjour,  Je voudrais ajouter un lien a coté du bouton &quot;ajouter au panier&quot; dans la liste des produits. Par exemple : &quot;nos tarifs&quot;  Ce lien sera différent pour chaque produit. Il redirigera vers une page personnalisée pour chaque produit. Je veux aussi avoir la possibilité de l'afficher pour certain produit et pas pour d'autres.  Quelqu'un aurait une idée ?")*

Bonjour,
Super ! c'est le bon fichier à modifier.
Code:

&lt;?php echo $this-&gt;row-&gt;test; ?&gt;

le code ci-dessus ne fonctionne pas mais du coup j'ai pu modifier un peu le code et faire ce que je voulais.

Merci beaucoup de votre aide.

Last edit: 12 years 4 months ago by [infotood](/forum/user/31585-infotood "View infotood's Profile").

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

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