Download & Extend

Refer to a product nid, when recording the userpoints transaction

Project:Ubercart Userpoints
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Currently, when the userpoints transaction is recorded in uc_userpoints_product_order, the following is done:

'entity_id' => $order->oid,

It would be great if this could be instead changed to

'entity_id' => $product->nid,

This is so that the product associated with the userpoints transaction can be recorded. It seems oid is an outdated field anyways, since it doesn't show up in $order anywhere.

Thanks!

Comments

#1

Category:task» feature request

I will leave this open for discussions sake but it is either won't fix or works as designed. The field is supposed to map to the order id. Mapping to a product would mean for each product in the users cart I would need to have a transaction vs having a single transaction for the order. I'll try to keep it in mind for future versions...

nobody click here