Closed (fixed)
Project:
UC Node Checkout
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2009 at 02:06 UTC
Updated:
27 Jan 2010 at 07:10 UTC
In Drupal 5.x, how does one use workflow-ng to publish a node after a person checks out? Thanks.
Comments
Comment #1
rszrama commentedYou'd have to write a custom PHP action that updated the node's status upon checkout completion... so, use the "User completes checkout" trigger and add an action that loops through the $order->products, looks in each product's data array for a node_checkout_nid key, and uses the value to update the node's status to 1. Sorry this is vague... requires PHP / Drupal knowledge.
Comment #2
tanyi commentedThanks. I need help with the custom code to update the status. Can anyone help with this?
Comment #3
kscheirerI've just started looking at this module, but I think you can find some here here... http://drupaleasy.com/blogs/ultimike/2009/03/event-registration-ubercart
something like this?