Forums / Addon Templates / Cambridge Pro Template Support Thread

Cambridge Pro Template Support Thread

Views: 30,511

Results 121 to 140 of 180
17 Aug 2013, 12:47 PM
#121
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Cambridge Pro Template Support Thread

countrycharm:

Hi Anne I really like this template thank you. I have a stupid question I can not figure out or it to late in the night. How in the world do you change the mega menu link color. Also the sidebox color. Thank You in advance, like I said it's late and my mind is burned out tonight.

I am happy that you like the template. If you post a link to your site I can take a look ;)

Thanks,

Anne

17 Aug 2013, 5:12 PM
#122
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

picaflor-azul:

I am happy that you like the template. If you post a link to your site I can take a look ;)

Thanks,

Anne

You can take a peak from here.
One more thing, how would I get rid of the new, featured, specials boxes down below since I want be needing them.
Thanks again

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

18 Aug 2013, 2:28 PM
#123
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

countrycharm:

You can take a peak from here.
One more thing, how would I get rid of the new, featured, specials boxes down below since I want be needing them.
Thanks again

Change the sidebox background color in stylesheet_betterCategoriesEzInfo.css.

Not sure exactly which links in the mega menu you want to change, but look in stylesheet_mega_menu.css. I would recommend using firebug to find which line of the stylesheet needs to be edited.

Turn off the centerboxes in admin--index listing

Thanks,

Anne

18 Aug 2013, 6:00 PM
#124
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

picaflor-azul:

Change the sidebox background color in stylesheet_betterCategoriesEzInfo.css.

Not sure exactly which links in the mega menu you want to change, but look in stylesheet_mega_menu.css. I would recommend using firebug to find which line of the stylesheet needs to be edited.

Turn off the centerboxes in admin--index listing

Thanks,

Anne

Thanks again Anne for all your help. One question and I will go away.

Where the new, featured, specials boxes were, now is a blank white space. How would I get rid of that.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

19 Aug 2013, 6:33 AM
#125
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

countrycharm:

Thanks again Anne for all your help. One question and I will go away.

Where the new, featured, specials boxes were, now is a blank white space. How would I get rid of that.

Hi Anne disregard what I wrote last. My question is how can I get rid of the black at the bottom of my site where the ip address is. I assume that is part of the header, but how can I lower the footer or change it's color. Thanks again

I will go away after this for sure,

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

19 Aug 2013, 11:31 AM
#126
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

countrycharm:

Hi Anne disregard what I wrote last. My question is how can I get rid of the black at the bottom of my site where the ip address is. I assume that is part of the header, but how can I lower the footer or change it's color. Thanks again

I will go away after this for sure,

It looks like there is a problem with your tpl_header.php file as the closing </div> for the header wrapper is not present.

Thanks,

Anne

19 Aug 2013, 4:14 PM
#127
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

picaflor-azul:

It looks like there is a problem with your tpl_header.php file as the closing </div> for the header wrapper is not present.

Thanks,

Anne

Hi Anne you may want to take a look at the template upload. I haven't change anything within that file so if the closing </div> for the header wrapper is missing you may want to check it. I added the closing </div> to the bottom of the file and the problem went away.
Thank you

One more thing when I try to validate my site HTML it tell me

Sorry! This document cannot be checked.

     Sorry, I am unable to validate this document because on line         **7**         it contained one or more bytes that I cannot interpret as         utf-8         (in other words, the bytes found are not valid values in the specified         Character Encoding). Please check both the content of the file and the         character encoding indication.       

   The error was:          utf8 "\xA0" does not map to Unicode

Any idea's on this..... Thank you again

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

20 Aug 2013, 11:33 AM
#128
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

countrycharm:

Hi Anne you may want to take a look at the template upload. I haven't change anything within that file so if the closing </div> for the header wrapper is missing you may want to check it. I added the closing </div> to the bottom of the file and the problem went away.
Thank you

One more thing when I try to validate my site HTML it tell me

Any idea's on this..... Thank you again

No, I just checked again and there is no missing </div> from the header file.

Thanks,

Anne

20 Aug 2013, 1:52 PM
#129
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

picaflor-azul:

No, I just checked again and there is no missing </div> from the header file.

Thanks,

Anne

Anne if I add the original tpl_header.php file back it does the very something I originally need help. That's very strange then.

Thanks again Anne for all your help. One question and I will go away for good.

When I switched off the new, featured, specials boxes from showing on my home page, now there is a blank white space. How would I get rid of that.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

21 Aug 2013, 2:05 PM
#130
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

countrycharm:

Anne if I add the original tpl_header.php file back it does the very something I originally need help. That's very strange then.

Thanks again Anne for all your help. One question and I will go away for good.

When I switched off the new, featured, specials boxes from showing on my home page, now there is a blank white space. How would I get rid of that.

The problem is not in the template demo:

http://www.picaflor-azul.com/free-demos/index.php?main_page=index&template_switch_id=cambridge_pro

If you do not want to use the home page tabs you can un-install this module, or use a display none to hide the styles for it.

Thanks,

Anne

23 Aug 2013, 10:06 PM
#131
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

picaflor-azul:

The problem is not in the template demo:

http://www.picaflor-azul.com/free-demos/index.php?main_page=index&template_switch_id=cambridge_pro

If you do not want to use the home page tabs you can un-install this module, or use a display none to hide the styles for it.

Thanks,

Anne

Thanks Anne that worked out great.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

