0

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?

9
  • no copy paste query is not standard work as defined in magento standard. 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
0

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.

9
  • this is not valid solution for module installation
    – Abdul
    Dec 24 '15 at 12:17
  • i have give the solution for database because i am unable to access your code. hope you can understand. Dec 24 '15 at 12:18
  • but core_resource has not any records for this module then?
    – Abdul
    Dec 24 '15 at 12:24
  • @abdul, yes, it does not have
    – Anna
    Dec 24 '15 at 12:26
  • 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? Dec 24 '15 at 12:27
0

The reason why its not worked is because of the case of module folders names.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.