Zen Cart Logo
Forums / Addon Templates / Cherry Zen Template Support Thread

Cherry Zen Template Support Thread

Views: 845,059

Results 1,301 to 1,320 of 3,245
24 Apr 2008, 11:21 PM
#1301
dannie avatar

dannie

New Zenner

Join Date:
Dec 2007
Posts:
15
Plugin Contributions:
0

Cherry Zen Template Support Thread

Jettrue,

Is there a way to remove or reduce the space that surrounds the template?

I would like to remove the space above the main nav and outside the left and right sideboxes. Can it be removed or reduced to a minimum value? I was looking for the obvious quick solution like (template spacing=1px). Can you point me in the right direction?

Thank you for taking the time to put together a wonderful template.

Dannie

MySite Link

25 Apr 2008, 2:25 AM
#1302
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

Dannie:

Jettrue,

Is there a way to remove or reduce the space that surrounds the template?

I would like to remove the space above the main nav and outside the left and right sideboxes. Can it be removed or reduced to a minimum value? I was looking for the obvious quick solution like (template spacing=1px). Can you point me in the right direction?

Thank you for taking the time to put together a wonderful template.

Dannie

MySite Link

To increase the width of the template, open up includes/templates/cherry_zen/templates/stylesheet.css and find the section that starts with:

/* site and main content width section */

and change the width of #nw.

The space at the top is controlled by the margin-top for body:

body {
font-family: "Lucida Grande", tahoma, verdana, arial, helvetica, sans-serif;
font-size:73.5%;
margin-top:20px;
}

25 Apr 2008, 2:26 AM
#1303
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

onesimpleman:

Tried that and changed css back to 0 and it still breaks in IE7.
Thank you for the help .....

looking into a fix, sorry short on time at the moment.

25 Apr 2008, 5:39 PM
#1304
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

hi jettrue;

i have the admin feature show cart after adding a product set to false so the customer stays on the product page, but the box that says "successfully added product to the cart... doesn't show anywhere. how can i get that box to show at the top of product page (middle column)?

thanks!

25 Apr 2008, 8:55 PM
#1305
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

gsdcypher:

hi jettrue;

i have the admin feature show cart after adding a product set to false so the customer stays on the product page, but the box that says "successfully added product to the cart... doesn't show anywhere. how can i get that box to show at the top of product page (middle column)?

thanks!

This is exactly what the template is designed to do (and works fine on my test site). Make sure that your includes/templates/cherry_zen/common/tpl_main_page.php still has this section (approx. line 77-91):

<div class="contentWrap"> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else {

}
?>

25 Apr 2008, 9:45 PM
#1306
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

yep it seems to be there. this is the code from lines 73-101. also when there is no item in the cart the side columns touch the nav bar (no gap). but when you add an item to the cart, it creates a small gap between the side columns and the nav bar... maybe that has something to do with it???

 
 /**
  * prepares and displays header output
  *
  */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_header = true;
  }
  require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
  <div id="contentMainWrapper">
    <div id="contentMainWrapperb">
      <div class="outer">
        <div class="inner">
          <div class="float-wrap">
            <div id="content">
              <div class="contentWrap">
     <?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {
}
?>

thanks!

26 Apr 2008, 12:37 AM
#1307
tbsm avatar

tbsm

New Zenner

Join Date:
Sep 2007
Posts:
65
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

Hi there, sorry to bother you again..

Just having a little issue with the shopping cart and specials sideboxes, the product names are displaying all in one line when the names are long and it is causing the side boxes to widen and then drop down below the main content. I am running 170px width and, since you helped me last time, it has been fine without hassle.

26 Apr 2008, 1:37 AM
#1308
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

gsdcypher:

yep it seems to be there. this is the code from lines 73-101. also when there is no item in the cart the side columns touch the nav bar (no gap). but when you add an item to the cart, it creates a small gap between the side columns and the nav bar... maybe that has something to do with it???

