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
}
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
}
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.
this is the author : motoccnl . You could sent him a pm
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
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.
Sorry![]()
![]()
![]()
Zen cart installation / maintenance / customisation / hosting
Supported Modules: Dutch language pack, Multi site, Dynamic Price Updater and more.
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..
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![]()