I've now hacked the ModuleIsotopeRelatedProducts.php with:
Code:
...
IsotopeFrontend::setReaderIds($arrJumpTo); // added
return IsotopeFrontend::getProducts($arrIds, IsotopeFrontend::getReaderPageId(null, $this->iso_reader_jumpTo));
}
Then I added the function to capture the readerIds in a variable (called above)
Code:
class IsotopeFrontend extends Frontend
{
...
protected static $arrReaderIds = array(); // added to the top
...
public static function getProducts($objProductData, $intReaderPage=0, $blnCheckAvailability=true, array $arrFilters=array(), array $arrSorting=array())
...
while ($objProductData->next())
{
// added the 4 lines below to override the related reader pageids
if (self::$arrReaderIds[$objProductData->id])
{
$intReaderPage = self::$arrReaderIds[$objProductData->id];
}
$objProduct = IsotopeFrontend::getProduct($objProductData, $intReaderPage, $blnCheckAvailability);
if ($objProduct !== null)
{
$arrProducts[$objProductData->id] = $objProduct;
}
}
...
}
This code may not be perfect...
Bookmarks