/**

  • prepares and displays header output

*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_header = true;
}
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>

<div id="contentMainWrapper"> <div id="contentMainWrapperb"> <div class="outer"> <div class="inner"> <div class="float-wrap"> <div id="content"> <div class="contentWrap"> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> ``` > > thanks!

Do you have text defined for the add to cart message, in includes/languages/cherry_zen/english.php

Something like this?
define('SUCCESS_ADDED_TO_CART_PRODUCT', 'Successfully added Product to the cart ...');

26 Apr 2008, 2:57 AM
#1309
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

yep lines 387 to 390

// for all pages except where multiple add to cart is used:
  define('SUCCESS_ADDED_TO_CART_PRODUCT', 'Successfully added Product to the cart ...');
// only for where multiple add to cart is used:
  define('SUCCESS_ADDED_TO_CART_PRODUCTS', 'Successfully added selected Product(s) to the cart ...');

weird huh?

26 Apr 2008, 3:14 AM
#1310
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

How do you change the grey i nthe side boxes under like categories

26 Apr 2008, 12:55 PM
#1311
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

gsdcypher:

yep lines 387 to 390

// for all pages except where multiple add to cart is used:
define('SUCCESS_ADDED_TO_CART_PRODUCT', 'Successfully added Product to the cart ...');
// only for where multiple add to cart is used:
define('SUCCESS_ADDED_TO_CART_PRODUCTS', 'Successfully added selected Product(s) to the cart ...');

>  
> weird huh?

Well, then I'm not sure what the issue is, but I'm pretty sure its not the template. Maybe if you ask in the general forum, someone might have more advice for you. I've seen an error message pop up when I've tried adding a product to your cart without choosing an option, so we know the code "can" work, but for some reason its not working for the cart. I would maybe also suspect some of the extra scripting you have on your site might be conflicting.
26 Apr 2008, 2:54 PM
#1312
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

hi jettrue;

thanks. i will ask in the general forum. any idea on which files to scrutinize for the problem?

also, any idea why the gap shows between the side columns and the nav bar after adding an item to the cart (but not before)? and how to change that???

thanks.

27 Apr 2008, 6:40 PM
#1313
sunny747 avatar

sunny747

New Zenner

Join Date:
Feb 2007
Posts:
24
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

HI all,
any idea how to increase the product image width/height in the homepage? i tried in the admin-configuration-images.....
but no luck.

27 Apr 2008, 7:54 PM
#1314
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

sunny747:

HI all,
any idea how to increase the product image width/height in the homepage? i tried in the admin-configuration-images.....
but no luck.

Are you talking about the category imagea? That is done where you were, change:

Subcategory Image Height

IF you are talking about the "featured" or "New products" on the home page, those are changed by the:

Small Image Height

28 Apr 2008, 4:37 AM
#1315
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

in the header search, how are people supposed t osearch if there is no search button there just the field

28 Apr 2008, 10:04 AM
#1316
ashton0603 avatar

ashton0603

Zen Follower

Join Date:
May 2007
Posts:
109
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

jettrue:

Many things (including fonts) can be adjusted in the stylesheet, includes/templates/cherry_zen/css/stylesheet.css

This is where you'll REPLACE your current #nw:

#nw {
text-align:center;
vertical-align:top;
margin:0 auto;
}

> 
> ```
#nw {
    text-align:left;
    vertical-align:top;
    margin:0 auto;
    }
```You can change the image sizes in your admin, under "configuration", "images".
> 
> 
> 
> eh? I have no idea what you mean by the above, LOL.

Thank you so much. Turns out I had to also do the same thing for the css stylesheet backup for it to work but it did work. Again thank you for that.

What I was asking earlier was about link exchanging. I have a page where my banner is displayed for people to add my banner to their site. My problem is that when I enter in the code it only shows my banner and I want the code to show up as well as the banner. 
example: <http://www.zen-cart.com/index.php?main_page=infopages&pages_id=12>

how do I get just the code to show up? This is what I currently have:

<http://personalized2perfection.net/index.php?main_page=page&id=17&chapter=0>
28 Apr 2008, 11:15 AM
#1317
ashton0603 avatar

ashton0603

Zen Follower

Join Date:
May 2007
Posts:
109
Plugin Contributions:
0

Re: Cherry Zen Template Support Thread

Not sure if I should post this here but how does one have text next to a pic?

Let's say I want a picture to be in the left side and on the right of it I want text.

as of now I can only have a picture and then text underneath forcing me to have to center the pic so it looks alright.

http://personalized2perfection.net

there is a pic on my home page that I want to the side (pic of woman and children) with the comment off to the side of the pic.

I also tried to make my side boxes larger but only the blue titles get larger. I try to extend the grey and it will only disappear. What I am trying to do is have each category on one line instead of two...same site:

http://personalized2perfection.net
on the side personalized gifts for kids is on two lines instead of one. is there a way to make the text smaller or make the grey larger without making it disappear?

28 Apr 2008, 11:25 AM
#1318
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

CnTGifts:

in the header search, how are people supposed t osearch if there is no search button there just the field

Most people know that you enter the text and press enter, many sites are forgoing the search button now, most notably http://www.apple.com

28 Apr 2008, 11:38 AM
#1319
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

ashton0603:

Thank you so much. Turns out I had to also do the same thing for the css stylesheet backup for it to work but it did work. Again thank you for that.

What I was asking earlier was about link exchanging. I have a page where my banner is displayed for people to add my banner to their site. My problem is that when I enter in the code it only shows my banner and I want the code to show up as well as the banner.
example: http://www.zen-cart.com/index.php?main_page=infopages&pages_id=12

how do I get just the code to show up? This is what I currently have:

http://personalized2perfection.net/index.php?main_page=page&id=17&chapter=0

Enter the "<" symbol as < and the ">" symbol as >

28 Apr 2008, 12:02 PM
#1320
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Cherry Zen Template Support Thread

ashton0603:

Not sure if I should post this here but how does one have text next to a pic?

Let's say I want a picture to be in the left side and on the right of it I want text.

as of now I can only have a picture and then text underneath forcing me to have to center the pic so it looks alright.

http://personalized2perfection.net

there is a pic on my home page that I want to the side (pic of woman and children) with the comment off to the side of the pic.

I also tried to make my side boxes larger but only the blue titles get larger. I try to extend the grey and it will only disappear. What I am trying to do is have each category on one line instead of two...same site:

http://personalized2perfection.net
on the side personalized gifts for kids is on two lines instead of one. is there a way to make the text smaller or make the grey larger without making it disappear?

Hi,

To get an image to the left, with text to the right, you can add align="left" to the image:

<img src="imagename.jpg" alt="alttext" width="40" height="50" align="left" />

To make the sideboxes bigger, you also have to increase the width of the grey image background behind the sideboxes (includes/templates/cherry_zen/images/sidebox.gif) Open it in an image editing software, enlarge it, and re-upload. Read the readme.txt for FULL details on enlarging the sideboxes (there's other changes that need to be made as well).