Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Setting Up Categories, Products, Attributes / 4 attributes per product, but need to combine them as 2 and 2

4 attributes per product, but need to combine them as 2 and 2

Locked

Started by tqualizer on 19 Dec 2007, 7:53 AM · Views: 1,359

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Dec 2007, 7:53 AM
#1
tqualizer avatar

tqualizer

New Zenner

Join Date:
Nov 2007
Posts:
24
Plugin Contributions:
0

4 attributes per product, but need to combine them as 2 and 2

I've got 4 attributes per product, set up like this:

[Component A - Size] [Component A - Style] [Component B - Size] [Component B - Style]

'tpl_modules_attributes.php' seems to have a routine where it publishes each attribute one at a time, but this works against what I need to do.

What I would like to do is be able to do is publish the two attributes for component A within one DIV tag with a custom image/text header, and publish the two attributes for component B in another DIV with a custom image/text header. This is purely for layout, as a way to keep the two sets of attributes clearly separate.

Does anyone know how I can achieve this?

19 Dec 2007, 9:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 4 attributes per product, but need to combine them as 2 and 2

[Component A - Size] [Component A - Style] [Component B - Size] [Component B - Style]
Setup option names for "size" & "style" then set option values for size as radio or drop list...

One option name for size and as many option values as needed for size. Same for style

Zen-Venom Get Bitten

19 Dec 2007, 9:32 AM
#3
tqualizer avatar

tqualizer

New Zenner

Join Date:
Nov 2007
Posts:
24
Plugin Contributions:
0

Re: 4 attributes per product, but need to combine them as 2 and 2

kobra:

Setup option names for "size" & "style" then set option values for size as radio or drop list...

One option name for size and as many option values as needed for size. Same for style

That's all set up and working fine,

What I need to do is to be able to have my screen output show Component A Size and Component A Style together in one DIV, say with a purple background. Then I need to be able to show Component B Size and Component B Style in another DIV say with a blue background -- and have it all happen within the same product page.

15 May 2008, 11:36 AM
#4
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: 4 attributes per product, but need to combine them as 2 and 2

Hi

Did you manage to find a solution for this? I too have this problem.

I have about 30 attributes in a radio list, but I would like to divide/categorise them for layout purposes. If I create multiple options then the Radio boxes are not the same group, and you can choose a few of the attributes when only 1 needs to be chosen. So its like having multiple option names for the categories but having them all part of the same Radio button group.

At the moment the only solution I have is hack the attributes file to add in extra Titles representing the division of the attributes, so in a for loop say after about 5 insert a title, then after about 10 insert another title. But its not good because if an attribute is added it messes it up.