Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have set User Points as the only Payment method in Uebercart. When I purchase an article The Price ist listet with the correct amount of points but after submit no points get subtrated. Is there special configuration I have to do?
Seems like I am not the only one with that issue: http://drupal.org/node/926686
Comments
Comment #1
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedHi,
I am also facing the same problem with points deduction after making purchase. I am using paypal as the payment method and userpoints discount method as the approach. It works fine if payment method is check, points are getting deducted and message is appearing.
I managed to get it working by using conditional actions by checking the conditions like payment method and updated order status. In actions i executed a piece of php code given below :
Comment #2
mwangi CreditAttribution: mwangi commentedthere is a patch somewhere on this site that makes this change
Comment #3
cedric_aFor the record : some (a lot of) payment modules replaces the submit button of the order validation form so that the code inside "case 'submit' :" is never called (in function uc_userpoints_discount_order()).
To fix this I applied the advise in #1 here http://www.ubercart.org/forum/support/2629/problem_hook_order_submit_and_paypal
and replaced the whole "case 'submit' :" by this :
IMO it has sense to substract points when order is completed (it's done at the same moment for points added with conditional actions).
Hope this helps.
Comment #4
cedric_a... fixing the title spelling for better search results