Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2006
    Posts
    71
    Plugin Contributions
    0

    Default centerboxwrapper trouble

    I'm trying to adjust the products so they come in 2 on the same line. I am using DOM tools and i can see that each product is taking up too much size in width and i cant find where to make that smaller. My site is www.driventorise.com/test. thanks in advance to anyone who can help

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: centerboxwrapper trouble

    Find this style in your stylesheet
    /*The main content classes*/
    #contentColumnMain, #navColumnOne, #navColumnTwo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .alert {
    vertical-align: top;
    padding: 1em;
    }
    and remove the .centerBoxContentsNew. The problem appears to be that each of your centerbox product blocks has a content width of 50% (claculated by Zen Cart because there's two of them, but then the additional padding pushes the width of each beyond what the browsers are prepared to overlook when crushing oversized images oin the same line.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jun 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: centerboxwrapper trouble

    Ok, i did that, when you saw the page, i had 2 products. each on their own line. i added another product and it automatically put 2 on the line and the 3rd was on its own line. i then added another product and it now has 2 on the first line, 1 on the next line, and the other on a 3rd line. i took out that .centerBoxContentsNew. it is still messing it up.

    Also, when you click on the "Sits at Waist" category, you see how it puts all the pictures directly under one of them. Is there a way I can add a border around each product or put a <br> below each?

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: centerboxwrapper trouble

    I'm afraid that it looks perfect to me in Internet Explorer, Firefox and Opera. Which browser and which version are you using?

    Maybe I'm being dumb, but I can't see a "Sit at Waist" category at all.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jun 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: centerboxwrapper trouble

    yea that is weird. it looks good now. im sorry, its a subcategory under jeans. you'll see what im talking about there being no space between each product

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: centerboxwrapper trouble

    No matter. The products on top of each other is normal, but you could spread them a littel by adding the following to your stylesheet
    td.productListing-data {padding: 10px 0}
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: centerboxwrapper trouble

    awesome, one last thing

    how do i remove the words below the subcategory pictures (the oval shapes (sits at waist & low rise))

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: centerboxwrapper trouble

    /includes/templates/YOURTEMPLATE/templates/tpl_modules_category_icon_display.php
    line 14 says:
    PHP Code:
    <div align="<?php echo $align?>" id="categoryIcon" class="categoryIcon">
    <?php echo '<a href="' zen_href_link(FILENAME_DEFAULT$cPath_new'NONSSL') . '">' 
    zen_image(DIR_WS_IMAGES 
    zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id'])),
    zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']), CATEGORY_ICON_IMAGE_WIDTHCATEGORY_ICON_IMAGE_HEIGHT) . 
    '<br />' zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']) .  '</a>'?></div>
    the very last part of that says:
    PHP Code:
    '<br />' zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']) .  '</a>'?></div> 
    replace that last bit with:
    PHP Code:
    '<br />' '</a>'?></div> 
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jun 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: centerboxwrapper trouble

    much appreciated, it makes sense to me, but it didn't work

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: centerboxwrapper trouble

    You need to create and edit an includes/modules/YOUR_TEMPLATE/category_row.php file by removing the text marked in red below (lines 38-39)
    $list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Border for centerBoxWrapper
    By jabbawest in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 26 Nov 2010, 05:03 PM
  2. Customising the centerBoxWrapper
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Jul 2010, 02:06 PM
  3. Trouble adding new products(class=centerBoxWrapper id=whatNew) at bottom of homepage
    By Jerry5763837 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Jun 2009, 02:24 AM
  4. Where is centerBoxWrapper?
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 5 Jul 2006, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg