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 didn't see this anywhere in the configuration settings, but what I'd like to do is make sure a node remains unpublished until checkout is complete. Is that something the module can do directly or is that something I have to configure via Rules?
If it's a Rules thing, does anyone have a recipe for that?
Comments
Comment #1
allegragf CreditAttribution: allegragf commentedIt has been a while since I set mine up. The node by default should remain unpublished until checkout. What I did was follow this link http://drupaleasy.com/blogs/ultimike/2009/03/event-registration-ubercart. I had to download the hidden fields module so I could make my "status" and "orderid" hidden. Then using a rule I update these field. Then using views I only show the node if it matches the filter criteria of the status and orderid.
Comment #2
pbeakley CreditAttribution: pbeakley commentedThat would be totally awesome if that's what the module did, but it doesn't. If I create the node and add it to the cart, and then go look at Content -> List, it's sitting there published. :-( I read through the drupaleasy.com page, and it reads to me (maybe I'm misreading) that in fact the node being published is part of the module:
Which brings us back to the need for these hidden status fields. So thank you so much for the link! I think I can make that work.
I think I could also publish/unpublish via Rules but I have no idea how to relate the Rule to the created node. There might be a missing bit of code between UC Rules integration and this module. Dunno! In the mean time, the hidden code thing is gold. Thanks again.
Comment #3
pbeakley CreditAttribution: pbeakley commentedOkay, additional thoughts:
That drupaleasy.com page was written pre-D7, which means it uses Conditional Actions instead of Rules. Rules integration with Node Checkout I think is my problem here! I have no idea how to write a Rule so it can act on the created node, so I think I'm going to start a new thread with that in the title.
Comment #4
allegragf CreditAttribution: allegragf commentedYou can find the condition I wrote for the rule here: https://drupal.org/node/1117870