It seems there is no order id associated with the userpoints when paying with store credit.

I tried to add $order->order_id to the string that comes with each payment so that when users are looking over how they spent their userpoints using the default overview they should see the order id, but $order->order_id does not work.

So I decided to build a table using views but when I added entity_id it shows up 0 for the payments i made with store credit.

So it seems to me that something is missing that should add the order id to these transactions.

Any ideas?

CommentFileSizeAuthor
#1 uc_store_credit.patch1.15 KBgease

Comments

gease’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Here's small patch that makes $order available to store_credit handler, eg uc_sc_userpoints_handler. You should add another variable to the handler: uc_sc_userpoints_handler($op, $uid, $total = NULL, $order = NULL).