Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6711209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:06:45+00:00 2026-05-26T08:06:45+00:00

I am trying to essentially create a split screen view, one grid of a

  • 0

I am trying to essentially create a split screen view, one grid of a remote repository full of products, and another alongside it showing the local repository in a grid.

I think that essentially sums it up, I’ll give partial credit if you can tell me how to simply incorporate the remote source into the grid… I think I could handle it from there even. Please be thoughtful, I don’t really want to hear how to configure my resources in the config.xml, I already can do that with a remote database, i just can’t get the objects/collections to load from it.

Thanks guys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:06:45+00:00Added an answer on May 26, 2026 at 8:06 am

    OK– So for those of us who’ve tried something like this, the first thing you realize is that when you want more than one database as a source in your module… you actually need 2 modules to do so (someone chime in and correct me if i’m wrong).

    Step 1: Create a “dummy” module to connect with your remote database. This module should pretty much just contain etc/ and Model/ — there’s no real need for anything else. My config.xml looks as follows:

    <config>
    <modules>
        <Mage_RepoDummy>
            <version>0.1.0</version>
        </Mage_RepoDummy>
    </modules>
    
    <global>
        <resources>
            <repodummy_write>
                <connection>
                    <use>repodummy_database</use>
                </connection>
            </repodummy_write>
            <repodummy_read>
                <connection>
                    <use>repodummy_database</use>
                </connection>
            </repodummy_read>
            <repodummy_setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </repodummy_setup>
            <repodummy_database>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[brandrepo]]></username>
                    <password><![CDATA[*******]]></password>
                    <dbname><![CDATA[brandrepo]]></dbname>
                    <model>mysql4</model>
                    <type>pdo_mysql</type>
                    <active>1</active>
                </connection>           
            </repodummy_database>                 
        </resources>      
         <models>
            <repodummy>
                <class>Mage_RepoDummy_Model</class>
                <resourceModel>repodummy_mysql4</resourceModel>
            </repodummy>
            <repodummy_mysql4>
                <class>Mage_RepoDummy_Model_Mysql4</class>
                <entities>
                    <product>
                        <table>catalog_product_entity</table>
                    </product>
                </entities>
            </repodummy_mysql4>
        </models>
    </global>
    
    <adminhtml>  
    </adminhtml>
    

    Now you’ll need the following model and resource files:

    /Model/Product.php
    /Model/Mysql4/Product.php
    /Model/Mysql4/Product/Collection.php
    

    In Product.php:

    class Mage_RepoDummy_Model_Product extends Mage_Catalog_Model_Abstract
    {
        public function _construct()
        {
            $this->_init('repodummy/product', 'entity_id'); 
        }
    } 
    

    In Mysql4/Product.php

    class Mage_RepoDummy_Model_Mysql4_Product extends Mage_Catalog_Model_Resource_Abstract
    {
        public function __construct()
        {
            parent::__construct();
            $this->setType(Mage_Catalog_Model_Product::ENTITY)
                 ->setConnection('repodummy_read', 'repodummy_write');
            $this->_productWebsiteTable  = $this->getTable('catalog/product_website');
            $this->_productCategoryTable = $this->getTable('catalog/category_product');
        }
    } 
    

    And In Mysql4/Product/Collection.php

    class Mage_RepoDummy_Model_Mysql4_Product_Collection extends Mage_Catalog_Model_Resource_Collection_Abstract {
    
        protected function _construct()
        {
                $this->_init('repodummy/product');
        }
    } 
    

    Just barebones type stuff, like you’d do for any basic model in Magento. Now from another module, that’s rigged to any other database, probably/possibly your local instance, you can access this remote data store by invoking your dummy object, if you wanted to test this just do something simple like:

        $test = Mage::getModel('repodummy/product')->load(10367);
    
        die("::".$test->getSku()."::");
    

    …and this model should function just like your typical product model for the most part, except you’re using a remote database, happy coding!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright so what I am trying to do is essentially create a program that,
What I am trying to do is essentially create two vectors of objects, where
I'm trying to a create a fully functional web proxy using node.js which essentially
I am trying to create a file that is essentially an e-mail with headers
I am trying to figure out how to essentially create a floor call based
I'm trying to create a particular effect - where essentially various elements move around
I'm trying to create a CollapsiblePanel control, which is essentially just a panel which
I am trying create a prototype where one of the features is a dropdown
I am essentially trying to create a pHp pdo parameter binding equivalent without the
Hello I'm essentially trying to do this inside a new view window in SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.