Module - Recently viewed products?

Phoca Cart - complex e-commerce extension
eu4ria
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 20 Mar 2023, 14:16

Module - Recently viewed products?

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Module - Recently viewed products?

Post 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
If you find Phoca extensions useful, please support the project
eu4ria
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 20 Mar 2023, 14:16

Re: Module - Recently viewed products?

Post 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);
}
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 250
Joined: 07 Nov 2018, 14:55

Re: Module - Recently viewed products?

Post by Nidzo »

Very useful option. It would be nice to see it in Phoca Cart.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Module - Recently viewed products?

Post by Jan »

Hi, thank you for the idea, can you paste some screenshot and more detailed information about this feature.

Jan
If you find Phoca extensions useful, please support the project
Post Reply