I am installing extension to magento ("AheadWorks RMA"). But module not showing up on backend or frontend. And there are no any tables that should be there for this extension. What should I do to fix that to make this module work? Is it okay to copy/paste queries from sql folder files to database?
-
no copy paste query is not standard work as defined in magento standard. – Denish Vachhani Dec 24 '15 at 11:56
-
Please clear all cash in admin side & check again & also cross check core_resource table any version entry this module or not – Abdul Dec 24 '15 at 12:15
-
@abdul , core_resource has not any records for this module – Anna Dec 24 '15 at 12:21
-
your cash enable or disable? – Abdul Dec 24 '15 at 12:25
-
disable and I refresh it and delete folder "cache" – Anna Dec 24 '15 at 12:31
example for the script is
<?php
$installer = $this;
$installer->startSetup();
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$entityTypeId = $setup->getEntityTypeId('catalog_product');
$attributeSetId = $setup->getDefaultAttributeSetId($entityTypeId);
$attributeGroupId = $setup->getDefaultAttributeGroupId($entityTypeId, $attributeSetId);
$installer->addAttribute("catalog_product", "costprice", array(
"type" => "int",
"backend" => "",
"label" => "Cost Price",
"input" => "text",
"source" => "",
"visible" => true,
"required" => false,
"default" => "",
"frontend" => "",
"unique" => false,
"note" => "Cost Price"
));
$attribute = Mage::getSingleton("eav/config")->getAttribute("catalog_product", "costprice");
$setup->addAttributeToGroup(
$entityTypeId,
$attributeSetId,
$attributeGroupId,
'costprice',
'999'
);
$attribute->save();
$installer->endSetup();
please check and compare
also check
mysql4-install-0.0.1.php
<modules>
<Nie_Nie>
<version>?.?.?</version>
</Nie_Nie>
</modules>
Those should match for the script to run.
I hope this will help you.
-
-
i have give the solution for database because i am unable to access your code. hope you can understand. – Denish Vachhani Dec 24 '15 at 12:18
-
-
-
Then in my install-1.0.0.0.php script simply runs this: simply put die('here'); on first line refresh page the script is running or not? – Denish Vachhani Dec 24 '15 at 12:27