Forums / Setting Up Categories, Products, Attributes / Attribute Spacing/Alignment

Attribute Spacing/Alignment

Locked

Views: 2,569

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
13 Aug 2006, 3:43 PM
#1
erica avatar

erica

Zen Follower

Join Date:
Jul 2006
Location:
Rotherham, UK
Posts:
126
Plugin Contributions:
0

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

13 Aug 2006, 4:04 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

13 Aug 2006, 5:08 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

13 Aug 2006, 5:14 PM
#5
erica avatar

erica

Zen Follower

Join Date:
Jul 2006
Location:
Rotherham, UK
Posts:
126
Plugin Contributions:
0

Re: Attribute Spacing/Alignment

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

13 Aug 2006, 7:01 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

13 Aug 2006, 7:38 PM
#7
erica avatar

erica

Zen Follower

Join Date:
Jul 2006
Location:
Rotherham, UK
Posts:
126
Plugin Contributions:
0

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

13 Aug 2006, 7:45 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :rolleyes:

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!

13 Aug 2006, 7:46 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

13 Aug 2006, 7:54 PM
#10
erica avatar

erica

Zen Follower

Join Date:
Jul 2006
Location:
Rotherham, UK
Posts:
126
Plugin Contributions:
0

Re: Attribute Spacing/Alignment

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 ... :rolleyes:

LMAO .. you made me actually laff out loud .. once i get the guts to do it, i will upgrade

DrByte:

Who is your host?

they are called rentacart .. they install it and host it

Erica xx

13 Aug 2006, 9:29 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Attribute Spacing/Alignment

Your hosting company appears to be using Zen Cart code with a number of packaged contributions and offering it as their flagship product to go with their hosting packages.
They offer about 35 templates which are all cookie-cutter designs with just some colour changes.
Since they only know or understand v1.2.x and do not want to have to go to the trouble of upgrading all their customers to the v1.3.x platform, they are not going to support your moving upwards.
That's fine. They can do that. It's not exactly the best service, but what do you expect for free.

Anyway, if you would like to further customize a layout problem in the older template, perhaps their tech support people would be happy to help you alter the code that they are providing to you. Or if you purchased your template from them, perhaps they would be kind enough to support said same template.

Nevertheless, kuroi has taken considerable time to look at your template and offer a fix. Hopefully that helps with your problem.
If you need to make significant additional changes, you will find that making those changes is more difficult in the 1.2.x version than it is in v1.3

Sorry - just passing the buck right back where it started. Your hosting company isn't exactly doing you much of a favour.

.
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.

13 Aug 2006, 9:55 PM
#12
erica avatar

erica

Zen Follower

Join Date:
Jul 2006
Location:
Rotherham, UK
Posts:
126
Plugin Contributions:
0

Re: Attribute Spacing/Alignment

DrByte:

If you need to make significant additional changes, you will find that making those changes is more difficult in the 1.2.x version than it is in v1.3

Sorry - just passing the buck right back where it started. Your hosting company isn't exactly doing you much of a favour.

Thats exactly what Kobra said too.
I have downloaded the 1.3 version, and have asked for help in the upgrading forum on which is the best way to get 1.2 off and 1.3 on .. I think thats gonna be the best way to go isnt it :)
Erica xx