I have question regarding helper attributes, in fact couple questions :)
Where I can find list of all product attributes defined through Mage.php
SKU is not defined through those attributes, cuz it shows me an error on line 546 in Mage.php that sku is not a part of attributes. Is it possible to add sku into?
I am creating import module for XML live feed, so is it possible to calculate price margin before update prices in database? If is possible can someone show me some kind of example, just to have some intern knowledge about?
Thank you all
EDIT:
This is example of my code, just to see what I am talking about:
public function getName() {
return 'Name';
}
public function getIdentifier() {
return 'name';
}
public function getType() {
return 'varchar';
}
public function getPreview($content) {
return $content;
}
public function setData(Mage_Catalog_Model_Product $product, $data) {
$product->setName($data);
}