Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Denotes a question related to the Magento products.
2
votes
1
answer
13k
views
How can I get the website Id's a product is associated with?
I can set the website ids against a product by adding 'websites' => array(1,2) to an array and saving the product. … I tried $product->getWebsites() but websites isn't in the _data var of the product object so returns null. …
3
votes
2
answers
2k
views
Price showing as 0 on product grid but correct price when you click into it [closed]
I have imported some products into Magento and I am faced with this problem.
I don't really know where to start debugging this. This is how I am setting the price at the moment (removed some data f …
1
vote
1
answer
103
views
Product import raising an error but the script is stopping, not being handled by catch{}
For instance, one product threw an error here in Catalog\Product\Type\Configurable.php with this line:
foreach ($this->getConfigurableAttributes($product) as $attribute) {
$this->getProduct … ($product)->setData($attribute->getProductAttribute()->getAttributeCode(), null);
}
basically it was reporting that $attribute was null (and it threw the error when debugging using xdebug) however …
1
vote
Accepted
Product import raising an error but the script is stopping, not being handled by catch{}
Fatal Error's will cause the Magento error handling and any other Error handling to fail. This is by design in PHP. With that in mind, I am now logging the errors using a shutdown event.
register_shu …
4
votes
2
answers
4k
views
Loaded product missing media_gallery attribute
I am loading a product like so:
$product = Mage::getModel('catalog/product')->loadByAttribute('sku', 'MyStockCode');
Then I try to get the images using:
$existingGallery = $product->getMediaGallery … When inspecting _data against $product the media_gallery attribute is missing. …
2
votes
1
answer
1k
views
How can I check if an image is already set against a product?
I am doing a product import routine and have images added to my product. … I need to find a way to check if myimage.jpg has been added to a product or not. …
1
vote
Accepted
How can I check if an image is already set against a product?
Unfortunately, we had to hack this a little bit as I couldn't find a reliable way to determine if an image is in use on a product or not. …