Zen Cart Logo
Forums / Addon Templates / Comstock Template

Comstock Template

Views: 132,193

Results 501 to 520 of 722
31 Dec 2009, 7:54 AM
#501
jameshe avatar

jameshe

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Comstock Template

calixto:

Fixed,
there is in tpl_best_sellers.php
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
calls for definition bestsellersContent which does not exist rather than bestsellers. I could rename it as well but removed the content piece and set needed top margin
I guess that is the same thing that happens in Bestseller box in general, that the browser assumes default top margin

Hi clydjones,

I searched forum, find some has the same issue.
I referred his suggestion, add the new class in the stylesheet.css.

.bestsellersContent {
background-image:url(../images/sidebox_content_bg.gif);
margin-top: 0;
padding:0;

}

and change the /tpl_best_sellers.php.
from
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";

to
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="bestsellersContent">' . "\n";

BUT it doesn't work, it still has a blank between the sidebox_content_bg.gif and sidebox_header_bg.gif.

Could you help me on this?

Thanks a lot.

31 Dec 2009, 5:32 PM
#502
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

jamesHe:

Hi clydjones,

I searched forum, find some has the same issue.
I referred his suggestion, add the new class in the stylesheet.css.

.bestsellersContent {
background-image:url(../images/sidebox_content_bg.gif);
margin-top: 0;
padding:0;

}

and change the /tpl_best_sellers.php.
from
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";

to
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="bestsellersContent">' . "\n";

BUT it doesn't work, it still has a blank between the sidebox_content_bg.gif and sidebox_header_bg.gif.

Could you help me on this?

Thanks a lot.

try the following:

open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_best_sellers.php

replace the following code:

    $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  $content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
  for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
    $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
  }
  $content .= '</ol>' . "\n";
  $content .= '</div>' . "\n";
  $content .= '</div>';

with this:

    $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  $content .= '<ol>' . "\n";
  for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
    $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
  }
  $content .= '</ol>' . "\n";
  $content .= '</div>';
4 Jan 2010, 6:21 AM
#503
jameshe avatar

jameshe

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Comstock Template

clydejones:

try the following:

open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_best_sellers.php

replace the following code:

$content = '';

$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
$content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
}
$content .= '</ol>' . "\n";
$content .= '</div>' . "\n";
$content .= '</div>';

