I had to patch Magento 1.6.1 to be able to export product (which include getting the list of product_links).
In app/code/core/Mage/Catalog/Helper/Product.php :
public function getProduct($productId, $store, $identifierType = null) { $loadByIdOnFalse = false; if ($identifierType == null) { // Magento 1.6.1 : if (is_string($productId) && !preg_match("/^[+-]?[1-9][0-9]*$|^0$/", $productId)) { if (is_string($productId)) { $identifierType = 'sku'; $loadByIdOnFalse = true; } else { $identifierType = 'id'; } }
I had to patch Magento 1.6.1 to be able to export product (which include getting the list of product_links).
In app/code/ core/Mage/ Catalog/ Helper/ Product. php :
public function getProduct( $productId, $store, $identifierType = null) {
$loadByIdOnFal se = false; $productId) && !preg_match( "/^[+-] ?[1-9][ 0-9]*$| ^0$/", $productId)) { $productId) ) {
$identifierTy pe = 'sku';
$loadByIdOnFa lse = true;
$identifierTy pe = 'id';
if ($identifierType == null) {
// Magento 1.6.1 : if (is_string(
if (is_string(
} else {
}
}