as for the 404 error check and make sure the following file is in
includes/templates/template_default/tpl_advanced_search_default.php
The Default text should be found in
includes/languages/english/comstock/header.php
Printable View
Hello. Thank's Clyde for great template. I do have one problem now, and I'm not sure if it's related to the template, but if someone has a minute to look to my site http://keyton.si and see my problem, I would be gratefull.
The thing is, that I don't want featured products and specials, so I don't have them, but horizontal divison line stil shows up. I checked the pgaes source code, and I think this is what is displayed.
I need to remove them, because I really don't want the three of them showing up there.
Any help is appreciated.
Thank you Clyde, but it didn't help. I stil have those three lines between the botom of the text and images on my index site.
I got rid of one line, with setting values to 0 in admin -> configuration -> index listing for all, but new products.
open includes/templates/comstock/templates/tpl_modules_products_new_listing.php
find the following:
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td colspan="3"><hr /></td>
</tr>
delete the highlighted portion.
save the changed file and upload to your server
OK, I lost one by deliting <hr /> from tpl_index_default.php file, so now I only have one horizontal line between text and images, and I'm happy with it.
Thank you again Clyde. You helped me a lot with everything.
Hello Cylde
I was wondering if it is possible to add mouse over pop up images to each categeory or product on catergory list.
thanks
Thank you for the reply
I should clarify , I meant mouse tip on category listing text to generate pop up image of that category or product on category list menu.
thank you
Its probably possible using some type of javascript in the product listing page.
Image handler2 already has this built in to pop-up a larger image when you mouse over an image however.
The template only styles the look of your site. you'd need to look at other mods that might achieve what you're trying to do.
I have just installed comstock to zen cart v1.3.8a, and verified that all files have been copied into proper locations and proper permissions have been set. When I try to preview comstock, I see these error messages:
You don't have permission to access /mystore/includes/templates/comstock/images/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
So, what error have I made?
Will you take a look at this site and let me know what's wrong with the What's New Sidebox?
http://www.blossomtradingcompany.com/shop/
It appears to try to open 3 sideboxes with the the setting for the What's New.
Also - the footer seems to be hiding the Powered by.... on the lower right hand side.
Thanks for your guidance.
Tina
Thats a problem with the default sideboxes for whats new, featured and specials.
the Zen team is aware of this and hopefully it will be corrected in version 1.4.
This should do the job of fixing things.
just unzip the file and upload the entire includes folder to your server.
Attachment 4070
I didn't see any hiding of the powered by zen cart.
Sure did! Thanks so much. :hug:Quote:
This should do the job of fixing things.
The Copyright and Powered by are hidden in IE7, but fine in Firefox.
Tina
I made the change - no difference. Back to the drawing board.Quote:
height: 95px;
Tina
Try this
just unzip the file and upload the entire includes folder to your server.
Attachment 4074
:jump: Yeah! Happy Dance! That fixed the other ie issue I was having too!Quote:
Try this
One last thing (please don't hate me...) I would like to change the font color on the Privacy Notice In the EzPage Nave bar - but I can't get it to work!
Thanks,
Tina
Ok. That did it. I was [FONT=Comic Sans MS]this[/FONT] close when I changed this section of the stylesheet....Quote:
Find this declaration in the stylesheet.css
#navEZPagesTop a {
color: #fff; /*change this to suit*/
}
Thanks so much.Quote:
#navEZPagesTop {
margin: 0;
padding: 6px 0 6px 0;
background: url(../images/tier2_bg.gif) repeat-x;
font-size: 1em;
font-weight: bold;
color: #771b5a;
BTW - I love the way the sideboxes go away on the products pages! That is way kewl!!!
Tina
How do get the banner to be on the main page only, you can see my test site here www.lextechs.com/Testsite what i am trying to do is get a banner or have banner 3 only show on the main page and not the other pages
NOTE: This tip can be used with any template!
Open includes/templates/comstock/common/tpl_main_page.php
Find the following section of code at around line(s) 112 - 115
and replace with the following section of codePHP Code:
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
PHP Code:
<?php
if ($this_is_home_page && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
You the man that worked like a charm thanks for you help
Question- Link is ip because site isn't live but here it is:
http://74.52.222.34/~exclusiv/index.php?main_page=
I JUST LOVE this template but the color scheme doesn't match well... so I want to fine tune it only. The layout rocks and is everything I hoped for but I need help with the following:
(NOTE- this is only the 3rd template i have installed first was success, 2nd was failure -trying to get fixed and this one was a success so I am new to this I guess is the point)
1. I would like to remove the gray banner near the top behind the graphic
2. I would like to change the colors of the boxes,
3- I would like to make the banner go across the top
4- add back ground
Here is our current site on a horrible cart: www.exclusivelyknd.com but want to try to somewhat mimic the site as far as color scheme etc....
I appreciate any help and if I am asking in the wrong place please send me packing (with a map to the right location of course lol)
Thanks!
Brandy aka newbie!
(I have been operating a zen cart www.luvingmammadiapers.com for a year but these new sites are the first i am doing the building of it... the other was built for me and a big headache :( )
1. I would like to remove the gray banner near the top behind the graphic
open includes/templates/comstock/css/stylesheet.css
find the following declaration and delete the highlighted portion
Save the file and upload to your server.Code:#navAccountWrapper {
margin: auto;
background: url(../images/header_bg_2.jpg);
font-weight: bold;
color: #ccccff;
height: 26px;
width: 907px;
}
2. I would like to change the colors of the boxes,
The are graphics which you will have to change; they are located in
includes/templates/comstock/images/
sidebox_content_bg.gif
sidebox_header_bg.gif
You will need to edit the images in your graphics editor in order to change the colors.
3- I would like to make the banner go across the top
open includes/templates/comstock/css/stylesheet.css
find the following declaration:
and replace with the following:Code:#logoWrapper {
margin: 0 auto;
padding: 0;
width: 907px;
height:100px;
background: url(../images/header_bg.jpg) no-repeat #ccccff;
}
Find the following declaration:Code:#logoWrapper {
margin: 0;
padding: 0;
height:144px;
background: url(../images/header_bg.jpg) no-repeat #ccccff;
}
and replace with the following:Code:#headerWrapper {
margin: 0 auto;
padding: 0;
background: #ccccff;
}
4- add back groundCode:#headerWrapper {
margin: 0;
padding: 0;
background: #ccccff;
width:100%;
}
open includes/templates/comstock/css/stylesheet.css
add the highlighted portion to the body declaration.
save the file and upload to your server.Code:body {
margin: 0;
padding: 0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background: url(../images/your_background_image.gif) #ccccff;
}
Hope this helps
holy cow you totally rock!!!
I chose 2 of your templates because I LOVED THEM and now i am thankful... YOU ARE GOOD!
On the one I need to modify in my graphics program- i don't have one do you recommend a certain one?
off to make those changes :)
You can find a list of FREE programs here
What color do you want the boxes to be?
a blue shade that matches the other blues in the scheme...
my other site-
luvingmammadiapers.com has all matching schemes and i like that :)
Try these: just unzip the file and upload the entire includes folder to your server.
Attachment 4295
IT LOOKS SO GOOD!!!!! I am so excited.
OK NOW... as if you didn't do enough for me but if you look again there are white backgrounds around the boxes how do I change that?
2nd- the red/gray box is that a graphic or can I just change the color.....
ok lastly- this i think is a total negative but is there a way to get the graphics buttons to match too?
I cannot BELIEVE how much I love my site now thank you so much!!!
there are white backgrounds around the boxes how do I change that?
open includes/templates/comstock/css/stylesheet.css and change the following declarations as indicated by the highlighted portions.
#navColumnOne, #navColumnTwo {
padding-bottom: 20px;
background-color: #fff;/* change this to whatever color you want for the sidebox columns*/
}
#logoWrapper {
margin: 0;
padding: 0;
height:185px;
background: url(../images/header_bg.jpg) no-repeat #ccccff;
}
Save the file and upload to your server
2nd- the red/gray box is that a graphic or can I just change the color.....
They are graphics
is there a way to get the graphics buttons to match too?
I can run a new set of buttons as well as the two graphics mentioned above.
Just unzip the file and upload the entire includes folder to your server
Attachment 4296
OK updated all that - It didn't update the gray buttons at the top was that my error?
I am new to this so i am never sure if its me or what lol...
Thanks Clyde- Actually you made my admin template too which i love. You are one talented guy.
This should fix the button issue plus a couple of other minor faults I noticed.
Just unzip the file and upload the entire includes folder to your server.
Attachment 4298
The only admin template I'm aware of is one called green tea (and that's not mine)
oh it must have been comstock it was talking about in my admin i saw your name again but i thought it was the admin template- i think it's next level zen admin i got lol sorry!
Thanks Clyde!
that did the trick Thanks!
I think it looks GREAT!!! I am so happy- my other site i did ocean front and thats a whole different can of worms... i think i broke it lol... will go post that over there :)
What part of the css can i adjust to add the "background image" to make it go behind the header/logo?
i need a termonology cheat sheet i swear!
tired of me yet?
Ok that fixed part of that box how do i do the 2nd part?
also, Search box says :header_search_def. how do i get rid of it...
open includes/templates/comstock/css/stylesheet.css
find this declaration and delete the highlighted portion
#logoWrapper {
margin: 0;
padding: 0;
height:185px;
background: url(../images/header_bg.jpg) repeat-x #ccccff;
position:relative
}
Save the file and upload to your server
---
Open includes/languages/english/comstock/header.php
Either add or modify these define statements
// header Search Button/Box Search Button
define('HEADER_SEARCH_BUTTON','Search');
define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');
Save the file and upload to your server
FIXED I AGAIN ! did something stupid but your instruction helped me figure it out so now it looks PERFECT.....
you rock Clyde!
If you go to my work in progress site.
http://www.thedancinggecko.com/shop
and then look at the words "New Products for September". Only in Explorer the bottom of the words are cut off. Such as the 'p' in September.
If you click on my category called supplies you will see that all of the 'p's' and the 'y' are cut off.
Again , only in Explorer, Fox and the new Chrome are fine.
Do I need to enlarge the gray box. if so How?
Thanks
Thanks for the reply.
Both my wife and I are using IE7 and it is cut off. Hmmmmm
Anyway I will play with the numbers and see what happens.
I don't plan to make too many changes as this is waaaay over my head.....
"Honey, I have some jewelry that I would like to sell..."
"Sure, I have seen some free shopping carts......."
But it at least keeps the cobwebs from forming.....
And Clyde, I must say that I tried a few other templates and yours is one of the best! I like the looks (If I don't mess it up too bad) and the layout.
And then to top it off, you come right back with a answer to my question!!!!:clap:
Thanks! I am sure that I will have a few more ??'s but hope to not be to much of a pest.
From another 'Jones'
My menu categories are not showing at the top, despite my having enabled the category tabs in admin - config- layout.
Is there a special thing I need to do with comstock to have them show?
From the readme_comstock_template.txt file
STYLESHEET SETTINGS:
The top horizontal category navigation, and the footer IP address are set to display none by default.
To use comment out this declaration:
and un-comment the following declarations:Code:#navCatTabsWrapper {
display: none;
}
#siteinfoIP {
display: none;
}
Code:/* #navCatTabsWrapper {
margin: 0 auto;
background: url(../images/navbar.gif) repeat-x;
font-weight: bold;
color: #ffffff;
}*/
Thanks so much!
Those settings in the stylesheet are the only thing that keeps them from showing - that is unless you have turned it off in admin
admin -> configuration -> layout settings -> Categories-Tabs Menu ON/OFF
or open includes/templates/comstock/common/tpl_header.php
find the following section and make sure it isn't commented out
<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
Can you post this section of code from your copy of tpl_header.phpCode:<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
Here it is:
Thanks for your help :smile::smile:Code:<!--bof-optional categories tabs navigation display-->
<!--<?php // require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>-->
<!--eof-optional categories tabs navigation display-->
Oh hell, it's commented out isn't it! My editor didn't grey out the code. Let me uncomment it and see what happens....
Even uncommenting didn't do it. arg.
It's an adult site, just warning in advance..
http://adarkdesire.com/zen
I'm working on moving my oscommerce site (http://adarkdesire.com/store ) to zen.
Hi,
First of all thx for the template.
I'm customizing the template a bit ( mainly changing colors).
However I can't seem to find where I can change the colors for the product categorie sidebox.
I changed the background images, but the buttons for the products remain the same, (the ones changing from light to dark grey on mouse over). (I would also like to remove the white line between productcategories)
I checked the stylesheet over and over, but I seem to be overlooking it. (or are they buttons?, I can't see to find them there either)
Thx in advance,
Sam
Thx a lot, I didn't look there!!
One happy fellow now.
I have been using the Comstock v2.0 template for quite awhile - its great. I notice tht you have posted ver 2.0.1 . I did not want to risk overwriting some files that I had customized. Could you advise if the new version only modifies tpl_main_page.php, tpl_header.php and tpl_footer.php .
Thanks in advance for your help
Features:
Full width 3 column display
Colors: Styled in Silver and White.
Customized button set included.
Per-page CSS stylesheets to style individual pages.
Redesigned Product Info page.
NEW Date in Navigation Bar.
NEW Order Steps (tableless) installed.
NEW Better Categories Sidebox installed.
Tested using Firefox, IE7, Opera, Safari.
Updated installation instructions
Updated un-install instructions
Sorry to bother you again - I installed ver 2.0.1 over my ver 2.0 - Few minor issues, but nothing major. Except, the price on the individual items page is a small font - smaller than before. Probably a css issue, but I have no idea how to fix it. Take a look at www.a-gscaletrains.com and you will see what I mean. Keep in mind, this site is still being developed. Thanks
ver 2.0.1 is up and running www.a-gscaletrains.co (still in development) - I like it better than 2.0. My only issue is that I liked the single column display on the product info page of ver 2.0 better. ( www.bobkatgifts.net ) . Things just seem to fit better. Is there some way I can change the display to be like ver 2.0. I am not referring to the sideboxes - they are fine. Just the display area for individual products.
Thanks and Happy Holidays.
thanks - could you take a moment to look at the two sites and see what I mean. Thanks
Unable to access www.a-gscaletrains.co so I can't check the differences.
sorry for the typo - it is www.a-gscaletrains.com
:oops:
Open includes/templates/comstock/common/tpl_main_page.php
find and compare this section of code:
Code:// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'specials,products_new,featured_products,products_all')) ) {
$flag_disable_right = true;
}
if ($current_page_base == 'index' and $cPath > '0' ) {
$flag_disable_right = true;
}
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
sorry - no go. The files are correct. I thought maybe I messed something up on the overwrite of 2.0. But I set up another directory with a clean install - same output display. To bad - I liked the improvements that you made.
Am using Comstock Ver 2.01 - works great - how can I edit out the search box on the top right side of the header. I thought it was in header.php file - but that did not work. Thanks again.
If you want to disable it do so in
admin -> tools -> layout boxes controller -> sideboxes/search_header.php (turn it off)
If you wish to edit something then two files are involved
includes/modules/sideboxes/comstock/search_header.php
and
includes/templates/comstock/sideboxes/tpl_search_header.php
I am using the comsock template, but the one area I have under "more information" does not show up in IE, but does in Firefox. I can mouse over it in IE and it shows a link (as well as the top half of the wording), but thats all.
Any ideas?
Please provide a URL for your site.
Whic version of IE
And Please post further questions about the Comstock Template in the support forum for that template
I am using v7. The site (which is now temp active and not in maint mode) is http://www.nationaltint.com/. If you go to kits and pick either product, the verbiage is cut off as well. I don't have this issue in Firefox
It appears that your product info pages are not completing. and this may be causing the problem you are describing for IE.
That is, they stop immediately after the product information but do not complete all the way through to the footer information.
This is happening in both FF and IE.
without seeing the code you have for tpl_product_info_display.php, I can't be sure where or what might be causing the issue.
Would you like to see the code? If so, do you want it posted here or via email?
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=product_info.<br />
* Displays details of a typical product
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_product_info_display.php 5369 2006-12-23 10:55:52Z drbyte $
*/
//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>
<div class="centerColumn" id="productGeneral">
<!--bof Form start-->
<?php echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . "\n"; ?>
<!--eof Form start-->
<?php if ($messageStack->size('product_info') > 0) echo $messageStack->output('product_info'); ?>
<!--bof Category Icon -->
<?php if ($module_show_categories != 0) {?>
<?php
/**
* display the category icons
*/
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?>
<!--eof Category Icon -->
<!--bof Prev/Next top position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 1 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next top position-->
<div id="mainProductBox">
<!--bof Main Product Image -->
<div id="imagebox">
<?php
if (zen_not_null($products_image)) {
?>
<?php
/**
* display the main product image
*/
require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
}
?>
</div>
<!--eof Main Product Image-->
<!-- bof Product Box -->
<div id="productbox">
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
<!--bof Product Price block -->
<p id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></p>
<!--eof Product Price block -->
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription" class="productGeneral"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
<!-- <?php // echo '<li>' . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($_GET['products_id'])) . '</li>'; ?> -->
<?php // Additional products fields. ?>
<br />
<?php
while (!$product_info->EOF) {
if (isset($product_info->fields['test_field']) && !empty($product_info->fields['test_field']) && $product_info->fields['field_name'] == "test_field" && $product_info->fields['field_status'] == 2) {
echo TEXT_ADDITIONAL_PRODUCTS_TEST_FIELD_TITLE . '<li>' . $product_info->fields['test_field'] . '</li><br />';
} // End of if statement.
if (isset($product_info->fields['test_field1']) && !empty($product_info->fields['test_field1']) && $product_info->fields['field_name'] == "test_field1" && $product_info->fields['field_status'] == 2) {
echo TEXT_ADDITIONAL_PRODUCTS_TEST_FIELD1_TITLE . '<li>' . $product_info->fields['test_field1'] . '</li>';
} // End of if statement.
$product_info->MoveNext();
} // End of while statement.
?>
<br />
<?php // End of additional products fields. ?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<!--eof Product details list -->
<!--bof free ship icon -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon -->
</div>
</div>
<br class="clearBoth" />
<hr />
<div id="productPurchaseBox">
<div id="buybox">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
</div>
<div id="QuantityDiscountsBox">
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) { ?>
<?php
/**
* display the products quantity discount
*/
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
<?php
}
?>
<!--eof Quantity Discounts table -->
</div>
</div>
<br class="clearBoth" />
<!--bof Additional Product Images -->
<?php
/**
* display the products additional images
*/
require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->
<!--bof Prev/Next bottom position -->
<?php if (PRODUCT_INFO_PREVIOUS_NEXT == 2 or PRODUCT_INFO_PREVIOUS_NEXT == 3) { ?>
<?php
/**
* display the product previous/next helper
*/
require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
<?php } ?>
<!--eof Prev/Next bottom position -->
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof Reviews button and count-->
<?php
if ($flag_show_product_info_reviews == 1) {
// if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
if ($reviews->fields['count'] > 0 ) { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
<?php } else { ?>
<div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php
}
}
?>
<!--eof Reviews button and count -->
<!--bof Product date added/available-->
<?php
if ($products_date_available > date('Y-m-d H:i:s')) {
if ($flag_show_product_info_date_available == 1) {
?>
<p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p>
<?php
}
} else {
if ($flag_show_product_info_date_added == 1) {
?>
<p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p>
<?php
} // $flag_show_product_info_date_added
}
?>
<!--eof Product date added/available -->
<!--bof Product URL -->
<?php
if (zen_not_null($products_url)) {
if ($flag_show_product_info_url == 1) {
?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_url
}
?>
<!--eof Product URL -->
<!-- BOF: Cross-Sell information -->
<?php
// THIS CODE WOULD BE ADDED INTO YOUR TPL_PRODUCT_INFO_DISPLAY.PHP WHEREVER YOU WANT TO DISPLAY THE CROSS_SELL BOX:
require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
?>
<!-- EOF: Cross-Sell information -->
<!--bof also purchased products module-->
<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
<!--eof also purchased products module-->
<!--bof Form close-->
</form>
<!--eof Form close-->
<br class="clearBoth" />
</div>
Delete this section of code:
Code:<!-- BOF: Cross-Sell information -->
<?php
// THIS CODE WOULD BE ADDED INTO YOUR TPL_PRODUCT_INFO_DISPLAY.PHP WHEREVER YOU WANT TO DISPLAY THE CROSS_SELL BOX:
require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
?>
<!-- EOF: Cross-Sell information -->
OK, I deleted it, but the formatting has not changed. I also have an IE stylesheet, could the problem be in there?
I discovered that if I put a price in for the product and look at it in IE, the text comes out OK. But for right now, that product is in development. So I go back to the original problem of having the product name being shaved off the bottom.
Clyde,
I would love to say that it worked, but I am still having the same issue. I changed it from having a price to call for price. The text to the upper right looks OK, but the words "larger image: are cut off at the bottom.
Same deal Clyde. I am going to keep trying to work on this problem as your template is by far my favorite. You have done an outstanding job with this.
clydejones, I love your layout. I am using comstock. I want to make the left nav a little wider. I know I will have to edit the images / coding. I have no problem with the images.
But for the coding, can you point me to the right direction?
like in the css, which section to edit. I want to -20px from the center and +20px to the left nav.
It would save me ALOT of time looking all over in the codes.
Thank you.