Ok, here's my situation:
I have a webform which I wanted to have trigger a node checkout (UC Node Checkout) when the webform is submitted (I know about webform productize, and let's just say it doesn't fit my exact use case).
Now, I know (now) that I can't have webform do this exactly because a webform submission is not technically a node (learned that the hard way).
So my solution was to use RULES. I first made a second product type (a product class), called "Ordertrigger" so as to use that as the trigger for the node checkout.
So the sequence goes:
- I have the submit button on the webform triggerring a "create content" rule, which creates an "Ordertrigger" product.
- The "Ordertrigger" product class is tied (through Node Checkout) to my normal product being added to the cart.
SHOULD work as far as I can see. But I get that infuriating error message "is not a product. Unable to add to cart." when I hit the submit button. Can't figure out why and I'm not sure how to get Drupal to give me more info on this error. Not sure which one of the items is causing this error (the ordertrigger or the product), or if it is being caused by Rules itself.
If I simply create the "ordertrigger" node manually, the node checkout works as intended. So Rules seems like it is the culprit. I'm not much of a programmer, but I'm wondering if it is the WAY it creates the node that is at fault. And I say that because I noticed that initially it was somehow making and saving the Ordertrigger DESPITE not having the SKU field (required) filled in. I resolved that by using another module to auto generate that, but I can't resolve this error.
Any help would be great.
Chris