Post by tjonnyc » Sat Jun 11, 2011 7:09 am

I would like to add 20 custom fields to the Product > Data section.

The problem is, different products will have different attributes, so I would like to be able to assign field names as well as the field data, for each product on an individual basis, from the Admin panel.

(By "individual basis", I mean that not all products will have all attributes - some will have ABCDEFGH, some will have ABCKLM, some will have DEFLMN, and so on.)

For example:

Attribute 01 Name: [---------]
Attribute 01 Value: [----]
...
Attribute 20 Name: [---------]
Attribute 20 Value: [----]

Now, since not all products will have all 20 attributes, and I don't want blank lines to display on the product form, I'd like to format it in a "foreach loop" way.

Any PHP programmers here who can assist with this?

Active Member

Posts

Joined
Tue Dec 21, 2010 5:05 am

Post by c2c » Wed Jun 15, 2011 8:35 am

Take a look at "Product Extra Fields" contrib. I use it and works perfectly. Only the fields show up that have a value. May save you a lot of work. I also use the Layered Navigation contrib that works hand in hand with the extra fields.

c2c
New member

Posts

Joined
Mon Apr 04, 2011 11:40 pm

Post by Xsecrets » Wed Jun 15, 2011 8:37 am

In addition if you are using 1.5 then have a look at product attributes. It's basically what you are describing, and it's built into the system.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by dijitul » Wed Jun 15, 2011 6:25 pm

The Product Attributes don't appear to be showing in opencart 1.5.0.4 or 1.5.0.5:

ie:
http://89.255.132.235/contour_plus/contour_plus_camera

You view compare and >SOME< of the attribs display, but not all.

Quite Annoying, although not as annoying as the prod image not showing! Fingers crossed that'll fix when moving from an IP to a domain :laugh:

New member

Posts

Joined
Mon Jun 13, 2011 9:21 pm

Post by Xsecrets » Wed Jun 15, 2011 11:24 pm

must be your theme. In the default theme they show up under a tab called specifications.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by dijitul » Thu Jun 16, 2011 6:25 pm

Xsecrets wrote:must be your theme. In the default theme they show up under a tab called specifications.
If you didn't notice - that is the default theme ;)

New member

Posts

Joined
Mon Jun 13, 2011 9:21 pm

Post by dijitul » Thu Jun 16, 2011 6:29 pm

It Appears the Attributes are not saving in 1.5.0.5, unless a DB Upgrade is required.

EDIT: Backed up, Fully Updated and Restored Back up and they work - if anyone else has the same issue!

New member

Posts

Joined
Mon Jun 13, 2011 9:21 pm
Who is online

Users browsing this forum: No registered users and 87 guests