I am using marketpress and buddypress to sell online products, and for some products instead of the “buy now” button, i want a “contact the vendor” button. I want this button to open a div bloc containing the “compose form” from buddypress and i want the recipient field to be pre-filled.
At present, i’ve been able to do this by using the following hack (everything displays well) but for some reason, it does not succeed in sending the messages :
the messages_screen_compose() function is not loaded until the subnav on a user profile – which contains the form submit catch/verify nonce. you may need to duplicate that code (since it does load the template files)