Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Thanks!
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedFor 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.
Comment #2
aidanlis CreditAttribution: aidanlis commentedComment #3
aidanlis CreditAttribution: aidanlis commentedFixed in git:84cb48d