0

9.1.0 and when importing related products the file seems to run and then we get no information and the related products field has not imported.

1 Answer 1

1

If you're using Dataflow, follow this link: How to import related products in normal import process?

If you're doing it programmatically, you'll need to do this.

$data = array(
    product_id_1 => array(
        'position' => $position1
    ),
    product_id_2 => array(
        'position' => $position2
    ),
    // etc...
);
$product->setRelatedLinkData($data)
    ->save();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.