When this module is installed and uc_attributes has not previously been installed, the uc_gift_certificate product attributes are not created. Presumably this happens because uc_gift_certificate does its thing earlier in the cycle before uc_attributes has installed. I quickly realised the problem, uninstalled uc_gift_certificate, reinstalled and the attributes were created. Maybe you should have the script deactivate the uc_gift_certificate module until after uc_attributes has been installed or something.

Comments

barinder’s picture

Version: 6.x-1.3 » 6.x-1.4

Hi,

I am facing similar issue. No default attributes are created after installing this module and above solution also do not work for me.

Barinder

ericbroder’s picture

Hi Barinder, I'm guessing you may have just disabled/enabled the module, but you actually need to uninstall it at /admin/build/modules/uninstall and then re-enable it to fix the problem.

In other words, this seems to work:
- Enable Product attributes module first.
- Then enable Gift Certificates second.

This also works:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module.
- Re-enable Gift Certificates module.

This doesn't seem to work:
- Enable Product attributes and Gift Certificates module.

And this doesn't either:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Re-enable Gift Certificates module.

Thanks,
Eric

barinder’s picture

Hi Eric,

I had already followed this :

This also works:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module.
- Re-enable Gift Certificates module.

But it doesn't seems to work for me.

Barinder

ericbroder’s picture

I should clarify that there are three possible ways to "uninstall", and only one of them works for me here. The one that works for me is the uninstall function at /admin/build/modules/uninstall.

Removing the module from the code base is also called uninstalling, but that's different and doesn't solve the problem. (DB uninstall and code uninstall should really have different names, to be less confusing.)

I'm also having some trouble with the drush pm-uninstall function, not sure why.

So to be more precise, this is what works for me:
- Enable Product attributes and Gift Certificates module.
- Disable Gift Certificates module.
- Uninstall Gift Certificates module with the uninstall function at /admin/build/modules/uninstall.
- Re-enable Gift Certificates module.

barinder’s picture

Hi Eric,

Manually doing all the stuff worked for me. :) Thanks !!
.
Earlier I was following this steps using Drush commands and it didn't worked.
Module's install hook needs some work done to get it compatible with its dependent module as well as Drush commands.

Barinder