Greetings
I am adding support for the node checkout module to my "Who Bought What" module (http://drupal.org/project/uc_who_bought_what).
Presently, the module displays a report of purchaser, product, quantity, and, if enabled, attributes.
I have added code that looks in the serialized order product 'data' field and extracts the 'node_checkout_nid' datum, and then uses this via node_load to add the name of the created node and a link to it. It seems to work!
Here are my questions:
1. Is this the best way to go?
2. Am I at risk of a change in field name or data format in the forseeable future?
3. Is there a readily-accessible function in the node_checkout module that I should use that will give me the linked out node based on order_product_id?
Thanks!
Comments
Comment #1
rszrama commentedThat's the best bet. It's loose, I know, but that's the field that will be preserved for the foreseeable future. I'd use it. : )