How Can I load a Product from the db based on the nid?
Asked
Active
Viewed 2,315 times
2 Answers
1
Doing a direct db call is an option; however, it is not the Drupal way and does not utilize the benefits of fields, revisions, etc that Drupal's node/CCK system offers. Since uc_products are nodes in Drupal, simply call:
$product = node_load($nid);

kevinaskevin
- 299
- 3
- 20