HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Catalogues and Custom Fields

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100951 (In Topic #19802)
Avatar

Community saint

Hi,

I have used catalogues for a few things on our site, buying tickets for our Annual event and a Show and Shine Entry.

So I understand how they work.

Tonight I decided to add a new Category (Gifts) to the Default Products Catalogue.
I want to be able to offer my users to ability to buy a years subscription for another user - the idea is that the Gifts Category will get a "Buy a 12 Month Subscription as a Gift" entry.

All good so far.

When people buy this gift I want them to be able to set a field to select the Username of the person they want to buy the gift for. Now I have other Categories under my default Products Catalogue so I do not want to add the new field to the Catalogue.

I then thought that I could use the "Choose custom 'Catalogue category' fields" option to add a custom field that is only used for the Gifts Category. However what I really want is a custom field added to each entry for the Username - I do not think that I can achieve that with this.

Is the answer that I need to create a new Catalogue based on the product one and add my Gifts category to that, so that I can have seperate custom fields.

The next step is to buy category entry - only to discover that all fields are read only - is there no way to have writable fields when an item is purchased ?

I do hope this makes sense - perhaps I cannot do what I want within the Catalogues framework !

Cheers
Ade
Back to the top
 
Posted
Rating:
#100958
Avatar

I'm afraid the answer is "needs new programming". This kind of flexibility is a 4GL kind of situation, and barring a lot of investment in this area, ocPortal isn't going to be one of those – so it would require some custom PHP programming to do exactly what you want.

Definitely with catalogues I'd advise people to not think of them as a way to do custom projects without a programmer. They let you set up data for display, and let people add new data, but definitely not 4GL stuff.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: