renamed_account_45578 Posted January 17, 2011 Share Posted January 17, 2011 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 Spec4Attribute2: Spec1 Spec2 Spec3 Spec4Attribute3: Spec1 Spec2 Spec3 Spec4Each 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 More sharing options...
renamed_account_45578 Posted January 19, 2011 Author Share Posted January 19, 2011 any advice? Link to comment Share on other sites More sharing options...
tomerg3 Posted January 19, 2011 Share Posted January 19, 2011 It's not a simple task that can be answered in a few lines here...You can check out my Attribute Grid module http://www.presto-changeo.com/attribute-modules/27-attribute-grid.html or the other attribute modules on my site. Link to comment Share on other sites More sharing options...
renamed_account_45578 Posted January 20, 2011 Author Share Posted January 20, 2011 ThanksWill this module separate each part of an attribute between spaces into a grid?Or do I need to use separate columns within each attribute I upload and assign to a product ID? Link to comment Share on other sites More sharing options...
tomerg3 Posted January 20, 2011 Share Posted January 20, 2011 I'm not sure what you're asking.The module doesn't change the way attributes work, it just displays them in different ways on the front page. Link to comment Share on other sites More sharing options...
renamed_account_45578 Posted January 28, 2011 Author Share Posted January 28, 2011 I need to display the attribute details for each product as a table.The attributes are formatted this way:Attribute1: Detail1 Detail2 Detail3 Detail4The 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 More sharing options...
tomerg3 Posted February 2, 2011 Share Posted February 2, 2011 You should be able to use the existing attribute code that is used in product.tpl to display the attributes (it has the attribute values that get displayed as ) and strip out the code you done need, and add the table code instead. Link to comment Share on other sites More sharing options...
renamed_account_45578 Posted February 18, 2011 Author Share Posted February 18, 2011 How can I strip out the values based on the "space" delimiter? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now