I have custom types named book and purchase, each book has a node reference url to create a new purchase node type which receives the book being purchase, this works fine. The purchase type has an 'amount' field that basically shows the price listed on the book node. Is there a way for me fill up this price field automatically when a user clicks on the purchase book reference url?
I might just be taking the wrong approach, I would appreciate any help.
Thanks in advance.
eric.

Comments

akamaus’s picture

I think it's a job for hook_node_prepare(). You could follow the reference and fill the needed field.

karens’s picture

Status: Active » Fixed

Answered above.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.