Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Product display spacing

    I need to add more white space between product listings (for example, when all the products in a specific category are shown). I also want to add a blank line after the 'Displaying 1 to n (of n products)' phrase. I've spent a couple of hours now trying to find the source for this formatting. I know how to add padding or blank lines, just can't figure out where to do it. Thanks for any help.

  2. #2
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Product display spacing

    well... I think this depends on how altered is your template, but if it stills works in a default zencart way ( sorry my english ), it's possible that you could get around in admin->configuration->All Listing

    If you check you'll see this for every field you want to display

    0= off
    1st digit Left or Right
    2nd and 3rd digit Sort Order
    4th digit number of breaks after


    About the "Displaying 1 to n (of n products)" ... if you use you browser inspector (press F12) and check if this class is around : navSplitPagesResult
    and give it a margin. ie:

    .navSplitPagesResult {
    margin-bottom: 1em;
    }

    Or whatver class is around that display info ...
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  3. #3
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: Product display spacing

    Thank you, that indeed fixed the problem with 'Displaying...'

    But admin > configuration > all listing unfortunately lets you control every product aspect except the one I need to change. So I'm still looking for that one.

  4. #4
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Product display spacing

    then maybe you can get around with css also.
    I've change things in my template, but if you use the inspector try to see what class surrounds those listings
    ie:
    <div class="productListing-odd listings-cat odd">

    And add some margins too.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Product display spacing

    You can then also apply that css to a page specific css file. See the readme in the folder includes/templates/template_default/css
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: Product display spacing

    Yes, I had already found the variable and modified its parameters, before I ever asked here. Didn't make any difference. But perhaps I need to do it in more than one place. I'll keep looking.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,916
    Plugin Contributions
    13

    Default Re: Product display spacing

    if you provide a link to the page and are specific about what you want done, i'm sure someone could tell you the specific css file and line number to modify..... if so desired....
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Product display spacing

    you can change things in more detail. Depending if you are using a customized template or not, they are located at:

    includes/modules/YOUR_TEMPLATE/product_listings.php

    And also check the featured, special, new listings

    includes/templates/YOUR_TEMPLATE/templates/tpl_modules_products_new_listing.php

    If they are not there, then check the template_default, and copy them to your template.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  9. #9
    Join Date
    Jun 2016
    Location
    Suffolk VA
    Posts
    618
    Plugin Contributions
    0

    Default Re: Product display spacing

    I'm using the classic template, with minimal changes to stylesheets and headers.

    includes/modules/YOUR_TEMPLATE/product_listings.php is clearly the right file, thank you. I haven't yet figured out where to change it, but at least I know I'm in the right place now. I'm capable with a variety of programming languages but php came on the scene after I retired from the business, so I'm having to learn it as I need it.

    EDIT--the page under consideration is at http://www.darwinhills.com/test. I'm working right now with the Spices category, but the same formatting change should affect the other product pages as well. If anyone can point me in the direction of the code to change, it would save me much needed time. Thanks in advance.
    Last edited by HeleneWallis; 22 Jun 2016 at 11:44 AM.

  10. #10
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Product display spacing

    I' still not sure what space you want , but looking at the spices categories, assuming that you are referring to the product list table, you could:

    td.productListing-data {
    padding-top: 1rem;
    }

    ..1rem or whatever space you need...top, bottom, left, right.

    The product listings, are more or less equal all over the place.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 What file controls display spacing?
    By kencor1 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Oct 2013, 09:40 PM
  2. adjust spacing on Column Layout Grid between product name and product price
    By cpoet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jul 2010, 07:03 AM
  3. Spacing Between Product Image + Product Title
    By discoduck in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 7 Jan 2008, 12:58 AM
  4. item row display- spacing issue
    By product247 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Oct 2007, 04:34 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