Jump to content

Display Each Product's Attributes in Table, ie: Data Sheet


Recommended Posts

I need to display attributes for each product in a separate DIV as a space-separated table.

The attributes are formatted this way:

Attribute1: Spec1 Spec2 Spec3 Spec4
Attribute2: Spec1 Spec2 Spec3 Spec4
Attribute3: Spec1 Spec2 Spec3 Spec4

Each Spec is separated by a space.

How do I export this from the usual dropdown display to a table format?

>> Can I use Javascript's split function to first separate the data into an array, using spaces as the delimiter?


Thanks in advance to anyone who can help

Link to comment
Share on other sites

I need to display the attribute details for each product as a table.

The attributes are formatted this way:
Attribute1: Detail1 Detail2 Detail3 Detail4

The Details (ie: strings, words) within each Attribute are all separated by spaces.

>> Can I use Javascript’s split function to first separate the data into an array, using spaces as the delimiter?

And then, how do I display this in a table format?


See example below. There are 5 Attributes for this product, and each of its Attributes has 4 Details (words):



PRODUCT NAME - Attribute Table:

----------------------------------
Detail1 | Detail2 | Detail3 | Detail4

----------------------------------
Detail1 | Detail2 | Detail3 | Detail4

----------------------------------
Detail1 | Detail2 | Detail3 | Detail4

----------------------------------
Detail1 | Detail2 | Detail3 | Detail4

----------------------------------
Detail1 | Detail2 | Detail3 | Detail4

----------------------------------

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...