Author Topic: Recently Viewed Products problem (and fix)  (Read 2192 times)

doorknob

  • Jr. Member
  • **
  • Posts: 151
Recently Viewed Products problem (and fix)
« 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
Code: [Select]
if($k < $maxitems+1) {
to
Code: [Select]
if($k < $maxitems) {
Regards
Phil