Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Problems with Recently Viewed Items addon

Problems with Recently Viewed Items addon

Started by philip937 on 13 Feb 2011, 9:42 PM · Views: 6,295

Results 21 to 34 of 34
4 Apr 2011, 10:32 PM
#21
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #21 by gjh42

You can wrap a test around the code that calls the file or otherwise executes the code:

if (!$this_is_home_page) {
the code to be executed on other pages than home
}

16 Apr 2011, 2:23 PM
#22
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
531
Plugin Contributions:
3

Post #22 by marcopolo

I'm getting the same error as below, seems FILENAME_RECENT_PRODUCTS_MODULE is not defined.

philip937:

Seriously, has the contributor actually tested this!!??

I have downloaded the new version from the addons section, and it is still all gash!

All I get on the page is:

<!--bof recent products module--> <!-- bof: featured products --> <!-- eof: featured products --> <!--eof recent products module-->

and the errors:

[24-Feb-2011 18:55:30] PHP Warning: include(includes/modules/FILENAME_RECENT_PRODUCTS_MODULE.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/site/public_html/includes/templates/template_default/templates/tpl_modules_recent_products.php on line 12

seriosuly, no definition of FILENAME_RECENT_PRODUCTS_MODULE

I manually configured the file path, and when it read the file it errored the page!!

Who is allowing this mod to be uploaded in this "DRAFT" form..

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14

23 May 2011, 4:41 AM
#23
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Post #23 by willie_bee

Me thinks something is wrong with this mod. From what I gather this is how it works.

You can activate the sidebox module and it will show the recently viewed products.

Or you can add the code to the product page so when you are at a product page's description, it will show the recently viewed products.

For ME, the sidebox module works. Trying to get the option on the product info page is NOT working. I'm not getting ANY ERRORS, just getting nothing but like I said, the sidebox module is working.

Here is the code.

<!--bof also purchased products module--> <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> <!--eof also purchased products module--> <!--bof recent products module--> <?php require($template->get_template_dir('tpl_modules_recent_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_recent_products.php');?> <!--eof recent products module-->

NOW I did make some changes above. The code to call the file was different slightly in the author's instructions and I just made his the same was as the 'also purchased products module' hoping that would fix it but it did not. BOO.

don't mess with willie bee. i may go crazy on you.

5 Jun 2011, 8:30 AM
#25
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Post #25 by willie_bee

Design75:

this is the author : motoccnl . You could sent him a pm

well no reply so far. the sidebox works but i wishthe product page would also.

don't mess with willie bee. i may go crazy on you.

26 Jun 2011, 10:57 AM
#26
motoccnl avatar

motoccnl

New Zenner

Join Date:
Mar 2010
Posts:
8
Plugin Contributions:
0

Post #26 by motoccnl

Design75:

this is the author : motoccnl . You could sent him a pm

I m not the author of this module. I just added the possibility to show it on a products page. I already updated it a while ago on the zencart site.

To define 'FILENAME_RECENT_PRODUCTS_MODULE' do the following:

Go to: includes/filenames.php

and ad the following line:

define('FILENAME_RECENT_PRODUCTS_MODULE','recent_products.php');

This way it should work.

22 Jul 2011, 8:57 AM
#28
novastar avatar

novastar

Zen Follower

Join Date:
Jul 2009
Posts:
127
Plugin Contributions:
0

Post #28 by novastar

Can a sort order be put on the side box so that the most recently viewed item shows at the top of the list? If so can any one assist me, thank you.

1 Aug 2011, 7:27 PM
#29
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Post #29 by ksookma

novastar:

Can a sort order be put on the side box so that the most recently viewed item shows at the top of the list? If so can any one assist me, thank you.

You can set the sort order in admin, tools -> layout boxes controller.

I have built a number of zen cart stores and have downloaded the recently viewed products mod a number of times before. It seems that whenever the column the recently viewed sidebox appears in must be active on the product_info page otherwise the sidebox will not register the visit to that page. Strange..

15 Oct 2011, 11:53 PM
#30
fariba avatar

fariba

New Zenner

Join Date:
Jun 2010
Location:
London
Posts:
39
Plugin Contributions:
0

Post #30 by fariba

Hi . I have installed the recently viewed module and it shows the recently viewed item in sidebox but I would like to have it underneath the product info page.. I have added the following code in my tpl_product_info_display.php page but it does not show anything

<!--bof recent products module--> <?php require($template->get_template_dir ('tpl_modules_recent_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates') . '/tpl_modules_recent_products.php'); ?> <!--eof recent products module-->

Any suggestion would be so appreciated...

Any Idea Please :cry:

3 Dec 2011, 9:51 PM
#31
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

Post #31 by pinksparklegirl

I can't get the code to work in the product info page either.

The script also stops my footer from showing up too, which is weird.

I'd love to get this mod working in the product info page, and still see my footer!

7 Dec 2011, 6:33 PM
#32
novastar avatar

novastar

Zen Follower

Join Date:
Jul 2009
Posts:
127
Plugin Contributions:
0

Post #32 by novastar

ksookma:

You can set the sort order in admin, tools -> layout boxes controller.

I have built a number of zen cart stores and have downloaded the recently viewed products mod a number of times before. It seems that whenever the column the recently viewed sidebox appears in must be active on the product_info page otherwise the sidebox will not register the visit to that page. Strange..

Hey I know its been a long time but I don't always see when someone replies to a post. I think you might have misunderstood me. I wasn't talking about the order in which the sidebox itself shows up but rather the order in which the items that you have recently viewed appear within the recently viewed side box. I would like to have it so that the most recently viewed item appears first on the list.

I think you might have keyed onto something else though, because I don't want the item that is currently being viewed to appear in the recently viewed side box until after you navigate away from the page.

16 Dec 2011, 2:20 PM
#33
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Post #33 by vinnyna

I can't get it to work either for the centre box.
and it shows up in the side box except the images are full size and huge. So that doesn't work well either. I think that may have to do with Image handler installed.

Shame....

If any one has managed to fix it please let me know.

19 Aug 2012, 8:48 PM
#34
xergos055 avatar

xergos055

New Zenner

Join Date:
Nov 2008
Posts:
36
Plugin Contributions:
0

Post #34 by xergos055

vinnyna:

I can't get it to work either for the centre box.
and it shows up in the side box except the images are full size and huge. So that doesn't work well either. I think that may have to do with Image handler installed.

Shame....

If any one has managed to fix it please let me know.

Replace the recent_products.php from includes/modules with recent_products.php from includes/modules madet for version 1.5.0