Store Trading hours custom type

6 views
Skip to first unread message

Retailspace Australia

unread,
May 8, 2012, 1:45:05 AM5/8/12
to farcr...@googlegroups.com

Hey all, new to this forum and thought I'd give it a go.

Been developing in Farcry now for a bit over a year and I need some advice on developing a Trading Hours custom type for an existing Customer type I've developed.

The type has to list all days of the week in a panel along with a Store opening time, closing time.

I've attached a Screengrab showing you what I mean. I've tried a few things but it just keeps getting messy :)

A little advice to get me going on this one would be great ..
ScreenHunter_21 May. 08 15.41.jpg

Sean Coyne

unread,
May 8, 2012, 3:53:06 PM5/8/12
to farcr...@googlegroups.com
I would add an array property which points to a second custom type.  In the second custom type you would have the 4 properties (day, open, close, closed flag),  In your main content type could and add/edit/remove/rearrange the hours as you like.

AJ Mercer

unread,
May 8, 2012, 6:33:26 PM5/8/12
to farcr...@googlegroups.com

I was thinking along the lines of having seven sets of fields in one object type with property names appended with the day name.

There will never by more than 7 shopping days in a week.

Do you need a way to handle exceptions like public holidays?

--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
Reply all
Reply to author
Forward
0 new messages