Page 1 of 1

Module - Recently viewed products?

Posted: 26 Mar 2023, 15:35
by eu4ria
Hello! Is there a module something like Recently viewed products by user?
As far as I see in Scroller module there is a Random sorting, but it absent in Product module. This make me think it is not difficult to add a code tо get Recent products displayed.

Also - forum search doesn't work - Site cse.google.com does not allow connection. So the is no way to check if this question was asked

Re: Module - Recently viewed products?

Posted: 27 Mar 2023, 11:45
by Jan
Hi, thank you for the info about the search problems.

For displaying recently viewed products, you can use Phoca Cart Product module:
https://www.phoca.cz/phocacart-extensio ... uct-module

There is ordering parameter, so you can create different instances based on ordering:

Image

Jan

Re: Module - Recently viewed products?

Posted: 27 Mar 2023, 14:51
by eu4ria
No, that's basically not the same! I'm asking about a situation when a user has viewed several pages and wants to return to a product hi liked. It is very convenient when there is such a module at the bottom of the page. I previously used Virtuemart and there it was implemented like this

Code: Select all

if($cache and $Product_group!='recent'){
	
	$cache	= VmConfig::getCache('mod_virtuemart_product');
	$cache->setCaching(1);
	$cache->setLifeTime($cachetime);
	$db = JFactory::getDbo();
	echo $cache->get( array( 'mod_virtuemart_product', 'displayProductsMod' ), array($module, $params, $Product_group));
	vmdebug('Use cached mod products');
} else {
	echo mod_virtuemart_product::displayProductsMod($module, $params, $Product_group);
}

Re: Module - Recently viewed products?

Posted: 27 Mar 2023, 21:18
by Nidzo
Very useful option. It would be nice to see it in Phoca Cart.

Re: Module - Recently viewed products?

Posted: 28 Mar 2023, 12:00
by Jan
Hi, thank you for the idea, can you paste some screenshot and more detailed information about this feature.

Jan