Display the recently viewed items

  • Posts: 19
  • Thank you received: 0
12 years 6 months ago #50171

Hi,
This is something that I should have figured out ages ago but but didn't need to:
How do I display the recently viewed items on the bottom of the page.
Please give instructions as if you were speaking to someone clueless. (because you are)

Thanks

steve

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 6 months ago #50232

Create a normal products listing module and in the hikashop options of the module, turn on the "recently viewed" option and it should work.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 6 months ago #50246

Here is what I don't understand:
I make a Hikashop module and enable it in a specific module position, on the home page only, using the Joomla module manager. Hikashop seems to overide the Joomla module manager and place the module on every page. Or failing that, on any pages that its settings determine. I can't seem to understand how Hikashop decides on what pages to place the module. Please can you help me understand this.
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 6 months ago #50324

If you create a new instance of the hikashop content module via the joomla module manager as explained in the documentation, you will only have it displayed by Joomla where you set it.
www.hikashop.com/en/support/documentatio...html#products_module

Otherwise, modules can be displayed by HikaShop if you enable them in the "modules under the product page" option of the configuration, or in the "associated modules" option of your menus.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 6 months ago #50407

Ok here is the situation.

I can now have select items show up in a module position on a specified page which is great but when I select one of the items in the module position and go to the product page, the module stays where it is.
In other words, if the module is listed on the home page it will show, only on the home page BUT if a product it selected and then the product page comes up, the module position is still there.

Also, on the recently viewed items thing: I tried creating a new module from the configuration page as per the instructions and I've tried creating it from the Joomla module manager, in each case, Hikashop will show items but I cannot figure out how to set the settings in order to get it to show recently viewed items.
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 6 months ago #50484

What you want to do is to configure the "menu" option of your module to a menu where you want your users to go when they click on a link in the module, and remove the "menu assignment" of that module to that menu. That way, when they click on a link in the module, they will go to a menu where that module is not assigned and thus won't be displayed.

You cannot create modules via the hikashop configuration page and we don't talk about such thing in our documentation. You have to create it via the joomla modules manager.
Once you created it, go in the hikashop options of the module and you will have the "recently viewed" option.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 6 months ago #50504

Ok I've got the " recently viewed items" where I need it and there are items being shown in it. But here is the thing: some items show in it and some don't. And some seem to stay in the "recently viewed" when I would expect them to be cycled out. What controls the selection and behavior of the items?

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 6 months ago #50580

When you display a product page, the product is added to that list in your session. That's all there is to it.

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
12 years 6 months ago #50600

Thanks Nicolas, I really appreciate your help
:)

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #51277

hi Nicolas, finally im stuck with something in HikaShop - cant figure out what options exactly should i set for module to display list of recently viewed items. now it displays some items but they seem unrelated to current session.
joomla 2.5.1 / hikashop 1.5.6 Starter

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51285

Please do a screenshot of the hikashop options of your module.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #51291

i kinda have russian language override :x

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51367

Can you logout and login your backend in english ?
My russian is close to 0 :)

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #51430

sorry for that, took some time to replace ini back.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51534

Could you try to add the code:
$select='SELECT DISTINCT b.*';
$b = '';
$a = hikashop_table('product').' AS b';

after the line:
$filters[]='b.product_id IN ('.implode(',',$_SESSION).')';

in the file components/com_hikashop/views/product/view.html.php and see if that works better ?

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #51597

didnt help, just showing static list of some prods no matter what i do.

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51680

Could you try to replace the file components/com_hikashop/views/product/view.html.php with the one in the archive enclosed ?

File Attachment:

File Name: view.html.zip
File Size:12 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #51684

now it seem to work, but all main product images are replaced by default pic and recent items are shown in reverse order.

Please Log in or Create an account to join the conversation.

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #51701

You can try to change the line:
$filters[]='b.product_id IN ('.implode(',',$_SESSION).')';

to:
$filters[]='b.product_id IN ('.implode(',',array_reverse($_SESSION)).')';

in that file in order to reverse the products

I'm not sure that you're talking about for the images and how it's related to that change. Could you explain more? Are you sure that it's not caused by something else, like changing the upload folder path in the configuration ? We don't have that problem on your end.

Please Log in or Create an account to join the conversation.

  • Posts: 180
  • Thank you received: 13
12 years 4 months ago #56098

The issue I have is that I want just a few of the most recent showing, e.g. the 3 most recently viewed by the current user. The recently viewed seems to be across the whole site site, so what is viewed by other visitors also counts. I would like the behaviour to be like Amazon, where you see that latest products YOU have viewed. Is this possible?

Please Log in or Create an account to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum