Forums / General Questions / Page layout question

Page layout question

Locked

Started by r1formetoo on 19 Dec 2008, 7:26 PM · Views: 13,301

Results 101 to 116 of 116
This thread is locked. New replies are disabled.
16 Jan 2009, 8:22 PM
#101
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Page layout question

Hey Glenn, I've concocted another question. If I wanted to connect the Information box to the bottom of the categories box how would you recommend I go about doing this? I'm thinking it might help the page to connect everything and flow a bit better. What do you think?

Ian

17 Jan 2009, 7:18 AM
#102
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Page layout question

As you have the categories box flush to the logo, it would make sense to do the same for the information box.

Sideboxes have a 15px top margin set as default, but you can override that for one if you want. Add to your stylesheet:

#information {margin-top: 0;}

17 Jan 2009, 3:59 PM
#103
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

Thanks Glenn, that worked. After seeing how easily you can add and edit products using a zencart site I'm thinking seriously about setting up my personal site https://www.redlinestands.com as a zen cart site. I make my living from redlinestands.com so this would be an important move. Tell me, if I were to take my entire catalog folder from mowerpartsupply and copy it over to redlinestands.com would that effectively give me the exact same set up on my site so that I could then start editing it on redlinestands.com for a custom look? I like the general layout of mps right now and I'd like to continue to use that for my site so if I could use the mps zencart as a starting point for redlinestands.com that would really speed things up tremendously. What do you think?

Ian

17 Jan 2009, 5:07 PM
#105
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: Page layout question

r1formetoo:

Thanks Glenn, that worked. After seeing how easily you can add and edit products using a zencart site I'm thinking seriously about setting up my personal site www.redlinestands.com as a zen cart site. I make my living from redlinestands.com so this would be an important move. Tell me, if I were to take my entire catalog folder from mowerpartsupply and copy it over to redlinestands.com would that effectively give me the exact same set up on my site so that I could then start editing it on redlinestands.com for a custom look? I like the general layout of mps right now and I'd like to continue to use that for my site so if I could use the mps zencart as a starting point for redlinestands.com that would really speed things up tremendously. What do you think?
IanHi Ian - I did wonder whether you were a M/C type when I saw the..."r1formetoo" - (I take it that is R1 as in Yamaha ?)
OK - if you have your custom overrides folder set up - then that is what is controlling the "look" of the site - so you only need to copy those over-rides over to a new installation of zen cart - switch 'em on in Template selection - and away you go.

The products - you will need to add - and the other info - you can add as ezpages - should make your life a lot easier once it is done....
Of course - a lot of the content and "Terms, Privacy, etc - you can just copy / paste - but you will have the whole job "under one roof" - rather than a separate cart...
I came to the conclusion a while ago - that zen cart has so much functionallity built in - that it could be used for many more things than a plain shopping cart - so started messing with various ideas.

Here's a cart I've been messing with...
http://maplesigns.co.uk/partslist/

  • mainly for practice - I am also working on a couple of other sites which are almost ready to switch on...:smile:
    And a site my brother & wife talked me in to doing:

http://elizabethsbridalwear.co.uk/
I have something else in mind too - will PM you when I get a minute (or three..:cool:)
It might be worth you setting up a local server - such as Xampp - you can test and mess about as much as you like that way....

19 Jan 2009, 8:28 PM
#106
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

Vinyl Signs:

Hi Ian - I did wonder whether you were a M/C type when I saw the..."r1formetoo" - (I take it that is R1 as in Yamaha ?)
OK - if you have your custom overrides folder set up - then that is what is controlling the "look" of the site - so you only need to copy those over-rides over to a new installation of zen cart - switch 'em on in Template selection - and away you go.

The products - you will need to add - and the other info - you can add as ezpages - should make your life a lot easier once it is done....
Of course - a lot of the content and "Terms, Privacy, etc - you can just copy / paste - but you will have the whole job "under one roof" - rather than a separate cart...
I came to the conclusion a while ago - that zen cart has so much functionallity built in - that it could be used for many more things than a plain shopping cart - so started messing with various ideas.

Here's a cart I've been messing with...
http://maplesigns.co.uk/partslist/

  • mainly for practice - I am also working on a couple of other sites which are almost ready to switch on...:smile:
    And a site my brother & wife talked me in to doing:

http://elizabethsbridalwear.co.uk/
I have something else in mind too - will PM you when I get a minute (or three..:cool:)
It might be worth you setting up a local server - such as Xampp - you can test and mess about as much as you like that way....

Hey Glenn, boy have I got one for you now! Try buying something on the site and you'll quickly see that my FedEx shipping module add-on wasn't so successful. If you've got the time I'm all ears........

Ian

19 Jan 2009, 8:30 PM
#107
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

