If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / I want to duplicate my Osc store, need to use tables for layout

I want to duplicate my Osc store, need to use tables for layout

Locked

Started by charinlasvegas on 20 Jan 2009, 3:20 PM · Views: 3,345

Results 1 to 20 of 35
This thread is locked. New replies are disabled.
20 Jan 2009, 3:20 PM
#1
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

I want to duplicate my Osc store, need to use tables for layout

Hi -

I am trying to make the switch from Osc to Zen Cart. I would like to duplicate the look of my Osc store as closely as possible, as I worked really hard on it and I like it. I've gotten partially there --

Here is my Osc store

Here is the Zen cart store I'm building

  1. If you notice a big difference in the looks is the "border" that I have around the main table. So I have my page background which tiles, then I have a table with it's own background, then I have another table inside that with my header, contents & footer. (I hope I can recreate my footer also)

Is it at all possible for me to do this with Zen cart? Do I create a new wrapper or something? Really confused about wrappers...

  1. The 2nd biggie for me is the use of More Categories. You see in my OSC left hand column I have my store categories broken up into separate sections. I installed a couple of different contributions to Zen cart last night - you can see one of them in the left column under Categories -- but can't seem to get what I want. Can I fudge this with blank sidebox's that I hard code links into? Or is there another way? Or no way :cry:?

If I could get past these two things I would be well on my way to having Zen cart set up just the way I want in just days whereas I've been struggling with Osc for months.

Thanks very much for any help or pointers.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

21 Jan 2009, 12:35 AM
#2
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

I'm getting there :D

In case anyone is interested, LOL.

For the more categories I'm using blank sideboxes and hardcoded links. But I still don't know what to do about the border, can I place a border around the entire middle content? I know ZC doesn't use tables, so I'm not sure how to do that. Any tips?

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

21 Jan 2009, 4:04 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I want to duplicate my Osc store, need to use tables for layout

Find this entry in your stylesheet and add the entry in red and adjust to suit

.inner {
	width: 100%;
        border: 5px solid #FFFFFF;
}

Zen-Venom Get Bitten

21 Jan 2009, 6:42 AM
#4
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

kobra:

Find this entry in your stylesheet and add the entry in red and adjust to suit

.inner {
width: 100%;
border: 5px solid #FFFFFF;
}


Thank You!

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

21 Jan 2009, 6:57 AM
#5
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

That's not it, that's the center column. I want a one border going around the whole body of the store. I can't figure out what to edit.

Thanks anyway.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

21 Jan 2009, 7:19 AM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I want to duplicate my Osc store, need to use tables for layout

Add div into
includes/nameofyourtemplate /common/tpl_main_page.php
i.e.
frame
above

<div id="mainWrapper">

create an image with borders either side and transparent
middle..
add to stylesheet

#frame {
width: 846px;
text-align: left;
background: #ffffff url(../images/background_04.gif); 
margin-left:auto; margin-right:auto;
}

adjust width to requirements depending on width of your site
and border
Remember to close new div you entered into tpl_main_page.php

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

21 Jan 2009, 7:47 AM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I want to duplicate my Osc store, need to use tables for layout

UPDATE to my last post..
Path incorrect

includes/nameofyourtemplate /common/tpl_main_page.php
should be
/includes/templates/nameofyourtemplate/common/tpl_main_page.php

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

21 Jan 2009, 2:08 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I want to duplicate my Osc store, need to use tables for layout

That's not it, that's the center column. I want a one border going around the whole body of the store
But you originally asked
But I still don't know what to do about the border, can I place a border around the entire middle content?
Gotta ask for what you want in a way that we can understand

Zen-Venom Get Bitten

21 Jan 2009, 3:32 PM
#9
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

misty:

UPDATE to my last post..
Path incorrect

should be
/includes/templates/nameofyourtemplate/common/tpl_main_page.php

Thanks misty, I'll give that a shot.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

21 Jan 2009, 3:35 PM
#10
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

kobra:

But you originally asked

Gotta ask for what you want in a way that we can understand

You're right, my :oops:

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

22 Jan 2009, 3:11 AM
#11
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

misty:

UPDATE to my last post..
Path incorrect

should be
/includes/templates/nameofyourtemplate/common/tpl_main_page.php

I couldn't get that to work, but I think it might be the template. The only thing that happens is I get background space on the sides of my header and my footer goes off to the left.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

22 Jan 2009, 3:30 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Re: I want to duplicate my Osc store, need to use tables for layout

I'll leave others to help with the border, as there are many here who can do that; but you can get the exact look of your original store using non-linked headings in Categories Dressing, applied to just the one original categories sidebox.

No cloning or new files needed, aside from the mod version of tpl_categories.php and an additional stylesheet. You enter the headings desired into tpl_categories.php. (I am working on a new version of Cat Dressing that will move all the user edits to one separate define file for even easier use.)

22 Jan 2009, 3:40 AM
#13
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

gjh42:

I'll leave others to help with the border, as there are many here who can do that; but you can get the exact look of your original store using non-linked headings in Categories Dressing, applied to just the one original categories sidebox.

No cloning or new files needed, aside from the mod version of tpl_categories.php and an additional stylesheet. You enter the headings desired into tpl_categories.php. (I am working on a new version of Cat Dressing that will move all the user edits to one separate define file for even easier use.)

Meaning I don't need all those additional sidebox's? That'll be a relief!

I think I get what you mean, I can make a non-linked heading with a background image in the spot for the "parent" category, and then the categories under than will be generated?

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

