Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 73
  1. #41
    Join Date
    Dec 2003
    Location
    Astoria, Or
    Posts
    455
    Plugin Contributions
    2

    Default Re: Display product attributes in two columns (side by side)

    Quote Originally Posted by Jbraz View Post
    Ok, I have gone to Option Name Manager and edited it and set the Attribute Images per Row to 3 but still it only does one loooooooong column of image swatches. Anyone have any idea why ? Here is the page I mean, if you look at the matt color options, I want them to line up in rows of 3 instead of one long single column. Is there something else I am missing ? This is the first time I have really had to add attribute images.

    http://skrappin.com/~skrappin/shop/i...roducts_id=290

    Tia !!!
    You need to change the Attribute Style for Radio Buttons/Checkbox, try going with 4.
    Attached Images Attached Images  

  2. #42
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: Display product attributes in two columns (side by side)

    Thank you ses707 ! That did it ! I don't understand it but it worked and that's what matters I guess. :) I had 2 selected in that area, changed it to 4 and it works great.

  3. #43
    Join Date
    Dec 2003
    Location
    Astoria, Or
    Posts
    455
    Plugin Contributions
    2

    Default Re: Display product attributes in two columns (side by side)

    Quote Originally Posted by Jbraz View Post
    Thank you ses707 ! That did it ! I don't understand it but it worked and that's what matters I guess. :) I had 2 selected in that area, changed it to 4 and it works great.
    There are 5 built-in templates for the attributes, by changing that number you are telling it to display them using a different template with a different layout.

  4. #44
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Display product attributes in two columns (side by side)

    In that name of keeping this post ON TOPIC I thought I should re-iterate again what my little mod does for anyone else reading this thread.. My mod only takes the attribute name+value combo (with or without value images) and puts them into two columns..

    ZenCart NATIVELY (WITHOUT my small mod) supports putting the attribute values (with or without images) into two columns. The links I've previously posted show this in action WITHIN my mod. This is what the admin section that supports attribute VALUES looks like: http://www.zen-cart.com/forum/attach...9&d=1199347360

    For more info on how attributes are managed/structured in Zen Cart please read: https://www.zen-cart.com/tutorials/index.php?article=57

  5. #45
    Join Date
    Oct 2008
    Posts
    85
    Plugin Contributions
    0

    help question Re: Display product attributes in two columns (side by side)

    hello, i want only the text attributes in two colums, the other attributes remain to be in one colmn, is that possible to be done?

  6. #46
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Display product attributes in two columns (side by side)

    Quote Originally Posted by myworld20091 View Post
    hello, i want only the text attributes in two colums, the other attributes remain to be in one colmn, is that possible to be done?
    Sorry I dunno.. I wouldn't begin to know how to modify the product information page to work as you describe. The modified product information page I posted here was done for me by a friend who is a programmer. (It was something down and dirty he did for me.. it's not "perfect" but it got the job done) I decided to share it with the community in case anyone else found it useful.. You might wanna try making a request in the Commercial Help Wanted forum, and see if anyone can make this specific modification for you.. I can't imagine it would be a very expensive mod..

  7. #47
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Display product attributes in two columns (side by side)

    Hello,
    Thank you for posting the attributes override file this is exactly what I need. I have one problem though, I'm new to Zen Cart and I'm not exactly sure where to put this file. I used the path you gave but I don't have that file to overwrite so do I just put your file in the (includes/templates/YOUR_TEMPLATE/templates) directory? I'm still not sure what the override is used for, I suspect its so when I download updates for Zen Cart my changes aren't lost.

    Any clarification you can provide would be really appreciated.

    Thanks again!!!



    Quote Originally Posted by DivaVocals View Post
    I've seen a few posts here asking about this or something similar. I got some help from a few sources to get this working for me.. I thought I'd share my solution in case anyone else is looking for something similar. You need to set up the appropriate override for the tpl_modules_attributes.php file (includes/templates/YOUR_TEMPLATE/templates)

    Product attributes by default appear in a vertical format based on the sort order for each attribute. For a few attributes, this is cool, but for more than a few attributes, it can make the product pages a little unwielding.. I needed to have attributes appear in two columns side by side. I wanted to keep this simple.. I figured that using the existing sort order features would allow me to use the admin controls to place the attributes where I wanted them to appear and the order they should appear in. Even numbered attributes appear in the left column, while odd numbered attributes appear on the right. (by number I mean the sort order number)

    There is only one caveat.. I had a friend helping me, and I didn't want to bug him too much.. His orginal solution got me part way there, but didn't split the odd and even sort order numbers the way I wanted.. I figured out how to get his orginal solution to split the attributes between odd and even sort order numbers in two columns.. However, I couldn't figure our how to get attributes with sort order "1" to appear correctly.. (This attribute always appeared in the left column with the even numbered attributes) So I worked around this by having my attibute sort order start with "2" (so now I am skipping/not using "1" or "0" as a sort order), and it solves the problem.. Even sort order numbers appear on the left, and odd sort order numbers appear on the right. Oh I also have the form field appear below the label just to make the final layout a little neater looking.

    Hope someone else finds this useful..

    Display product attributes in two columns (display attributes side by side)

  8. #48
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Display product attributes in two columns (side by side)

    Please see these posts to understand how overrides work:

    Understanding the Override System - https://www.zen-cart.com/tutorials/i...hp?article=230

    How do I set up the template overrides? - https://www.zen-cart.com/tutorials/index.php?article=36

  9. #49
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Display product attributes in two columns (side by side)

    Just came across this thread and have a couple of comments.

    The poster trying to put most of the attributes in one column by using odd numbers for sort order will not be successful, because the mod code does not work on sort order number (1,2,5,7) but on sort order sequence (first, second, third...). So all attributes will be organized into two columns based on their place in the sequence, not the actual number assigned.

    I have recently done a mod to allow individual control of attributes in the layout (essentially assigning each .wrapperAttribsOption an id based on the Option Name id). This does not work automatically on anonymous attributes; you need to style each attribute to get it in the left or right side, but you have total control over what goes where. The code changes were extremely simple. Support thread and temporary download link: Flexible Attributes support

    Something combining the two might be good, allowing a combination of universal application and individual control.

  10. #50
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Display product attributes in two columns (side by side)

    Quote Originally Posted by gjh42 View Post
    The poster trying to put most of the attributes in one column by using odd numbers for sort order will not be successful, because the mod code does not work on sort order number (1,2,5,7) but on sort order sequence (first, second, third...). So all attributes will be organized into two columns based on their place in the sequence, not the actual number assigned.
    You are absolutely right, and perhaps I wasn't clear in my instructions when I posted this code change..

    The intent of this was to allow me to automatically place attributes in two columns. The use of odd and even sort order numbers allowed us to identify which items should go in which column. (I wish I could figure out why this does not work when the sort order number is 1 or 0 - more out of curiosity than necessity) This code was NEVER meant to be used any other way. So to re-iterate the way the code in the top post works is as follows.
    Attributes normally appear like this:
    Attribute 1
    Attribute 2
    Attribute 3
    Attribute 4
    Attribute 5
    Attribute 6

    They appear vertically in the order of the the sort order number assigned to each attribute. (Sort order 1 is before sort order 2)

    My down and dirty mod arranges them in the same order but instead of appearing in a vertical stack, they will appear in two columns from left to right. They still appear in the order based on their sort order number, it's just that the WAY they appear that changes. So based on my example above this is how the attributes will appear:
    Attribute 1 - Attribute 2
    Attribute 3 - Attribute 4
    Attribute 5 - Attribute 6

    Again Glenn is absolutely right, if you are trying to use this code to do anything OTHER than make your attributes appear in two columns, this may not be the mod you need..


    Quote Originally Posted by gjh42 View Post
    I have recently done a mod to allow individual control of attributes in the layout (essentially assigning each .wrapperAttribsOption an id based on the Option Name id). This does not work automatically on anonymous attributes; you need to style each attribute to get it in the left or right side, but you have total control over what goes where. The code changes were extremely simple. Support thread and temporary download link: Flexible Attributes support
    This sounds awesome, and I am going to check this out..


    Quote Originally Posted by gjh42 View Post
    Something combining the two might be good, allowing a combination of universal application and individual control.
    Yes I would have to agree that having both options would be very much desired..

 

 
Page 5 of 8 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. v154 How to change product attribute image swatches to display side-by-side
    By Fjolsvith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Nov 2019, 09:27 PM
  2. All attributes are in a straight line, how to make it display side by side?
    By justwonder2 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Dec 2012, 10:39 PM
  3. Display-only attributes: show side by side?
    By cosmocanuck in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Mar 2011, 04:29 AM
  4. Display product attributes in two columns
    By DivaVocals in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Dec 2007, 04:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR