You should see it working here
once you have browsed a few products obviously (embarrasingly i forgot to do that originally)
Great, will give that a try in just a moment and get back to you :)
Ok it failed miserably on my second test shop
Try this, it works for me
zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)
The solution in my first post regarding a null field also works, but this one is reader friendly by filling the alt and title tagsPHP Code:
zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], $recent_products->fields['products_name'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)
The last couple of Zen-Cart sites we have worked on, Darncat Designs, Sweet Brucies
Ok...here's where we're at....
Recently Viewed SIDEBOX mod works perfectly in ZC150
Recently Viewed ITEMS also works in ZC150, insofar as the sidebox is concerned...and that is thanks to the change in code that you posted.
However, the difference in functionality between these two mods is that the Recently Viewed ITEMS mod is supposed to add a centerbox so that users can have recently viewed items in a centerbox beneath the "also purchased" centerbox. That's what the optional file is for.
That functionality is not working, so at this point, the two mods are essentially the same.
I'm going to go ahead and submit the Recently Viewed SIDEBOX mod to the downloads section (after I write a readme for it).
If I can get the Recently Viewed ITEMS mod to display the centerbox, then I will submit that one too...so folks will have a choice between showing their additional items in a sidebox, a centerbox, or both.
Thanks so much for your help!!
Do you know there is a spelling mistake in the optional files?
the final folder is named template rather than templates
3. Optional Install File\includes\templates\YOUR_CUSTOM_TEMPLATE\template
i am fairly sure it should be templates
just noticed in your error message
Thats not the name of a file is it, doesn't that mean a define or something is incorrect?includes/modules/FILENAME_RECENT_PRODUCTS_MODULE.php
Changed line 12 of /includes/templates/atestcustom/templates/tpl_modules_recent_products.php from
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_RECENT_PRODUCTS_MODULE));
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_RECENT_PRODUCTS));
- Centerbox won't display
- Same error being thrown
- Sidebox displays as expected
If either FILENAME_RECENT_PRODUCTS_MODULE or FILENAME_RECENT_PRODUCTS is defined somewhere, the uppercase will be replaced by its defined value when used... so it appears you are missing a define.
Ok...here's where I get lost because I'm not a coder.....but shouldn't defines be in the language file? Or can they be anywhere? Perhaps the missing define should be on line 12 of the file mentioned in the error?
And..how do I go about writing a define statement? Can I just google that?
Last edited by ScriptJunkie; 2 Apr 2012 at 04:50 PM. Reason: responding to gjh2