It might help that this info below shows on my shipping module admin page.

Ian

Warning: include(/home/mowerpar/public_html/catalog/includes/languages/english/modules/shipping/fedexexpress.php) [function.include]: failed to open stream: No such file or directory in /home/mowerpar/public_html/catalog/admin/modules.php on line 173

Warning: include() [function.include]: Failed opening '/home/mowerpar/public_html/catalog/includes/languages/english/modules/shipping/fedexexpress.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mowerpar/public_html/catalog/admin/modules.php on line 173

Warning: include(/home/mowerpar/public_html/catalog/includes/languages/english/modules/shipping/fedexground.php) [function.include]: failed to open stream: No such file or directory in /home/mowerpar/public_html/catalog/admin/modules.php on line 173

Warning: include() [function.include]: Failed opening '/home/mowerpar/public_html/catalog/includes/languages/english/modules/shipping/fedexground.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mowerpar/public_html/catalog/admin/modules.php on line 173

19 Jan 2009, 8:41 PM
#108
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Page layout question

include(/home/mowerpar/public_html/catalog/includes/languages/english/modules/shipping/fedexexpress.php)

No such file or directory in /home/mowerpar/public_html/catalog/admin/modules.php

I haven't looked at shipping modules much, but it sounds like you may have a bad file upload or otherwise missing file.

22 Jan 2009, 7:48 PM
#109
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

Hey Glenn, I'm about to start setting up my site https://www.redlinestands.com into a zen cart site while I'm working on mowerpartsupply. I'm thinking that I'd like to move the "Home" "Log In" for my site so that it will reside on the top right section of the background header. Is that going to be much trouble to do? It sounds easy enough...

Ian

22 Jan 2009, 8:54 PM
#110
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

Glenn, I talked to a friend of mine with IE6 today who also sees my same layout error in his IE6. My web host guy thinks maybe my left and right margins are just too wide, either way the site is definitely forcing the image downward because there isn't enough room. What do you think?

Ian

error example

27 Mar 2009, 7:49 PM
#111
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

Gary, I believe I only have one issue left to fix to my new zencart site before customers can use it and I've not found anyone who knows how to fix this issue. Please check the page below and notice how my attributes display down and to the right instead of just to the right. Might you know why it's doing this?

Ian
http://www.redlinestands.com/catalog/dirt-bike-lifts-stands/rhino-dirt-bike-lift

28 Mar 2009, 4:51 AM
#112
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Page layout question

If you add a clear: left; to the attribute wrapper, they will keep to their own lines:

.wrapperAttribsOptions
{ margin:0.3em 0; clear: left; }

It seems you have done some tweaking in that file, because there should be <h3> elements with a class tag of optionName, but all I see is text with a class of "optionname (extraneous quote), which cannot be used in the stylesheet.

28 Mar 2009, 11:30 PM
#113
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

gjh42:

If you add a clear: left; to the attribute wrapper, they will keep to their own lines:

.wrapperAttribsOptions
{ margin:0.3em 0; clear: left; }

It seems you have done some tweaking in that file, because there should be <h3> elements with a class tag of optionName, but all I see is text with a class of "optionname (extraneous quote), which cannot be used in the stylesheet.

Well, I added the clear you spoke of but it didn't really do what I wanted it to do. It then made them display down the page instead of displaying across the page. I would rather they not display down the page because that makes the page taller than it needs to be. Any idea how I'll get them to display across the page?

Ian

29 Mar 2009, 12:44 AM
#114
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Page layout question

There are a few things that are giving your attributes layout problems. From view source:```html

<!--bof Attributes Module --> <div style="float:left"> <div id="productAttributes"> <h3 id="attribsOptionsText"> </h3> <div class="wrapperAttribsOptions"> <class="optionName back">Color<br /> <div class="back">

<input type="radio" name="id[1]" value="29" checked="checked" id="attrib-1-29" /><label class="attribsRadioButton zero" for="attrib-1-29">Black</label><br />
<input type="radio" name="id[1]" value="16" id="attrib-1-16" /><label class="attribsRadioButton zero" for="attrib-1-16">Red</label><br />

</div> <br class="clearBoth" /> </div> <br class="clearBoth" /> <div class="wrapperAttribsOptions"> <class="optionName back"><label class="attribsSelect" for="attrib-2">Size</label><br /> <div class="back"> <select name="id[2]" id="attrib-2"> <option value="20">Large</option> <option value="18">Medium</option> <option value="37" selected="selected">Select from below ...</option> </select> </div> <br class="clearBoth" /> </div> <br class="clearBoth" /> <div class="wrapperAttribsOptions"> <class="optionName back">Add TK3000 Mounting Kit<br /> <div class="back"> <input type="radio" name="id[14]" value="38" id="attrib-14-38" /><label class="attribsRadioButton zero" for="attrib-14-38">none</label><br /> <input type="radio" name="id[14]" value="39" checked="checked" id="attrib-14-39" /><label class="attribsRadioButton zero" for="attrib-14-39">Please Select</label><br /> <input type="radio" name="id[14]" value="40" id="attrib-14-40" /><label class="attribsRadioButton zero" for="attrib-14-40">TK3000</label><br /> </div> <br class="clearBoth" /> </div> <br class="clearBoth" /> </div></div> <!--eof Attributes Module --> ```You have <class="optionName back"> which is not a valid HTML tag - class is not an HTML element. It should be <h4 class="optionName back"> </h4> You can always change the styling here if you don't like the default h4 style. <h4 class="optionName back">Color</h4> <h4 class="optionName back"><label class="attribsSelect" for="attrib-2">Size</label></h4> <h4 class="optionName back">Add TK3000 Mounting Kit</h4>

