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

#   How to show in a joomla module the very last item viewed in hikashop?

##

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

Less More

- Posts: 152
- Thank you received: 9
-

4 months 3 days ago [\#372781](#372781) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  *[How to show in a joomla module the very last item viewed in hikashop?](/forum/4-how-to/910704-how-to-show-in-a-joomla-module-the-very-last-item-viewed-in-hikashop#372781 "-- HikaShop version -- : 6.5.2 -- Joomla version -- : 6 -- PHP version -- : 8.4  Dear Team,  I am trying to display the very last item viewed by a user in HikaShop inside a Joomla module.  For example, if a user views Item 1, then Item 2, and then Item 3  then user logs in... I would like the Joomla module to display Item 3 once they log in.  I have looked through the settings   prnt.sc/&#95;j67iisZNMb&#95;  but cannot find a way to achieve this. Is there a workaround or a specific configuration you could recommend please?  Thank you")* was created by *[lucad](/forum/user/83792-lucad "View lucad's Profile")*

-- HikaShop version -- : 6.5.2
-- Joomla version -- : 6
-- PHP version -- : 8.4

Dear Team,

I am trying to display the very last item viewed by a user in HikaShop inside a Joomla module.

For example, if a user views Item 1, then Item 2, and then Item 3

then user logs in... I would like the Joomla module to display Item 3 once they log in.

I have looked through the settings [ prnt.sc/\_j67iisZNMb\_](https://prnt.sc/_j67iisZNMb_)
but cannot find a way to achieve this.
Is there a workaround or a specific configuration you could recommend please?

Thank you

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

4 months 3 days ago [\#372789](#372789) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to show in a joomla module the very last item viewed in hikashop?](/forum/4-how-to/910704-how-to-show-in-a-joomla-module-the-very-last-item-viewed-in-hikashop#372789 "-- HikaShop version -- : 6.5.2 -- Joomla version -- : 6 -- PHP version -- : 8.4  Dear Team,  I am trying to display the very last item viewed by a user in HikaShop inside a Joomla module.  For example, if a user views Item 1, then Item 2, and then Item 3  then user logs in... I would like the Joomla module to display Item 3 once they log in.  I have looked through the settings   prnt.sc/&#95;j67iisZNMb&#95;  but cannot find a way to achieve this. Is there a workaround or a specific configuration you could recommend please?  Thank you")*

Hi,

You don't need any custom code for this, HikaShop has a "recently viewed" mode in its module.

- Go to Joomla, Extensions, Modules, New, and choose "Hikashop Module".
- In the module options set the content type to Products.
- Set the option "Recently viewed" to Yes.
- Set the number of products to display to 1, so only the very last viewed item is shown.
- Publish the module to the position where you want it.

The list of viewed products is kept in the visitor's session, most recent first, so with a limit of 1 the module shows the last product the visitor looked at. Because the session is preserved when the visitor logs in, a visitor who views Item 1, Item 2 then Item 3 and then logs in will indeed see Item 3 in the module.

One thing to keep in mind: this is based on the browsing session, not stored on the user account. It works within the same session (which covers your case of viewing products then logging in), but it does not persist across a different device or once the session has expired.

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

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

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

Less More

- Posts: 152
- Thank you received: 9
-

4 months 2 days ago [\#372813](#372813) by [lucad](/forum/user/83792-lucad "View lucad's Profile")  Replied by *[lucad](/forum/user/83792-lucad "View lucad's Profile")* on topic *[How to show in a joomla module the very last item viewed in hikashop?](/forum/4-how-to/910704-how-to-show-in-a-joomla-module-the-very-last-item-viewed-in-hikashop#372813 "-- HikaShop version -- : 6.5.2 -- Joomla version -- : 6 -- PHP version -- : 8.4  Dear Team,  I am trying to display the very last item viewed by a user in HikaShop inside a Joomla module.  For example, if a user views Item 1, then Item 2, and then Item 3  then user logs in... I would like the Joomla module to display Item 3 once they log in.  I have looked through the settings   prnt.sc/&#95;j67iisZNMb&#95;  but cannot find a way to achieve this. Is there a workaround or a specific configuration you could recommend please?  Thank you")*

That worked perfectly

Thank you Nicolas

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

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

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