Is it possible to query the Magento database and display product attributes outside Magento? -


I am creating a site that needs to display certain product information from the Magento database, Magento intallation I can find out on page / site I know that the information is displayed twice, but I would like to avoid site duplication of content and pull from the same source, from the same source, Magenta product database.

Is that correct? Has anyone done this?

The entire magento will be very easy to pull in the engine in its external page [the rest of the magenta Contrast] is very easy to do.

All you have to do is:

// Load the Magento Core ('Magento', the actual path ('/ var / www / magento /'));

require_once (MAGENTO. '/app/Mage.php');

$ app = Dana :: app ();

Now you can use any of the Magento Objects / Classes like you are inside Magento and receive your properties

  $ product = Mage: : GetModel ('catalog / product') - & gt; Load (1234); $ Product- & gt; GetSku (); $ Product- & gt; GetYourCustomAttribute ();  

etc.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -