News:

Support the VirtueMart project and become a member

Main Menu

Recently Viewed Products problem (and fix)

Started by doorknob, March 02, 2008, 15:12:04 PM

Previous topic - Next topic

doorknob

The recently viewed products facility in VM 1.1 (Nightly 02/03/2008) shows one too many items. E.g. if the number set in the backend is 5, then 6 are shown.
This can be fixed by making the following change:
administrator\components\com_virtuemart\classes\ps_product.php
Change line 2457 from
if($k < $maxitems+1) {

to
if($k < $maxitems) {

Regards
Phil