If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / What's the easiest way to add custom fields to the New Product page?

What's the easiest way to add custom fields to the New Product page?

Locked

Started by christopherw on 16 Sep 2007, 5:43 PM · Views: 2,829

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Sep 2007, 5:43 PM
#1
christopherw avatar

christopherw

New Zenner

Join Date:
Jun 2007
Posts:
27
Plugin Contributions:
0

Post #1 by christopherw

Hi, apologies if posted elsewhere but ZC still confuses me and I've been playing with it for a while now!

I'm doing a customised version of ZC which doesn't offer the ability to buy items - only browse items offered, along with prices and details. One aspect of this is that items (in this case, coach holidays) have different prices for adults, kids and concessionary fares. Obviously the single "price" field won't cut it, and at the moment I'm compromising by manually adding in the various prices to the description box, but customising each one with HTML manually is not a viable solution especially as I'd like to make it as simple as possible for the client to add entries.

I'm looking for the easiest / simplest way to add new fields to my New Product page, fields which I can later add to the public-facing, Product Display pages, so that I can specify (for example) three or four different prices, and then I can add new fields to the Product Display page by adjusting the template (if necessary) or some other options. All this talk of item values, attributes, etc, is plain confusing me - and I can't figure out how to actually add custom fields to the New Product page which can have text entered into for subsequent display.

If it requires manual addition of fields to the SQL db I can do that, I just need someone to point me in the right direction and maybe link me up with an FAQ which describes what I'm trying to achieve - because I'm totally lost as it is at the moment!

This forum's come up trumps for me in the past, and I hope somebody can help me here because I can't be the only person who's wanted to customise ZC in this way!

Thanks in advance
Christopher

...

17 Sep 2007, 4:47 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

A couple high-level thoughts ...

I suspect that attributes might be the right way to do this, since you can set different pricing options for each attribute tied to a product. Using this approach, your products could also automatically show up as "starting as low as" instead of just a flat price and no understanding that there are varying pricing options.
There's an FAQ entry on adding attributes to products.

However, if you're not actually going to be using Zen Cart to sell these items, and they're only for display, then it might just be easiest to dump a small HTML table inside each product's description, showing a price chart relevant to the various combinations.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Sep 2007, 1:27 PM
#3
christopherw avatar

christopherw

New Zenner

Join Date:
Jun 2007
Posts:
27
Plugin Contributions:
0

Post #3 by christopherw

Attributes, hmm. Not overly considered attribs for this purpose, though I'll give it a shot.

Is there a way to display all the attributes on the page so that someone viewing the item can see all the attribs side by side or one under the other for quick reference? Given all these 'items' (the holidays or trips) will be priced differently, it'd be a bit confusing to just say "from 4.60" as the lowest price would usually be the child's price.

Thanks for the attributes idea though...

...

18 Sep 2007, 5:09 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

A look at the demo products (you could do a fresh install into another folder+database) will give you a feel for the many ways in which attributes can be handled and displayed. There are numerous layout options and pricing options available. Best to play around with it and see what it can do for you.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Sep 2007, 5:16 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #5 by ajeh

IF you made them Radio Buttons, then they would display the choices in a listing that makes it easier to read than the dropdown and these will be funtional later in a shop ...

Note: you can even use the Default setting to make things more of a "suggestion" than just a choice on the various Attribute Option Name groups of Option Values ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!