0

My Magento project has 2 connetions: default,whmanager.

        $joinConditions = 'main_table.product_id = catalog_product_entity.entity_id';
    $collection->getSelect()->join(
        ['catalog' => $collection->getTableName("catalog_product_entity")],
        'main_table.product_id = catalog.entity_id',
        []
    );

This code isnt working because (whmanager hasnt catalog_product_entity table) main.table(whmanager database) catalog_product_entity(default database)

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.