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.


[CLOSED] Adding product fields

Login / Search

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

Honoured member

I've recently implemented an online store using OCP's ecommerce system.  In reading through the tutuorial, I came across this section:

You may add additional fields, such as extra product images or specifications. However do not re-order the original fields (or delete, or change the field type), as the system uses the order of these fields internally to know what they refer to. If you wish to change how they are shown do it via template editing.

This is exactly what I need to do, however I am not finding any fuctionality to add additional product fields?  I'd like to include various types of fields including radio buttons, drop down lists as well as comment fields.

Forgive me if this is something really simple and I've missed it somehow?  Any guidance would be greatly appreciated.

Thanks!
Back to the top
 
Posted
Rating:
#102547
Avatar

Community saint

You should be able to add the fields you need simply enough. Just edit the Product Catalogue and add the fields you want after the fields that already exist.

If you want to edit their placement, do so after you add your fields then go and edit the TPL. I can't remember what the TPL file is though, but yeah.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#102548
Avatar

Honoured member

Thanks Mythus!

I think I should have been a little more clear with my requirement:  What I would like to add are fields that show up in specific product description areas, not necessarily across all products.  For example, I tried your idea of adding a radio button field in the product catalog with two options:  Yes|No 

Unfortunately, the radio buttons don't show up as you can see:


Also, when I add that field, it shows up across all products, and that doesn't make sense for something like a membership renewal:


I think the key is:  Can I add specific fields to "products", not necessarily "catalogs"???

Back to the top
 
Posted
Rating:
#102648
Avatar

Community saint

I'm sorry friend, but I just am not sure here… this is probably a question best left to Chris or someone more knowledgable about this.

Sorry I couldn't be more help…

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#102649
Avatar

Fan in training

I'm certainly not more knowledgable, but wouldn't you just setup another e-commerce catalog with the proper fields?
Back to the top
 
Posted
Rating:
#102651
Avatar

We don't currently support customer-enterable fields.
It's on the tracker:
0000268: Product options - ocPortal feature tracker

There's a rough solution for people comfortable doing advanced Tempcode:
0001521: Custom product field workaround for PayPal - ocPortal feature tracker


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
 
Posted
Rating:
#102660
Avatar

Honoured member

Thanks very much for trying, Mythus, I usually seem to come up with these strange requirements and requests that aren't simple fixes :(

I appreciate everyone's help, and Chris, I know you're terribly busy but will the functionality be available in OCP 10?

I will have a look at the rough solution you identified, but my sense is that it will probably be beyond my capabilities as I am not a programmer or developer.

Update:  I just looked at the code and it's way beyond me :'(


Last edit: by superiorpyro
Back to the top
 
Posted
Rating:
#102663
Avatar

It's a fairly popular request, but it's not the kind of core improvement I'm contributing personally to in v10.

It's a fairly onerous thing to implement because the custom fields would need an interface to add/edit/delete them, database representation, representation in the frontend UI, and tracking through every point from initial purchase, through the checkout, into the order dispatch system. That's for the simple implementation – if the options affect price, the entire price calculation system would need massively extending.

I usually tell people just to create separate products with different options, or manually ask the customer what options they want, or to use a dedicated shopping cart package (ours was only ever designed for the case of a site selling a small number of simple products, e.g. a few standardised merchandise items).


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
 
Posted
Rating:
#102664
Avatar

Honoured member

That makes perfect sense, so now I have a couple more questions:

I would have thought that if I edit a catalog that is designated as e-commerce, that I should be able to add a field after the first pre-defined 10 fields (which I get that we shouldn't edit or change) which would allow for user input?

However, regardless of which type of field I add, whether it's a paragraph of text or a list or radio buttons, I have come to discover that the additional field is informational ONLY, and will not allow for any type of user input (even for those Types which are listed as 'Choices').  Is that by design, Chris?

I guess where I'm heading with this is:  Is it possible to even add a user editable comment field to a products that would allow end users to type in specific requests pertaining to that product?

If that's not an option (and I'm guessing it's probably not), what types of shopping cart software do you recommend for a very small set of products and relatively low transactional volume?

Back to the top
 
Posted
Rating:
#102665
Avatar

Is that by design, Chris?

Yes, all fields on a catalogue are for representing that entry to the user, not for customer input. So you might have various fields describing product specifications, for example.

Magento is popular and seems very high quality.


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
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#102719
Avatar

Honoured member

Thanks for the explanation, Chris - at least now I have a better understanding of the catalog fields/product fields now.  Perhaps one day I'll be able to help fund some add'l development.

For the time being, I have successfully added OpenCart to the site and it works great.  For those wondering, Magento is, as Chris pointed out, a great solution, however it's exponentially more complex than some of the smaller open source cart solutions as it has the ability to manage a site on the scale of an Amazon.com.  Configuring Magento, and getting it to do what you want may not be worth all the effort.  I'd recommend something along the lines of OpenCart.

By the way, happy belated birthday too, Chris!  :birthday:
Back to the top
 
Posted
Rating:
#103420

Non-joined user

Sorry for easy question...i just started using it. How to delete the field in catalogues?
Back to the top
 
Posted
Rating:
#103422
Avatar

Community saint

For the Products catalogue there are a set of default fields that can't be deleted. If you don't need some of those, you should uncheck the five checkboxes for those fields (Visible, Required field, Searchable, Display in category-views, and Display in search/feature-views checkboxes). Unchecking those options will make the field hidden, not required, and not searchable. Any custom fields you add will have an additional checkbox available to delete the field.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: