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

#   Check if product has been purchased

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 1 month ago [\#123691](#123691) by [piggyslasher](/forum/user/24504-piggyslasher "View piggyslasher's Profile")  *[Check if product has been purchased](/forum/26-product-category-display/862015-check-if-product-has-been-purchased#123691 "On the product page, I would like to check if the current product has already been purchased by the current user. If it has been purchased I would like to display some extra HTML. Is this possible? I...")* was created by *[piggyslasher](/forum/user/24504-piggyslasher "View piggyslasher's Profile")*

On the product page, I would like to check if the current product has already been purchased by the current user. If it has been purchased I would like to display some extra HTML. Is this possible? I can do this via php in the template override, but if someone can give me some code to point me in the right direction, that would be very helpful.

Is there an existing function or do i need to use sql?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123765](#123765) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Check if product has been purchased](/forum/26-product-category-display/862015-check-if-product-has-been-purchased#123765 "On the product page, I would like to check if the current product has already been purchased by the current user. If it has been purchased I would like to display some extra HTML. Is this possible? I...")*

Hi,

You need to use SQL for that.
There are similar requests in HikaShop, like for downloads.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

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

[](#top)
