Active
Project:
Ubercart Userpoints
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2010 at 06:17 UTC
Updated:
23 Jan 2011 at 22:52 UTC
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
Comment #1
bmagistro commentedI 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...