The cause of your attributes going down and right is the
<br class="clearBoth" />
that are all over here. Change them to plain <br /> tags.

Get rid of the clear: left; as it is not what you want to do here.

29 Mar 2009, 10:42 PM
#115
r1formetoo avatar

r1formetoo

Zen Follower

Join Date:
Sep 2008
Posts:
429
Plugin Contributions:
0

Re: Page layout question

gjh42:

There are a few things that are giving your attributes layout problems. From view source:```html

<!--bof Attributes Module --> <div style="float:left"> <div id="productAttributes"> <h3 id="attribsOptionsText"> </h3> <div class="wrapperAttribsOptions"> <class="optionName back">Color<br /> <div class="back">

<input type="radio" name="id[1]" value="29" checked="checked" id="attrib-1-29" /><label class="attribsRadioButton zero" for="attrib-1-29">Black</label><br />
<input type="radio" name="id[1]" value="16" id="attrib-1-16" /><label class="attribsRadioButton zero" for="attrib-1-16">Red</label><br />

</div> <br class="clearBoth" /> </div> <br class="clearBoth" /> <div class="wrapperAttribsOptions"> <class="optionName back"><label class="attribsSelect" for="attrib-2">Size</label><br /> <div class="back"> <select name="id[2]" id="attrib-2"> <option value="20">Large</option> <option value="18">Medium</option> <option value="37" selected="selected">Select from below ...</option> </select> </div> <br class="clearBoth" /> </div> <br class="clearBoth" /> <div class="wrapperAttribsOptions"> <class="optionName back">Add TK3000 Mounting Kit<br /> <div class="back"> <input type="radio" name="id[14]" value="38" id="attrib-14-38" /><label class="attribsRadioButton zero" for="attrib-14-38">none</label><br /> <input type="radio" name="id[14]" value="39" checked="checked" id="attrib-14-39" /><label class="attribsRadioButton zero" for="attrib-14-39">Please Select</label><br /> <input type="radio" name="id[14]" value="40" id="attrib-14-40" /><label class="attribsRadioButton zero" for="attrib-14-40">TK3000</label><br /> </div> <br class="clearBoth" /> </div> <br class="clearBoth" /> </div></div> <!--eof Attributes Module --> ```You have > <class="optionName back"> > which is not a valid HTML tag - class is not an HTML element. It should be > <h4 class="optionName back"> </h4> > You can always change the styling here if you don't like the default h4 style. > > <h4 class="optionName back">Color</h4> > > <h4 class="optionName back"><label class="attribsSelect" for="attrib-2">Size</label></h4> > > <h4 class="optionName back">Add TK3000 Mounting Kit</h4> > > > The cause of your attributes going down and right is the > <br class="clearBoth" /> > that are all over here. Change them to plain <br /> tags. > > Get rid of the clear: left; as it is not what you want to do here.

Wow, I'm a bit confused now. It seems like you're telling me to edit just the source code for this one page but that can't be right because that wouldn't solve the problem when I wanted multiple attributes for all the other pages, not to mention I don't know how to edit the code for just one page. I checked my style sheet and I don't have any <br class="clearBoth" /> to remove in the entire thing. I tried removing the clear left from the statement

.wrapperAttribsOptions
{ margin:0.3em 0; clear: left; }

in my stylesheet but that again made the attributes display down the page instead of across it. I suppose my ultimate problem here is that I don't know what to do with the advice you're giving me. I'm just not that advanced yet.

Ian

30 Mar 2009, 6:16 AM
#116
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Page layout question

You have apparently made some edits in
/includes/templates/your_template/templates/tpl_modules_attributes.php, which have removed the h4 that should be there, leaving <class="optionName back"> . You need to restore that, and delete some <br class="clearBoth" /> that are in that file.