[edit: Just noticed that you asked a slightly different question, but I hope this may help a bit in your search for an answer.]
Hello,
I've just done this using PPBM & CGCalendar and it works very well indeed.
Here's a quick overview:
I created a custom field in the calendar called 'price' and then added some code to the calendar template I'm using to check for a value in that field.
If so, it displays the paypal button using PPBM, that way you can have events which have a cost and those that don't.
Something like:
Code: Select all
{if $event.fields.price !=""}
<div class="pay"><p>Pay for this event with PayPal</p>
{cms_module module=PayPalButtonMaker Mode="default" Btn="diary"}
</div>
{/if}
I then created the button in PPBM, specifying an amount of
{$event.fields.price|string_format:"%.2f"}
and the item name something like:
Fee for {$event.event_title}
Just make sure you turn on "Process Smarty data in button fields" in the button defaults options and you should be golden!
Hope this gets you some way towards making it work.
Thanks to both of the authors for these great modules.
Cheers,
Mark.