Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-25 11:47:20

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Challenge! - Editable Price List

This is a tricky one but im hoping someone will have some ideas.

Im converting a clients site from static code to Textpattern. They have on there a price list that covers the whole year. Its a holiday place so the prices are sesonal. At the moment they just have three tables and I update the prices manually for them once a year. Ideally they would like to be able to edit these prices from textpattern.

Since its a large table and covers all 12 months with numerous price points per month, custom feilds are out i think, since you can only have ten – I would need a lot more.

So basicly I would need some kind of month picker and a way to enter a price for each option. for example:

June

Basic: $10
Standard: $20
Deluxe: $30
King: $50
Extra Person:$15

Is there anyway to do this by using any means neccesary?

This is my first real textpattern site, so any help would much appreciated :)

Thanks.

Last edited by CodeWalker (2010-01-25 12:02:09)

Offline

#2 2010-01-25 12:36:56

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Challenge! - Editable Price List

Quick: Create an article for each month/season, putting the above info in the article body as a Textile table.

Not so quick: create an admin plugin with a separate database table and an Extensions tab for them to edit values.


Code is topiary

Offline

#3 2010-01-25 14:55:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,251
Website GitHub Mastodon Twitter

Re: Challenge! - Editable Price List

Also quick

Create an article for each season, hard code the table in the template and use custom fields for prices. It’ll be much easier for your clients to edit.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2010-01-25 15:35:08

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Re: Challenge! - Editable Price List

Thanks for the replies. I actually made a mistake describing what I need. The data needs to look like this… with three price points for each season for standard, deluxe and super deluxe.

Standard (per week) Deluxe (per week) Super Deluxe (per week)

1st March to
5th April 225 250 290

4th April to
6th June 245 265 310

6th June to
11th July 285 325 370

11th July to
12th September 325 365 470

12th September to
10th October 285 325 370

10th October to
3rd January 245 265 310

Apologies for not being clear. Im still learning textpattern so I dnt really know if this is possible with tags, custom feilds or a existing plugin. Anyone get any more ideas? There are three of these tables for different types of accomodation so to use custom feilds I wud need a whole tonne of them. I hope this isnt beyond textpattern :)

Thanks

Last edited by CodeWalker (2010-01-25 15:37:11)

Offline

#5 2010-01-25 16:02:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Challenge! - Editable Price List

Should be doable with just three custom fields: Standard, Deluxe, and Super Deluxe. You could use posted and expired dates to set the date range for each article (or you could just put the dates in the title, body, or excerpt).


Code is topiary

Offline

#6 2010-01-25 16:26:38

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Re: Challenge! - Editable Price List

Hmm. This doesnt seem to be a terribly elegant solution. I think the way to go might be something like this, and make it a plugin. Or cheat and use flashpaper viewer to display a pdf containing the prices. That way, my client would just have to upload a single file to update the prices.

http://www.trirand.net/default.aspx

Thanks anyway guys.

Offline

#7 2010-01-25 17:42:24

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Challenge! - Editable Price List

I’m working on a similar feature at the moment, and this unknown plugin seems to do the job well, assuming your client can handle spreadsheets and upload files to Txp ;)

Offline

#8 2010-01-26 10:21:05

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Re: Challenge! - Editable Price List

Ah! nice one Els….thats as simple as it needs to be. Thanks!

Offline

Board footer

Powered by FluxBB