Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Attribute Spacing/Alignment

    hiya

    I have managed to set up my first attribute thingie, its a read only and tells the customer the power/batteries needed for the items they are looking at.

    The thing is, on the items pages it looks wrong. the attribute name is Power, is there any way to get the result over to the left a bit, so there is only a couple of spaces between them (see image below cos i think that description kinda stinks a bit dosnt it lol)

    http://i69.photobucket.com/albums/i45/RPSPP/Image1.gif

    Erica xx

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    Erica

    Normally the question is how can I put some space between the attribute titles and their values. So your question is going to be very difficult if not impossible to answer without seeing the site itself to work out where the spacing is coming from.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    sorry .. here you go (please ignore the URL name, it is actually an online adult store i am working on)
    www.costumejewelleryaccessories.co.uk

    Erica xx

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    Oh dear. Unfortunately you are using a tables-based layout where the distance is built into the table definition and there are no CSS hooks to change it.

    Specifically, these attributes are displayed in a table that is centered in the middle panel and 90% wide. It has two cells with left-aligned text. The right hand one is 75% of the 90% wide and so by implicatioin the left one if 25% wide or 22.5% of the center column width. This will get bigger or smaller as the window expands or contracts, but it is all hard-coded and so can't be changed without coding changes.

    What version of Zen Cart are you using and what template is this based on?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    Quote Originally Posted by kuroi
    Oh dear. Unfortunately you are using a tables-based layout where the distance is built into the table definition and there are no CSS hooks to change it.

    Specifically, these attributes are displayed in a table that is centered in the middle panel and 90% wide. It has two cells with left-aligned text. The right hand one is 75% of the 90% wide and so by implicatioin the left one if 25% wide or 22.5% of the center column width. This will get bigger or smaller as the window expands or contracts, but it is all hard-coded and so can't be changed without coding changes.

    What version of Zen Cart are you using and what template is this based on?
    Hiya again

    The template is purpleshades .. and the zen cart is 1.2.7 which was installed by the hosting company .. Kobra told me that 1.3 is much better, but when i asked the hosting company if i could have that one on instead, they said they dont offer support for it .. and i dont dare change it myself lol

    Erica xx

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Attribute Spacing/Alignment

    OK. Firstly a fix for your immediate problem. If you don't already have one, create a directory called includes/templates/purpleshades/templates.

    Then copy includes/templates/template_default/tpl_product_info_display.php into your new directory and open the new copy for editing.

    Lines 158-159 should read
    <td class="main" align="left" valign="top"><?php echo $options_name[$i] . ':'; ?></td>
    <td class="main" align="left" valign="top" width="75%"><?php echo $options_menu[$i]; ?></td>
    Edit them to read
    <td class="main" align="left" valign="top" width="60px"><?php echo $options_name[$i] . ':'; ?></td>
    <td class="main" align="left" valign="top"><?php echo $options_menu[$i]; ?></td>
    Upload the new file to your server.

    That will deal with your immediate problem, but you have a bigger one. Kobra is right. 1.3 is much better. It's architecture is superior, it's much more standards compliant, it has some snazzy new features, but most importantly for a online shop, it has some important security fixes.

    It's a cheek for your webhost to say that they only support version 1.2.7. They are leaving you with an outdated, no-longer supported version of Zen Cart containing known security flaws. How can they can they call that support. I'd recommend looking for a new host. Some like Camelot-Hosting will even move your site for you, and the Purple Shades template is available for version 1.3 so upgrading shouldn't be too difficult.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    nice one .. it looks brill, thank you.

    When i mailed them to ask about putting it on, this is the reply they sent:

    You can upgrade to version 3.xx bust we strongly advise against it at this time

    We use version 2, (1.2.7) This is zen-carts fully working and bug free release of zen-cart. It has all bug fixes and security updates installed.

    They have now started on a new version. Zen-Cart 3 but at present there is still a lot of issues to be fixed and currently only on 1.3.2. See their website for more details.

    I'm afraid if you do upgrade to version 3 we will not be able to offer support at present.


    Erica xx

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute Spacing/Alignment

    It is too bad your hosting site does not know the code well enough to even refer to it by version correctly ...

    I think just about all references are to versions that do not exist ...

    But if they know what they are doing great ...

    I would not let someone start a new site in v1.2.7 ... but what do I know ... I just write the code ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Attribute Spacing/Alignment

    Who is your host?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: Attribute Spacing/Alignment

    Quote Originally Posted by Ajeh
    It is too bad your hosting site does not know the code well enough to even refer to it by version correctly ...

    I think just about all references are to versions that do not exist ...

    But if they know what they are doing great ...

    I would not let someone start a new site in v1.2.7 ... but what do I know ... I just write the code ...
    LMAO .. you made me actually laff out loud .. once i get the guts to do it, i will upgrade

    Quote Originally Posted by DrByte
    Who is your host?
    they are called rentacart .. they install it and host it


    Erica xx

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Attribute Label vs. Attribute Drop-Box: Horizontal Alignment
    By peeplead in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Jul 2011, 07:14 PM
  2. attribute spacing off
    By jmuniz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Dec 2010, 05:20 PM
  3. Attribute spacing
    By r1formetoo in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 5 Feb 2009, 04:01 AM
  4. Spacing and alignment of products in columns
    By dman76 in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 20 Nov 2007, 10:56 PM
  5. Attribute image spacing
    By Shari in forum General Questions
    Replies: 4
    Last Post: 28 Jun 2007, 05:03 AM

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