VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: doorknob on March 02, 2008, 15:12:04 PM

Title: Recently Viewed Products problem (and fix)
Post by: doorknob on March 02, 2008, 15:12:04 PM
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