Gossamer Forum
Quote Reply
Playground
Hi everyone!

I own a rental website and I want to provide one unique feature to my visitors.

Now, ...

In my databaze I have the following fields (all are required):

Rent_or_hire (1 or 2; 1 is offered, 2 is wanted) - here is only 1 interested and only 1 must be calculated
Minimum_capacity (1,2,3, ... 10; from 1 to 10 or more persons) - in fact, I think that this field is not interested
Maximum_capacity (1,2,3, ... 10; from 1 to 10 or more persons)
The_highest_price (high season)
The_lowest_price (low season)
Cost_per (1 or 2; 1 is one person, 2 is accommodation unit)
Price_applies_to (1 or 2; 1 is one night, 2 is one month)

I would like to show how to price in the ad refers in percentage compared to the average price in the entire database on:

1.) link.html
2.) detailed.html
3.) one dynamic generated page

1. explained: on link.html just to display i.e.

Quote:
+25% high; -15% low

2. explained: on detailed.html display i.e.

Quote:
On <%GT::Date::date_get()%> the price in this ad was

>> 25% higher than the average price in our databaze of XX per night and accommodation unit for maximum of 4 persons in high season. There are YY ads with lower price and ZZ ads with higher price. Click here to see the actual average price for similar ads in this moment.

>> 15% lower than the average price in our databaze of XX per night and accommodation unit for maximum of 4 persons in low season. There are YY ads with lower price and ZZ ads with higher price. Click here to see the actual average price for similar ads in this moment.

<%GT::Date::date_get()%> - because detailed pages are not generated dynamically but will rebuild after the page is visited - jump.cgi is activated every time

"similar ads" are ads with same number in Maximum_capacity and with same type of the price, i.e. "accommodation unit / one night"

Perhaps YY and ZZ should be clickable just to see these ads?!

3. explained: on one dynamic page show the actual value when clicked on

Quote:
Click here to see the actual average price for similar ads in this moment (XX)
.

Calculation must be able to take into consideration:

a.) How many persons is in Maximum_capacity?
b.) Is the price for high or low season (in fact, both are required and both must be visible)?
c.) Is it price per person or per accommodation unit?
d.) Is the price for one night or for one month?

The questions are:

I.) Is it possible to put my idea into practice?
II.) If yes, what is needed: global, plugin or additional script?
III.) Is the solution free or paid/commercial?

Many thanks in advance.
Subject Author Views Date
Thread Playground katakombe 2349 Apr 10, 2013, 7:34 AM
Thread Re: [katakombe] Playground
eupos 2228 Apr 10, 2013, 7:59 AM
Post Re: [eupos] Playground
katakombe 2210 Apr 10, 2013, 8:05 AM