> 
> with this:
> 
> ```
    $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  $content .= '<ol>' . "\n";
  for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
    $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
  }
  $content .= '</ol>' . "\n";
  $content .= '</div>';

Hi clydejones,

Thanks for your replying, but It seems not work wells. I replaced the code as you given, the blank is still existent. need I modify the ccs files?

4 Jan 2010, 6:19 PM
#504
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

jamesHe:

Hi clydejones,

Thanks for your replying, but It seems not work wells. I replaced the code as you given, the blank is still existent. need I modify the ccs files?

You can make adjustments in the stylesheet to see if that correct the problem.

5 Jan 2010, 6:38 AM
#505
jameshe avatar

jameshe

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Comstock Template

clydejones:

You can make adjustments in the stylesheet to see if that correct the problem.

Thanks !!

25 Jan 2010, 2:32 PM
#506
jo_h1971 avatar

jo_h1971

New Zenner

Join Date:
Oct 2009
Posts:
33
Plugin Contributions:
0

Re: Comstock Template

Hi

Hoping someone can help. I would like to copy the login/register button so I can put my bookmark us link inside it. I know that its something to do with the stylesheet but don't know which bits to copy to create another button.

If you take a look at the site you can see it looks a bit odd at the moment!

Site link is: www. ha z e l v a l l e y p a c k a g i n g . co.uk

Thank you

25 Jan 2010, 4:19 PM
#507
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

jo_h1971:

Hi

Hoping someone can help. I would like to copy the login/register button so I can put my bookmark us link inside it. I know that its something to do with the stylesheet but don't know which bits to copy to create another button.

If you take a look at the site you can see it looks a bit odd at the moment!

Site link is: www. ha z e l v a l l e y p a c k a g i n g . co.uk

Thank you

make sure you include <li> </li> tags as shown.

<li><a href="#" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite(location.href, document.title); return false; }else{ this.title = document.title; }" title="bookmark this page"><font color="white">BOOKMARK US</font></a></li>

25 Jan 2010, 5:22 PM
#508
jo_h1971 avatar

jo_h1971

New Zenner

Join Date:
Oct 2009
Posts:
33
Plugin Contributions:
0

Re: Comstock Template

Hi Clyde

Thanks so much for taking the time and trouble to look into that for me. Can't believe it was such an easy fix!

Thanks again

25 Jan 2010, 5:27 PM
#509
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

jo_h1971:

Hi Clyde

Thanks so much for taking the time and trouble to look into that for me. Can't believe it was such an easy fix!

Thanks again

glad it got sorted

26 Jan 2010, 7:11 AM
#510
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Comstock Template

Hi all. Nice template.
Need change two places
Background on main header and picture place in product info. Wide screen destroy nice looked design. Need put picture in the middle.
Im attach picture - what I have and what I need to make.
Please advice if you have ideas.

Maxus

27 Jan 2010, 4:02 AM
#511
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

maxus:

Hi all. Nice template.
Need change two places
Background on main header and picture place in product info. Wide screen destroy nice looked design. Need put picture in the middle.
Im attach picture - what I have and what I need to make.
Please advice if you have ideas.

Maxus

You can add you background image in the stylesheet.css

locate the #logoWrapper declaration and add you background image.

download the product info display(centered) mod

15 Feb 2010, 7:58 PM
#512
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Comstock Template

Hi all. One small question about Bestseller sidebox.
Im nod made any changes in code. Just install template.
But see white line under Bestseller header
Im attach picture

Dont know how to remove it.
I see it in all browsers IE, Mozilla and Chrome

15 Feb 2010, 10:28 PM
#513
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

maxus:

Hi all. One small question about Bestseller sidebox.
Im nod made any changes in code. Just install template.
But see white line under Bestseller header
Im attach picture

Dont know how to remove it.
I see it in all browsers IE, Mozilla and Chrome

the comstock template doesn't modify/change the bestseller sidebox.

However take a look through this thread I believe there is something about it.

18 Feb 2010, 7:15 AM
#514
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Comstock Template

So .. I see - it is not your foult
But I have white wrap on bestseller box and another users too.

Now one way to hide white wrap is change this line

$content .= '<div class="wrapper">' . '<ol>' . "\n";

to this

$content .= '<div class="wrapper">' . '<br>'. '<ol>' . "\n";

white wrap is gone.. but we have additional empty line.
I mean it is better. but still need solution

26 Feb 2010, 11:49 AM
#515
pageblair avatar

pageblair

Zen Follower

Join Date:
Feb 2010
Location:
ny
Posts:
223
Plugin Contributions:
0

Re: Comstock Template

hello and thank you, I changed my template to comstock and the large header banner/image wont show up?

/includes/templates/comstock/images/header_bg.jpg

and how do I eliminate the logo.gif on the top left of the header?

please advise

26 Feb 2010, 3:10 PM
#516
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

pageblair:

hello and thank you, I changed my template to comstock and the large header banner/image wont show up?

/includes/templates/comstock/images/header_bg.jpg

and how do I eliminate the logo.gif on the top left of the header?

please advise

A link to your site would be useful.

Tutorial/FAQ section - Article 125

26 Feb 2010, 5:24 PM
#518
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

pageblair:

hello and thank you, I changed my template to comstock and the large header banner/image wont show up?

/includes/templates/comstock/images/header_bg.jpg

and how do I eliminate the logo.gif on the top left of the header?

please advise

pageblair:

sorry
https://www.westafricanmovie.com

admin -> configuration -> ez-pages settings -> EZ-Pages Display Status - HeaderBar (set to 1)

27 Feb 2010, 2:23 PM
#519
pageblair avatar

pageblair

Zen Follower

Join Date:
Feb 2010
Location:
ny
Posts:
223
Plugin Contributions:
0

Re: Comstock Template

Thank you, This is already set to 1 and not working.

27 Feb 2010, 3:26 PM
#520
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Comstock Template

pageblair:

Thank you, This is already set to 1 and not working.

try creating an ez-page and set it up t display in the header