I'd like to have the $nid of the original product in any nodes created with node_checkout. I have a few different products all connected to the same content_type, and when I (or the buyer) goes back to edit the created nodes I'd like to have access to the 'parent' product nid so that I can pull in the title, make a link back to that product, etc.



aidanlis’s picture

For any checked nodes, it's available in $node->uc_order_product_id

I'll add an option to save the product_id as a CCK field during add-to-cart in the same way that the order status and order id are saved.

aidanlis’s picture

Assigned: Unassigned » aidanlis
aidanlis’s picture

Assigned: aidanlis » Unassigned
Status: Active » Fixed

Fixed in git:84cb48d

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.