I have the latest Ecommerce module installed on my drupal site, and it seems to be working fine. I also recently upgraded my Userpoints module to 5.x-2.0. The check box on my modules page on my drupal site for Userpoints Ecommerce is blocked, I cannot enable it. It also tells me this "Depends on: Userpoints,store (missing)"
But store is not missing, I have it on my drupal site, and it is enabled, I have been using it. Any ideas why this is? Thanks
Comments
Comment #1
kbahey commentedThis is odd.
If store is enabled, then userpoints_ecommerce should detect it.
Try editing the userpoints_ecommerce.info file, and remove the dependency on store.
Comment #2
theycallmepj commentedAfter I did that, I got this error when I went to admin > site config > userpoints settings
Fatal error: Call to undefined function: module_exist() in /home/public_html/sites/all/modules/userpoints/contrib/userpoints_ecommerce/userpoints_ecommerce.module on line 25
Comment #3
kbahey commentedFind the file userpoints_ecommerce.module, and on line 25, change:
if (module_exist('cart') && module_exist('payment')) {to
if (module_exists('cart') && module_exists('payment')) {Also in userpoints_ecommerce.info, change the line:
dependencies = userpoints,storeto
dependencies = userpoints, cart, paymentIf this fixes it, I will release 5.x-2.1 with these changes.
Comment #4
theycallmepj commentedThis change did not work, but it did work when I took the commas out of
dependencies = userpoints, cart, paymentand changed it to
dependencies = userpoints cart paymentI also did this for referral_points
Comment #5
kbahey commentedFixed in 5.x-2.1
Comment #6
(not verified) commented