Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Grab the model programmatically #5

Open
tachyon-ops opened this issue Sep 22, 2014 · 0 comments
Open

Grab the model programmatically #5

tachyon-ops opened this issue Sep 22, 2014 · 0 comments

Comments

@tachyon-ops
Copy link

Hi there.

I'm interested in grabing the file array for code fun.

Something like
require_once(DIR ."/app/Mage.php");
umask(0);
Mage::app();

$product = Mage::getModel('catalog/product')->load(200);

$model = Mage::getModel('n98infofiles/file');
//$collection = $model->getCollection();
//$collection->addProductFilter($product);
//$collection->addExclusiveStoreFilter($product->getStoreId());
//$collection->load();

Can''t seam to go through with it... I need some insight in here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant