Hi.

I am creating a website that will work with the module Commerce Discount Userpoints. The site is not ready yet and I have two versions of it: the first version uses the distribution Commerce Kickstart, while the second is based only on Commerce.

In both versions I'm trying to work with points discount to user. Points are obtained by invites. Each registered user receives a point.

It happens that, in the Kickstart version I have options to select the category of the points and the conversion rate of the currency, while in the Commerce pure version, I don't have these options.

I wonder if the setting in Commerce pure is wrong and what is needed to have these functions enabled.

Can anyone help?

Thank you.

CommentFileSizeAuthor
Commerce_Discount.png35.92 KBastutonet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

astutonet’s picture

Category: support » bug
Priority: Normal » Critical

After analyzing the issue and redo the whole setup, I think this is a bug, because in pure Commerce version I don't have the options of selecting the Category Points and Conversion Rate.

I disabled the module, enabling it again, but not solved.

Edit: I also notice the following error messages when trying to complete a purchase transaction:

Warning: reset() [function.reset]: Passed variable is not an array or object in commerce_userpoints_payment_method_form_commerce_checkout_form_checkout_alter() (line 296 de /home/storage/c/13/99/mysite/public_html/sites/all/modules/commerce_userpoints/commerce_userpoints_payment_method/commerce_userpoints_payment_method.module).

Warning: key() [function.key]: Passed variable is not an array or object in commerce_userpoints_payment_method_form_commerce_checkout_form_checkout_alter() (linha 297 de /home/storage/c/13/99/mysite/public_html/sites/all/modules/commerce_userpoints/commerce_userpoints_payment_method/commerce_userpoints_payment_method.module).

mrfelton’s picture

Status: Active » Fixed

With the latest code, you set the conversion rate on the payment method rule settings. This will not be setup correctly after an install due to the drupal commerce bud referenced in #1873496: Payment method settings are not properly initialised until after saving the payment method rule.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.