Multiple limited-amount products in Act?

Martina Peštová mp at petamem.com
Sat Feb 8 18:13:44 CET 2014


Hello Sebastian,
I have a bit trouble to get the online payment complete. I contacted 
Philipe Bruhat for that but no answer.
Thank you for your answer.

Sincerely,

Martina Pestova

Dne 2014-02-07 01:33, Sébastien Aperghis-Tramoni napsal:
> Salve J Nilsen wrote:
> 
>> Hei!
> 
> Hello Salve,
> 
>> Oslo.pm is organizing a triple-event about Mojolicious in Oslo ultimo 
>> May. We're planning on the following:
>> 
>> Mojolicious 1-day class, €500 (est), limited capacity, on May 23rd
>> Mojo.conf 1-day conference, €20, limited capacity, on May 24th
>> Mojolicous 1-day hackathon, free, limited capacity, on May 25th
>> 
>> Regarding this, I have a couple questions/requests:
>> 
>> 1) How do I limit the amount of products available of a given type? 
>> (e.g. We have only room for 12 attendees on the course, and have to 
>> make sure no more than 12 tickets are sold for it). The same goes for 
>> the conference (140) and hackathon (20)).
> 
> There's the registration/max_attendees config parameter for setting a
> global maximum number, but no such parameter per product. Looking at
> this, it's not that complex to implement in terms of pure code, but a
> simple & naive approach (counting the number of sold products when
> displaying the products page) would obviously kill the performances.
> So, must count successful orders in a dedicated table, and fetch these
> numbers at display time. I think most of the code can be put inside
> Act::Payment::get_prices()
> 
>> 2) Would you mind reminding me where to find instructions on how to 
>> involve YEF to handle the banking stuff? :)
> 
> 
> I only know that you need to contact YEF treasurer (Philippe Bruhat)
> and arrange things with him. When he tells me it's ok, I enable the
> payment through YEF.

-- 
Ing. Martina Pestova
Marketing & Sales Associate
Phone: (+420)777737785
www.petamem.com


More information about the Act mailing list