22 Jan 2009, 3:59 AM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: I want to duplicate my Osc store, need to use tables for layout

Cat Dressing doesn't control which categories display, or their order. You will get the standard topcats plus the subcats of a selected topcat, etc. You can give each category a sort order when creating or editing it (number by 10's so you can easily insert another one later).

Then you identify the cat ids that are at the top of groups, and add your headings to those. There is a little graphic/CSS trick you can use to make it look like the group boxes are separate from each other - I'll explain that when you are ready for it. It wouldn't work for a site with an image background behind the sidebars, but it will work for yours.

22 Jan 2009, 4:09 AM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: I want to duplicate my Osc store, need to use tables for layout

Your osC store has all of the categories as topcats, but I see you have set up your ZC with all of those cats as subs of a top for the box they are in. That makes organizational sense, and it would be possible to have all of those subcats open all the time, but it would involve a lot more custom code than moving all of them to be topcats and giving them sort orders (which would require no custom code).

22 Jan 2009, 4:58 AM
#16
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

gjh42:

I'll leave others to help with the border, as there are many here who can do that; but you can get the exact look of your original store using non-linked headings in Categories Dressing, applied to just the one original categories sidebox.

No cloning or new files needed, aside from the mod version of tpl_categories.php and an additional stylesheet. You enter the headings desired into tpl_categories.php. (I am working on a new version of Cat Dressing that will move all the user edits to one separate define file for even easier use.)

gjh42:

Your osC store has all of the categories as topcats, but I see you have set up your ZC with all of those cats as subs of a top for the box they are in. That makes organizational sense, and it would be possible to have all of those subcats open all the time, but it would involve a lot more custom code than moving all of them to be topcats and giving them sort orders (which would require no custom code).

Yes, I have them set up that way on osc because it's the easiest way to have them always open. I could do that with zc too, I haven't added any products yet so it would be easy to do it now.

I dl'd Categories Dressing so I'll have a look at that. Thanks for your help!!

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

22 Jan 2009, 6:33 AM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: I want to duplicate my Osc store, need to use tables for layout

The categories are flexible enough that you can set them all up as topcats now for easy display, and later in ZC v2.0 (which should be easier to modify) you can make them subs of "group" topcats again if you want.

22 Jan 2009, 6:35 AM
#18
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I want to duplicate my Osc store, need to use tables for layout

CharInLasVegas:

I couldn't get that to work, but I think it might be the template. The only thing that happens is I get background space on the sides of my header and my footer goes off to the left.
You have to calculate width of template/zencart and adjust
stylesheet to allow for border image

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

22 Jan 2009, 4:06 PM
#19
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: I want to duplicate my Osc store, need to use tables for layout

misty:

You have to calculate width of template/zencart and adjust
stylesheet to allow for border image

Yes, I did that. I allowed for a 7 pixel border on both sides.

Here's the code I used:

In the stylesheet:

#frameMainWrapper {
width: 963px;
text-align: left:
background-image: url("../images/tbl_bg.gif");
margin-left:auto; margin-right:auto;
}

In "common/tpl_main_page.php":

require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
**<div id="frameMainWraper"> **

<div id="contentMainWrapper"> <div id="contentMainWrapperb"> <div class="outer"> <div class="inner"> <div class="float-wrap"> <div id="content"> <div class="contentWrap">

I tried to follow your instructions along with the way the code is already written. Should I have done

<div id="contentframeMainWrapper"> instead???

Anyway, what showed was 7 blank pixels on both sides of my header and my footer was moved to the left, I would say 14 pixels from the look of it.

The left & right columns seemed to move over 7 pixels. The template calls for a "sidebox bg" which I think is in that place, what I did not to break the template was overwrite that with a transparent .gif. But that didn't help.

I've got the look almost exactly like my osc store except for that, and I think the design really needs to have something around the body. I would even be content with just a regular border around it, doesn't have to be an image.

Completed: BellaFavori.com
In Progress: WeddingDivasLV.com
Coming Soon: ???

22 Jan 2009, 5:03 PM
#20
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I want to duplicate my Osc store, need to use tables for layout

You are using Cherry Zen template, stylesheet of which is
stangely configured...normally, below sets width of site

#mainWrapper {text-align: left;width: 100;//this would normally be 100% or set px amount i.e. 949px
vertical-align: top;background-image: url("http://www.bellafavori.net/store/images/back.jpg");background-repeat: repeat-y;background-attachment: scroll;}

BUT cherry zen has other settings which also affect width
i.e.

#nw {    width:949px; /* main site width; if you'd prefer a fixed width site, enter the width in px here. */    max-width:949px; /* prevents the main content from getting wider than 1300px in sites other than IE */    min-width:949px; /* this prevents the main content from getting smaller than 1000px in browsers OTHER THAN IE. You can make this as small as 800px, BUT any smaller than that, and the top header menu will break into two lines. Also, if you make this width 800px, you will need to make sure your product image on the product info page is no wider than 190px */}/* IE only. Controls Width of Site and Main Content*/* html #nw { width:expression((d=document.compatMode=="CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 949? "949px" : d.clientWidth > 949? "949px" : d.clientWidth < 949? "949px" : "949px")); /* this prevents the site from getting smaller than 1000px or wider than 1300px in IE */}/* end IE only *//* end site and main content width section */

It also has code

#frameMainWrapper {width: 963px;text-align: left:background-image: url("../images/tbl_bg.gif");margin-left:auto; margin-right:auto;}

the codes I have stated above this maybe affecting image you have created for your border.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others