Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Few questions on how to make my site look like I want

Few questions on how to make my site look like I want

Locked

Started by browng on 14 Jun 2007, 7:39 PM · Views: 1,237

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Jun 2007, 7:39 PM
#1
browng avatar

browng

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Post #1 by browng

Hello to all,

I have just recently installed and loaded the Azadame template from here at the Contributed Templates section.

I am unable to see any side boxes, I only see my products in the middle and that's it. How can I get the side boxes?

Also, I really like the design from DrJays.com how can I get the same layout and style?

If one was to answer these questions I will be very grateful edited

Thanks,
BrownG

14 Jun 2007, 7:44 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Post #2 by gjh42

When you install a new template, you have to go to admin > Tools > Layout Boxes Controller and reset the boxes (button at bottom). Then arrange them to your taste.

14 Jun 2007, 8:03 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #3 by Kim

In the future, please post offers for paid help in the Commercial Help Wanted section.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

14 Jun 2007, 8:05 PM
#4
browng avatar

browng

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Post #4 by browng

Kim; Sorry about that, I will keep that in mind.

Thanks to Gjh42 for his solution but I would really like a response to how I can emulate the DrJays.com store.

Thanks,

14 Jun 2007, 8:54 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Post #5 by gjh42

Without getting into every little detail, the relevant layout features of that site are:
Home page with left sidebar disabled.
Interior pages with right sidebar disabled.
Category/subcat pages with big cat image/text on left, subcat images/links on right.
Product listing pages with product links in grid.
Product info page with main image on left, additional images below, and all text etc in column to right.

For the first two items, you would edit /includes/templates/your_template/common/tpl_main_page.php and follow the directions in comments at the top of the file, to set $flag_disable_left and $flag_disable_right as desired.

Download the Column Layout Grid mod for the product listings.

The rest would be a combination of moving blocks of code in /your_template/templates/tpl_product_info_display.php, and using CSS in your stylesheet to rearrange elements, and a lot of CSS styling for detailed appearance.

15 Jun 2007, 1:39 AM
#6
browng avatar

browng

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Post #6 by browng

Okay so I will be awarding you $30 instead of $20 as you prescribed to me what needed to be done in a quick manner, I thank you for that :smile:

Also, I don't mind paying you $40 if you explain to me how I can make those changes, as in where I can change the following;

  • Category/subcat pages with big cat image/text on left, subcat images/links on right.
  • Product info page with main image on left, additional images below, and all text etc in column to right.

Please PM me your PayPal or MoneyBookers e-mail.

Thanks a bunch bro :)

15 Jun 2007, 7:19 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Post #7 by gjh42

As a rule, we don't do business on the forum. If you want to reward good work, please make a donation to the Zen Cart project.

The cat/subcat page layout would be done mostly with CSS floats and margin-setting. You will probably need to remove a <br class="clearBoth" /> after the main image or text to allow the subcat images to sit up beside them. I don't know precisely what would work without testing, but it would likely work much like the product info code I will show you.

The product info page is essentially the same layout I use for my site, so I can give some examples. First, you need to rearrange the elements in tpl_product_info_display.php into the order you want them displayed. They are neatly packaged between <!--bof xxxx--> and <!--eof xxxx--> comments; move whole blocks anywhere you want, but not inside other blocks. To get the additional images up under the main image, I found it most effective to group them in a wrapper div:

<div id="productImagesWrapper">
<!--bof Main Product Image -->
...code...
<!--eof Main Product Image-->

<!--bof Additional Product Images -->
...code...
<!--eof Additional Product Images -->
</div>
```and then style that in the stylesheet:```php
#productImagesWrapper { /*gjh42 20070214*/
	width:200px;
	}
	
#productMainImage { /*gjh42 12/30/06*/
	width:200px;
	}
	
#productMainImage img {
	margin: 1em 0em 3em 0em ;
	float: right;
	}
#productAdditionalImages img { /*gjh42 20070329*/
	margin: 1em 0em 1em 0em ;
	float: right;
	}
``` This allows variable widths of images on the left, all aligned on their right edges. You may have different desires for that. You probably want a width of 300px or so.

The rest of the page contents get a left margin that will clear the images, so they will slide up beside them in a column: ```php
#productGeneral h1 {
	margin-left: 210px; <--------or 310px for you
	}
#productDescription, #productDetailsList  {
	padding: 0.5em;
	margin-left: 210px; <--------or 310px for you
	}
	
#productDetailsList li  {
	list-style-type: none;
	}
	
#productAttributes {
	margin-left: 210px; <--------or 310px for you
	}
...add any other elements desired to this list...