26 Aug 2013, 9:55 PM
#133
jeffery_schenk avatar

jeffery_schenk

New Zenner

Join Date:
Jul 2013
Location:
Cloquet, Minnesota, United States
Posts:
9
Plugin Contributions:
0

Re: Cambridge Pro Template Support Thread

What setting need to be changed in tpl_mega_menu.php for brands to be displayed in the shop by brand drop down menu?:(

27 Aug 2013, 9:57 AM
#134
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

Jeffery Schenk:

What setting need to be changed in tpl_mega_menu.php for brands to be displayed in the shop by brand drop down menu?:(

Please see the readme.html file included in the template package for instructions on how to do this.

Thanks,

Anne

27 Aug 2013, 10:57 PM
#135
jeffery_schenk avatar

jeffery_schenk

New Zenner

Join Date:
Jul 2013
Location:
Cloquet, Minnesota, United States
Posts:
9
Plugin Contributions:
0

Re: Cambridge Pro Template Support Thread

I have read the readme.html file several times but I cannot find instructions to change the tpl_mega_menu. php. Could you please tell me what installation step that would be helpful in resolving my problem.

Thank you,
Jeff:

28 Aug 2013, 2:33 PM
#136
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

Jeffery Schenk:

I have read the readme.html file several times but I cannot find instructions to change the tpl_mega_menu. php. Could you please tell me what installation step that would be helpful in resolving my problem.

Thank you,
Jeff:

It's Installation Step 14: Customize the Header Menu

Thanks,

Anne

28 Aug 2013, 4:27 PM
#137
jeffery_schenk avatar

jeffery_schenk

New Zenner

Join Date:
Jul 2013
Location:
Cloquet, Minnesota, United States
Posts:
9
Plugin Contributions:
0

Re: Cambridge Pro Template Support Thread

picaflor-azul:

It's Installation Step 14: Customize the Header Menu

Thanks,

Anne

Anne:

What do I need to change in the following code?

 <!--bof shop by brand   -->
        <div class="dropdown_1column">
            <div class="col_1 firstcolumn">

          <ul >
           <?

$show_manufacturers= true;

// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/

// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',false);

if ($show_manufacturers) {

// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}

$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);

if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;

// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }

while (!$manufacturer_sidebox->EOF) {
  $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
  $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
  $manufacturer_sidebox_array[] =
	array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
		  'text' => DISPLAY_MANUFACTURERS_IMAGES ?
			zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
			$manufacturer_sidebox_name);
  $manufacturer_sidebox->MoveNext();
}

}
} // $show_manufacturers
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
?>
</ul>
</div>
</div>
</li><!-- eof shop by brand -->

Thanks,

Jeff

28 Aug 2013, 4:41 PM
#138
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Cambridge Pro Template Support Thread

Excellent template and, as always with your work, the documentation is superb. There's one change I'd like to make and, so far, my efforts have resulted in me just screwing it up. I'd like a login link at the upper right like you have in your Bristol Lace template. Any help would be greatly appreciated!

The best way to learn is to try stuff. But, back it up first.

29 Aug 2013, 1:04 PM
#139
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

Jeffery Schenk:

Anne:

What do I need to change in the following code?

 <!--bof shop by brand   -->
        <div class="dropdown_1column">
            <div class="col_1 firstcolumn">

          <ul >
           <?

$show_manufacturers= true;

// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/

// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',false);

if ($show_manufacturers) {

// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}

$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);

if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;

// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }

while (!$manufacturer_sidebox->EOF) {
  $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
$manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
  $manufacturer_sidebox_array[] =
  array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
  	  'text' => DISPLAY_MANUFACTURERS_IMAGES ?
  		zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
  		$manufacturer_sidebox_name);
  $manufacturer_sidebox->MoveNext();
}

}
} // $show_manufacturers
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
?>
</ul>
</div>
</div>
</li><!-- eof shop by brand -->

Thanks,

Jeff

What are you trying to do?

Thanks,

Anne

29 Aug 2013, 1:43 PM
#140
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Cambridge Pro Template Support Thread

RescoCCC:

Excellent template and, as always with your work, the documentation is superb. There's one change I'd like to make and, so far, my efforts have resulted in me just screwing it up. I'd like a login link at the upper right like you have in your Bristol Lace template. Any help would be greatly appreciated!

In the includes/templates/cambridge_pro/common/tpl_header.php file, replace this:

<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
   
    <?php if ($_SESSION['customer_id']) { ?>
   <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
   <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
<?php
  } else {
   if (STORE_STATUS == '0') {
?>
     <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
        <?php } } ?>
</ul>
</div>


<div id="navMain1">
<ul>
  <li><img src="includes/templates/cambridge_pro/images/cart.png" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><span class="red"><?php echo $_SESSION['cart']->count_contents();?></span> item(s) - <span class="red"><?php echo $currencies->format($_SESSION['cart']->show_total());?></span></a> | </li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
        <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
   <?php }?>

</ul>
</div>



<br class="clearBoth" />
</div>
<!--eof-navigation display-->

with this:

<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
<?php } } ?>

                                                                                                
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.HEADER_ICON_CART ?>" alt="cart icon" class="cart-icon"  /><?php echo $_SESSION['cart']->count_contents();?> item(s) - <?php echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<?php }?>
</ul>
</div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->

And in the stylesheet.css file remove the display:none; that is on the navMain ul. You may have to do some css adjustments, moving the styles from the #navMain1 group to the #navMain group.

Thanks,

Anne