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

#   la balise {hkshow bought="id"} ne fonctionne pas

##

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

Less More

- Posts: 75
- Thank you received: 2
-
-

2 years 2 months ago -  2 years 2 months ago [\#362874](#362874) by [AlainR](/forum/user/34800-alainr "View AlainR's Profile")  *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362874 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")* was created by *[AlainR](/forum/user/34800-alainr "View AlainR's Profile")*

-- url of the page with the problem -- : [ www.familydesign.ch/mes-videos](https://www.familydesign.ch/mes-videos)
-- HikaShop version -- : 5.1.0
-- Joomla version -- : ‎4.4.8
-- PHP version -- : 8.1.29
-- Browser(s) name and version -- : Firefox 129.0.2 (64 bits)
-- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought="id"} ne fonctionne pas.

En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec "=" dans la partie WHERE "op.order_product_quantity &gt;= 1" dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php
J'ai tenté d'ajouter un LEFT JOIN avec la table #__hikashop_product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.

Last edit: 2 years 2 months ago by [AlainR](/forum/user/34800-alainr "View AlainR's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDg1NDgtbGEtYmFsaXNlLWhrc2hvdy1ib3VnaHQtaWQtbmUtZm9uY3Rpb25uZS1wYXM/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: 86584
- Thank you received: 14325
-
-

2 years 2 months ago [\#362881](#362881) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362881 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")*

Bonjour,

Merci pour le retour sur la condition de la requête MySQL. Nous allons rajouter le patch de notre coté.

Concernant l'id du produit, il n'y a rien à modifier.
L'id des produits est déjà disponible. D'ailleurs, si vous voulez faire un left join avec la table hikashop_product, le ON va être de ce genre: Code:

op.product_id = p.product_id

où op est l'alias de la table hikashop_order_product (déjà dans la requête) et p l'alias de la table hikashop_product. Donc, comme vous le voyez, la colonne product_id de hikashop_order_product contient déjà l'id du produit, sans besoin de faire un left join.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

2 years 2 months ago [\#362895](#362895) by [AlainR](/forum/user/34800-alainr "View AlainR's Profile")  Replied by *[AlainR](/forum/user/34800-alainr "View AlainR's Profile")* on topic *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362895 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")*

Merci bien de votre retour !
Oui, en effet, vous avez raison l'ID du produit est déjà présent. Étonnement, l'ID du produit ne ressort pas dans la requête SELECT op.order_product_id, op.order_product_name, op.order_product_code FROM
Y manquerait-il op.product_id dans la partie SELECT ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDg1NDgtbGEtYmFsaXNlLWhrc2hvdy1ib3VnaHQtaWQtbmUtZm9uY3Rpb25uZS1wYXM/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: 86584
- Thank you received: 14325
-
-

2 years 2 months ago [\#362898](#362898) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362898 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")*

En effet. Si vous voulez utiliser l'id du produit, il va falloir rajouter la colonne op.product_id dans le SELECT. Bien vu. Nous allons rajouter cela également de notre côté. Merci encore de votre retour.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

2 years 2 months ago [\#362906](#362906) by [AlainR](/forum/user/34800-alainr "View AlainR's Profile")  Replied by *[AlainR](/forum/user/34800-alainr "View AlainR's Profile")* on topic *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362906 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")*

OK, super, merci d'avance des corrections.
Ce n'est pas tant que je veuille utiliser l'ID, c'est surtout que je lis partout que c'est ainsi qu'il faut faire ![;)](/media/kunena/emoticons/24.png ";)")

- [ www.hikashop.com/home/blog/466-hikashop-4-4-1.html#tags](https://www.hikashop.com/home/blog/466-hikashop-4-4-1.html#tags)
- [ www.hikashop.com/forum/4-how-to/908247-sell-links.html#361415](https://www.hikashop.com/forum/4-how-to/908247-sell-links.html#361415)
- [ www.hikashop.com/home/blog/471-hikashop-4-4-3.html#tags](https://www.hikashop.com/home/blog/471-hikashop-4-4-3.html#tags)
- [ www.hikashop.com/forum/product-category-...ruhazban.html#361223](https://www.hikashop.com/forum/product-category-display/908201-virtualis-termek-a-webaruhazban.html#361223)

Sauf erreur, je n'ai pas trouvé de documentation à ce propos. En existe-t-il une ?
Merci encore !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDg1NDgtbGEtYmFsaXNlLWhrc2hvdy1ib3VnaHQtaWQtbmUtZm9uY3Rpb25uZS1wYXM/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: 86584
- Thank you received: 14325
-
-

2 years 2 months ago [\#362907](#362907) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[la balise {hkshow bought="id"} ne fonctionne pas](/forum/3-bug-report/908548-la-balise-hkshow-bought-id-ne-fonctionne-pas#362907 "-- url of the page with the problem -- :   www.familydesign.ch/mes-videos  -- HikaShop version -- : 5.1.0 -- Joomla version -- : ‎4.4.8 -- PHP version -- : 8.1.29 -- Browser(s) name and version -- : Firefox 129.0.2 (64 bits) -- Error-message(debug-mod must be tuned on) -- : Aucun mais la balise {hkshow bought=&quot;id&quot;} ne fonctionne pas.  En indiquant l'ID, aucun des produits achetés par la cliente n’apparaissait. Avec le CODE produit non plus, sauf après avoir complété la requête SQL avec &quot;=&quot; dans la partie WHERE &quot;op.order&#95;product&#95;quantity &gt;= 1&quot; dans /plugins/system/hikashopproductinsert/hikashopproductinsert.php J'ai tenté d'ajouter un LEFT JOIN avec la table #&#95;&#95;hikashop&#95;product pour obtenir l'ID des produits, mais je n'ai pas investigué pour savoir quel nom de champ le plugin attend pour les ID des produits.")*

Bonjour,

Nous n'avons en effet pas encore écrit de documentation à ce sujet.
L'id est en effet mentionné à plusieurs reprises. Cela fonctionnait avant des changements ultérieurs. Mais vous pouvez également utiliser le code du produit, ou son nom.

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

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