recently viewed

Views: 21,091

Results 81 to 84 of 84
4 Feb 2012, 3:59 PM
#81
raj3396 avatar

raj3396

New Zenner

Join Date:
May 2011
Location:
DELHI,INDIA
Posts:
43
Plugin Contributions:
0

recently viewed

honda-crunch:

Well, I did not give up and I have now found a solution...

It now gives a full product name and loads up a medium size image with IH3

I am using Zencart 1.3.9h with Recenlty Viewed 1.1 and Image handler 3. I have tested on my site and found no errors in the cache log.

I thought I would post it here as I'm sure I am not the only one with this issue.

Here Goes:
Find php file: tpl_recent_products.php
located in: cart/includes/templates/sideboxes/

If like me you have extra templates then use:
cart/includes/templates/YOUR_TEMPLATE/sideboxes/

Find line 11 which starts:

$content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' .
$recent_products->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />' . $recent_products->fields['products_name'] . '<br />' ;

Replace it with:

$content .= '<a href="' . zen_href_link(zen_get_info_page($recent_products->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($recent_products->fields['master_categories_id']) . '&products_id=' . $recent_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$content .= '<br />' . $recent_products->fields['products_name'] . '</a>';

Don't touch any other file.
As I'm not a professional programmer, obviously I will not guarantee it. Please make a backup before you start.

The next thing to do is to show a price under each product!
Thanks ,by following this NOW THE IMAGES ARE ENLARGED IN RECENTLY VIEWED,JUST NEED THE CODE TO SHOW THE PRICE AS WELL ,THANKS AGAIN..

18 Sep 2015, 5:04 AM
#82
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

Re: recently viewed

Old thread but I guess its still the best place to ask..

How long are the recent products for a visitor kept? Seems when I revisit my own store the sidebar is empty, after only 8 hours or so. Id like people to be able to see what they looked at 3 or 4 days ago, can this be done?

Also can the sidebar show a grid of 2x2? I find a 1 x 3 column takes up a bit much room.

18 Sep 2015, 6:48 AM
#83
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: recently viewed

Chargin:

Old thread but I guess its still the best place to ask..

How long are the recent products for a visitor kept? Seems when I revisit my own store the sidebar is empty, after only 8 hours or so. Id like people to be able to see what they looked at 3 or 4 days ago, can this be done?

Also can the sidebar show a grid of 2x2? I find a 1 x 3 column takes up a bit much room.
There seems to be 2 mods that do this.
I checked one and it doesn't seem to store any visit data in the database..

So I assume it is stored in the current session. That means it will be active for 20 minutes without a key press.
The same time that items will remain in your shopping cart (without you being logged in).

You would have to adapt a mod such as the Save For Later mod which stores info in cookies to achieve what you want.

29 Aug 2016, 9:51 PM
#84
doomm avatar

doomm

New Zenner

Join Date:
Sep 2008
Posts:
54
Plugin Contributions:
0

Re: recently viewed

just wondering... is it possible to get this mod display recent viewed items on product listing page in a row and not in column?