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 1 to 20 of 34
13 Feb 2011, 9:42 PM
#1
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Post #1 by philip937

Hi all.

Hot a problem with this mod hoping someone can help as there doesnt seem to be a proper thread for it.

The add on is this:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=720

The problem I have is when trying to implement the center content as described in the install.txt file

to include this code in the product info display file:

<!--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-->

When I do I get the following error:

PHP Warning: require(includes/templates/template_default/templates/tpl_modules_recent_products.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/site/public_html/includes/templates/cherry_zen/templates/tpl_product_info_display.php on line 501

After seeing this I look at the code and it doesn't even look like this file is even included in the install..?

I tried using the file from the sideboxes directory but that just gives me a different error something to do with the MoveNext() part of the code...

I like the mod, works well as the side box but I really want it under the products..

Anyone got any suggestions??

Cheers

Phil

Phil Rogers
A problem shared is a problem solved.

18 Feb 2011, 3:53 PM
#2
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #2 by kavin86

Hello i have the same problem, does anyone know how to fix it??

18 Feb 2011, 4:15 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Post #3 by gjh42

it doesn't even look like this file is even included in the install..?
Which file?
/includes/templates/cherry_zen/templates/tpl_modules_recent_products.php?
/includes/templates/template_default/templates/tpl_modules_recent_products.php?

If a called-for template file is not in the current template folder, the code will look in the /template_default/ folder for it.
The centerbox option was just added a few days ago - are you sure you have the right version of the files? Maybe the recent updater left a new file out of the package?

If the new file is the only one in the /includes/templates/your_template/ folder, did you rename /your_template/ (whatever its original name was) to your template name?

18 Feb 2011, 6:48 PM
#4
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #4 by kavin86

There are some error in this code?

<!--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 if i put this code in a tpl_product_infodisplay i don't see anything, and the right box is hidden, why??I have pure_blue template and i have put the code in the right file.

18 Feb 2011, 9:23 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Post #5 by gjh42

What files (including their full folder paths) are in the mod's package?
What of those files can you find on your server, and are their paths any different (except for template name)?

19 Feb 2011, 7:23 AM
#6
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #6 by kavin86

Sorry, i don't understand your question, you know if the are any problem in the posted code???

20 Feb 2011, 2:42 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Post #7 by gjh42

There is no inherent error in the code you posted, but if the file it calls for is not in the correct place, you will get a fatal error. I am asking for the filenames that came with the mod, and their foldernames; also whether you can find those files on your server, and what the foldernames are there.

20 Feb 2011, 10:42 AM
#8
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #8 by kavin86

Maybe i undestand what the problem is, i don't find this file tpl_modules_recent_products.php in template folder, i whatched inside the original recently_viewed_items folder and i didn't find this file. I tried to download again the zip folder but nothing, i have the same problem every time.

20 Feb 2011, 9:48 PM
#9
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #9 by design75

kavin86:

Maybe i undestand what the problem is, i don't find this file tpl_modules_recent_products.php in template folder, i whatched inside the original recently_viewed_items folder and i didn't find this file. I tried to download again the zip folder but nothing, i have the same problem every time.

same problem here. file tpl_modules_recent_products.php is not included in the install

20 Feb 2011, 9:52 PM
#10
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #10 by kavin86

<!--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-->

yes this file is not included, but the code call this file, how can i fix it??I need this file (i think)

20 Feb 2011, 10:09 PM
#12
kavin86 avatar

kavin86

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Post #12 by kavin86

thanks a lot!!!

Hope to hear from you soon
Federico

20 Feb 2011, 10:46 PM
#14
motoccnl avatar

motoccnl

New Zenner

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

Post #14 by motoccnl

I'm really sorry,

I uploaded the correct package to zen cart, but they take a while te review, so in the mean while you can download it from here: http://dl.dropbox.com/u/8275595/recently%20viewed%20products.zip

Again, im really sorry

22 Feb 2011, 12:27 PM
#15
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Post #15 by philip937

Sorry for the deay in replying.

To me, it would seem that the code that is being placed in the product info display file is calling a template file that isnt included in the install package:
tpl_modules_recent_products.php

Has anyone found a solution/know what the contents of this file would need to be yet?

Phil Rogers
A problem shared is a problem solved.

22 Feb 2011, 1:52 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #16 by ajeh

That file is in the download ... are you sure that you loaded everything to your site? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

23 Feb 2011, 12:15 PM
#18
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Post #18 by philip937

gjh42:

philip937 - Look at the post by motoccnl just above yours.

Haha oh yeah my bad, cheers

Phil Rogers
A problem shared is a problem solved.

24 Feb 2011, 7:04 PM
#19
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Post #19 by 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..

Phil Rogers
A problem shared is a problem solved.

4 Apr 2011, 8:59 PM
#20
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Post #20 by linux

Hello, it am testing this mod and everything seems to be ok.

Is there anyway NOT to make it show up on the home page but on all the other pages?

Frank