Hi,
I'm facing a little problem using the UserPoint Product module with a payment method. I'm using a Payment methods (Paybox) that update the Order setting the status "payment received" after the Order/payment is completed. The products that award points are packs of Points that you can then use to buy the "real" products. So it is not shippable, and we don't change the order status manually to "Completed".
If someone has an idea how I could solve this without hacking the code?
Otherwise, I was thinking that a nice feature could be that we can define the order status for which the points are awarded in Userpoint Products UI.
Comments
Comment #1
Plazmus commentedOk, so I believe that your problem is that you want to award points when Order has status "payment received" (or any other selected status), because as default it's "Completed"
Solution:
Go to 'Store Administration -> Conditional Actions', find "Award points if order complete" and change conditions as you like.
Comment #2
celia_ccs commentedThanks for the tip. I really thought it would be the solution. :o
I have been making some tests changing the type of Order status in the conditions, but it sill behave exactly he same way. I changed the condition so it would award the points if the Order is upadted to status "payment received" but still only does it if I change the status to "Completed".
What makes me wonder it is if this condition is actually working as in the code of the module the order status is hard coded. If I'm not mistaking it is in the function uc_userpoints_product_order() (L164) of the uc_userpoint_product.module file that the points are awarded to the user. And there is a condition on the status being "completed".
So I don't know if it would work even changing the condition in the Conditional Actions of Ubercart .. I didn't manage to do it at least :o
But I did manage to solve my problem adding another condition to change the order status to "Completed" after being updated to "payment received". So that way it does trigger the Point awarding action.
Thanks