It would be super cool if you could pull tokens from the referenced product. Here is a patch for the basic uc_product tokens, and the title of the referenced product. I'd be happy to look at expanding this to additional node related tokens if you think it's appropriate.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_node_checkout_token_v2.patch | 4.96 KB | mikejoconnor |
| uc_node_checkout_token.patch | 3.29 KB | mikejoconnor |
Comments
Comment #1
mikejoconnor commentedSo the ucnc_product_nid variable isn't always available, in particular it's not there when nodes are updates, therefor they loose any tokens. This patch adds some logic to lookup the product nid.
Comment #2
RonD commentedMike, thanks for the patch. It's working great for our Webinar Registrations.
Comment #3
aidanlis commentedThanks, fixed in -dev.