Directory with free and premium listings

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
vigor
Forum Members
Forum Members
Posts: 92
Joined: Sat Apr 25, 2009 2:32 pm

Directory with free and premium listings

Post by vigor »

I currently have a client who wants to set up an online directory and I'm wondering are there any modules out there that can fulfil there needs. I know I can use products or company directory and I have used both of them before but I'm not sure if they support premium listings or expiry dates fro premium listings.

The client wants to have a directory of free listings which will let the business list their name, address and number. They then want businesses to be able to pay for a premium listing in which they can list any information they want eg logo, reviews etc. Are there any modules or can either of the 2 I mentioned above support premium listings and expiry dates as the premium listing would only be valid for 3, 6 or 12 months?

Any help or recommendations would be very much appreciated.
vigor
Forum Members
Forum Members
Posts: 92
Joined: Sat Apr 25, 2009 2:32 pm

Re: Directory with free and premium listings

Post by vigor »

Figured out how to set up the free and premium listing by setting up a custom field called premium and then just having an if statement in the summary template.

The next part is to set up a way of having the premium listing display for a set period of time.

I'm thinking that something in the line of custom fields and dates might work but I will have to work on it. If anyone has any advice on this it would be great.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Directory with free and premium listings

Post by paulbaker »

Hi vigor

I am looking at doing something similar to this and wondered if you used Company Directory in the end? Did you manage to set up expiry dates somehow?

Thanks 8)
vigor
Forum Members
Forum Members
Posts: 92
Joined: Sat Apr 25, 2009 2:32 pm

Re: Directory with free and premium listings

Post by vigor »

I done this using the products module in the beginning and the site has been live for about 6 months. I'm currently working on transferring it into the company directory module as the client now wants to let users of the site update their own listings.

I didn't add the expiry date to the site at that time but I might try and add it this time through use of a custom field for the expiry date, smarty to get the current date and then a simple IF statement. This is the idea in my head at the minute but I haven't tested it yet. This would all be done on the front end and wouldn't update the listing type in the DB.

Quick search there and the code below will get you the current date

Code: Select all

{$smarty.now|date_format:"%d/%m/%y"}
Their would be better ways out there that would set the add back to a free listing in the DB once the date passes but I think this will work for now if the client is will to take a quick look at it every so often and manually change the ads from premium to free.

If you find a better way to do it let me know.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Directory with free and premium listings

Post by paulbaker »

Thanks for the feedback vigor.
vigor wrote:If you find a better way to do it let me know.
Will do, but I think your approach sounds great.
Post Reply

Return to “Modules/Add-Ons”