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

#   hkshow bought tag not working

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

5 years 7 months ago [\#330424](#330424) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[hkshow bought tag not working](/forum/25-install-update/902105-hkshow-bought-tag-not-working#330424 "-- url of the page with the problem -- :   accademiainfinita.it/test-page  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- Browser(s) name and version -- : Brave - 1.21.73 Chromium: 89.0.4389.72 (Build ufficiale) (a 64 bit)  Hello, I was testing the new feature  You can now use tags like  or  on your website to display content based on whether someone purchased the product xx or didn't purchase anything.  but it doesn't work for me, here is the code I used in a Joomla article  I am testing with a user who has bought product with ID 103 (order status &quot;confirmed&quot;), but even when testing as a guest the hkhide notbought content is not displayed  See here:   accademiainfinita.it/test-page  Is there maybe a setting I have to activate?  Thank you")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

-- url of the page with the problem -- : [ accademiainfinita.it/test-page](https://accademiainfinita.it/test-page)
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.24
-- Browser(s) name and version -- : Brave - 1.21.73 Chromium: 89.0.4389.72 (Build ufficiale) (a 64 bit)

Hello,
I was testing the new feature

*You can now use tags like or on your website to display content based on whether someone purchased the product xx or didn't purchase anything.*

but it doesn't work for me, here is the code I used in a Joomla article
Code:

&lt;p&gt;&lt;strong&gt;Hikashop test "hkshow bought" - text displaied below if user bought product ID 103&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;&lt;strong&gt;Hikashop test "hkhide notbought" -&amp;nbsp;&lt;strong&gt;text displaied below if user didn't buy anything&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;hr /&gt;

I am testing with a user who has bought product with ID 103 (order status "confirmed"), but even when testing as a guest the **hkhide notbought** content is not displayed

See here: [ accademiainfinita.it/test-page](https://accademiainfinita.it/test-page)

Is there maybe a setting I have to activate?

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwMjEwNS1oa3Nob3ctYm91Z2h0LXRhZy1ub3Qtd29ya2luZz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

5 years 7 months ago [\#330454](#330454) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[hkshow bought tag not working](/forum/25-install-update/902105-hkshow-bought-tag-not-working#330454 "-- url of the page with the problem -- :   accademiainfinita.it/test-page  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.24 -- Browser(s) name and version -- : Brave - 1.21.73 Chromium: 89.0.4389.72 (Build ufficiale) (a 64 bit)  Hello, I was testing the new feature  You can now use tags like  or  on your website to display content based on whether someone purchased the product xx or didn't purchase anything.  but it doesn't work for me, here is the code I used in a Joomla article  I am testing with a user who has bought product with ID 103 (order status &quot;confirmed&quot;), but even when testing as a guest the hkhide notbought content is not displayed  See here:   accademiainfinita.it/test-page  Is there maybe a setting I have to activate?  Thank you")*

Hi,

Thanks for your feedback. I indeed found an issue with the "bought" and "notbought" attributes when using a product id instead of the product code.
I've added a patch on our end to fix that.

Download the install package of the 4.4.1 on our website and install it on yours and it will add the patch for that issue;

Regarding the hkhide though it seems to be working as expected.
You used the tag "hkhide notbought" which means that you want to hide the content of the tag when the user hasn't bought any product, which does seem to work on your website since I don't see the content even though I didn't bought anything.

Note that you can more combinations possible than just the two mentioned in the changelog.
You could also have:
{hkhide bought}
{hkhide bought="XX"}
{hkhide notbought="XX"}
{hkshow bought}
{hkshow notbought}
{hkshow notbought="XX"}
That way, it can cope with many difference display scenarios based on what was and wasn't bought.

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

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

[](#top)
