Results 1 to 8 of 8
  1. #1
    Join Date
    May 2006
    Location
    Pacific Northwest (Canada Jr.)
    Posts
    25
    Plugin Contributions
    0

    Default Product listing page - spacing within each box

    I am working on this v1.3.0 site:

    http://www.midnightskyfibers.com/ind...ain_page=index

    and working out the little things.

    My main issue today is finding a way to remove the extra space between the product's picture, its name, its price, and its "add to cart" button on these pages:

    http://www.midnightskyfibers.com/ind...index&cPath=70

    I looked through template pages and php pages and css definitions and all the places I could think of. It's probably an easy answer, so I came to the forums to look and see what I could find. After searching through all the threads I could possibly read for the day, I've decided I'm ready to start a new thread. I know it's probably answered on the forums somewhere, but MY EYES ARE BLEEDING after reading hundreds of threads.

    Ok, so in the HTML that's output by the variety of files that create ZenCart, I find this chunk of code that is the reason for my headache:

    Code:
    <div class="centerBoxContentsProducts centeredContent back" style="width:180px"><a href="http://www.midnightskyfibers.com/index.php?main_page=product_info&amp;cPath=70&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224"><img src="bmz_cache/8/82dd422ea1fc6c912b4efbb0322d2f1f.image.118x120.gif" alt="Mariam Tea Merry" title=" Mariam Tea Merry " width="118" height="120" /></a><br><h3 class="itemTitle"><a href="http://www.midnightskyfibers.com/index.php?main_page=product_info&amp;cPath=70&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224">Mariam Tea Merry</a></h3><div class="listingDescription"></div><br>$18.70<br /><br /><a href="http://www.midnightskyfibers.com/index.php?main_page=index&amp;cPath=70&amp;sort=20a&amp;action=buy_now&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224"><img src="includes/templates/midnight/buttons/english/button_buy_now.gif" alt="Buy Now" title=" Buy Now " width="102" height="22" /></a><br /><br /></div>
    So, I see a bunch of BREAK tags in the code that I can't find!

    Code:
    <div class="centerBoxContentsProducts centeredContent back" style="width:180px"><a href="http://www.midnightskyfibers.com/index.php?main_page=product_info&amp;cPath=70&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224"><img src="bmz_cache/8/82dd422ea1fc6c912b4efbb0322d2f1f.image.118x120.gif" alt="Mariam Tea Merry" title=" Mariam Tea Merry " width="118" height="120" /></a><br><h3 class="itemTitle"><a href="http://www.midnightskyfibers.com/index.php?main_page=product_info&amp;cPath=70&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224">Mariam Tea Merry</a></h3><div class="listingDescription"></div><br>$18.70<br /><br /><a href="http://www.midnightskyfibers.com/index.php?main_page=index&amp;cPath=70&amp;sort=20a&amp;action=buy_now&amp;products_id=188&amp;zenid=52234ca661ffc0662a117c7e5e7aa224"><img src="includes/templates/midnight/buttons/english/button_buy_now.gif" alt="Buy Now" title=" Buy Now " width="102" height="22" /></a><br /><br /></div>
    Would anyone like to help me with this? Please, I'm begging...
    Last edited by cupcake; 19 Jun 2006 at 03:55 AM. Reason: I am trying to make it spread that area that the code's showing up in, but I can't even figure that out. Maybe I should give up for the day.

  2. #2
    Join Date
    Aug 2005
    Posts
    62
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    Is it in here?

    /includes/modules/product_listing.php

    (or /includes/modules/YOUR_TEMPLATE_NAME/product_listing.php)

  3. #3
    Join Date
    Nov 2005
    Posts
    47
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    I would also like to change this, I looked in product_listing.php as lemuria suggested, but did not see any breaks. Anyone know?

  4. #4
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    That is what I am trying to get rid of also. I looked at the files you listed above on my cart. I cannot tell what I might change to fix it. Maybe the 180px part? I don't know.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Product listing page - spacing within each box

    You might look at the settings in the admin > configuration > all listing for a start.

    Most of these follow this convention:
    0= off
    1st digit Left or Right
    2nd and 3rd digit Sort Order
    4th digit number of breaks after

    Where you probably are interested in the 4th digit or number of breaks after value and probably Display Product Name for breaks after.

    You can also look at product listing and others for possible settings that will reduce the breaks/spacing.

    I was not positive what page I was viewing the product listing page or the product info page as you have altered the css or obtained a css file that is not distributed with Zen Cart.
    Zen-Venom Get Bitten

  6. #6
    Join Date
    May 2006
    Location
    Anywhere USMC points
    Posts
    368
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    Thanks Kobra! I think that might have done it for mine.

  7. #7
    Join Date
    Nov 2005
    Posts
    47
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    Hi, thanks for the suggestion! It hasn't seemed to work for the site I am working on (modtomodern.com/shop)

    I would like to remove the space between the product name and the product image, and even the break between price and "more info". Any suggestions? I tried changing some things in the css file but I wasn't able to fix it. Thanks!

  8. #8
    Join Date
    Jan 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: Product listing page - spacing within each box

    Quote Originally Posted by kobra View Post
    You might look at the settings in the admin > configuration > all listing for a start.

    Most of these follow this convention:
    0= off
    1st digit Left or Right
    2nd and 3rd digit Sort Order
    4th digit number of breaks after

    Where you probably are interested in the 4th digit or number of breaks after value and probably Display Product Name for breaks after.

    You can also look at product listing and others for possible settings that will reduce the breaks/spacing.

    I was not positive what page I was viewing the product listing page or the product info page as you have altered the css or obtained a css file that is not distributed with Zen Cart.
    I am also having problems with the extra <br> tags that I find the page renders, but I do have those tags in the page (product_listing.php) I have tried the above methods to fix it and it is still not working.

    Here is a link to page I am having problems with.

    I basically need the ADD TO CART BUTTON to align with the Price. Both of these items are in div tags, price floating left, button floating right, but they will not line up because of the extra <br> tag the page renders. Also, I am using the Column Layout Grid module, but I don't think that is causing an issue with this particular matter. When I take out that <br> tag in Firebug, everything lines up perfectly.

 

 

Similar Threads

  1. spacing between aspects of product listing page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Jun 2010, 05:01 PM
  2. product listing page problem, decreasing spacing.
    By klsi168 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jun 2010, 03:06 PM
  3. Spacing between pictures on product listing page?
    By stlnyc in forum Customization from the Admin
    Replies: 1
    Last Post: 22 Apr 2009, 06:51 PM
  4. Spacing on product listing page
    By goodmorning in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Sep 2006, 06:14 PM
  5. no spacing between product listing in centre box
    By pilot in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2006, 09:53 AM

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