Hey Maxim,

To build off of what Josh said. I would create a ProductPricing model that 
spells out the specific rules and pricing for each property. Then when a 
user selects a date reference the pricing structure and utilize the user 
defined pricing to set the product to that price.

On Monday, December 8, 2014 10:38:25 AM UTC-7, Josh Cartmell wrote:
>
> Hey Maxim, a few ideas:
>
>    1. Have a cron job that runs every so often and updates the prices, 
>    based on the time of year
>    2. Take a look at 
>    
> https://groups.google.com/forum/#!searchin/mezzanine-users/Cartridge$20creating$20a$20product$20with$20a$20user$20defined$20price/mezzanine-users/eyp0l-gnNt8/fXQsH-RAXzwJ,
>  
>    it's not exactly what you are looking for but deals with having products 
>    without a predefined price.  The important takeaway is that the cart can 
>    handle having arbitrary products that don't necessary match up with items 
>    in the database.  So you could use Cartridge's cart (to some extent) 
>    without using the way it displays products.
>    
>
> On Sun, Dec 7, 2014 at 3:44 AM, Maxim <[email protected] <javascript:>> 
> wrote:
>
>>
>> Hello,
>>
>> I'm trying to modify cartridge to make it a very simple reservation 
>> system. In my project Product's price depend on time of the year( example: 
>> june - August - $100, September-December -200, 300 the rest of the year) 
>> and number of people( example: maximum 6 people,  any additional person 
>> +$50 ). These conditions apply per product basis, products may have 
>> different date ranges.
>>
>> When Customer  creates reservation, selects his check-in/check-out dates 
>> and number of people.
>>
>>
>> What would be the best approach to implement this within current 
>> cartridge model?
>>
>> Any hints much appreciated.
>>
>> Regards
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to