Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    59
    Plugin Contributions
    0

    Default Product layout - how to get more spacing ?

    In the product layout, the reference of the product appears very close to the navigation (previous -- back to list -- next).
    How can I increase that distance?

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Product layout - how to get more spacing ?

    open templates > your template > templates > tpl_products_next_previous.php and add some spaces ( ) to this code: in red

    <p class="navNextPrevCounter"><?php echo (PREV_NEXT_PRODUCT); ?><?php echo ($position+1 . "/" . $counter); ?></p>
    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($previous), "cPath=$cPath&products_id=$previous"); ?>"><?php echo $previous_image . $previous_button; ?></a></div>&nbsp;&nbsp;

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>&nbsp;&nbsp;

  3. #3
    Join Date
    Oct 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Product layout - how to get more spacing ?

    I found the file "tpl_products_next_previos.php" inside templates/template_default/template.
    I've made a copy inside my template directory, replaced the code, and it doesn't work. I've modified the original file, and it doesn't work...
    I'm sure I'm forgetting a stupid thing.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product layout - how to get more spacing ?

    Quote Originally Posted by usernamenone View Post
    open templates > your template > templates > tpl_products_next_previous.php and add some spaces (&nbsp;) to this code: in red

    <p class="navNextPrevCounter"><?php echo (PREV_NEXT_PRODUCT); ?><?php echo ($position+1 . "/" . $counter); ?></p>
    <div class="navNextPrevList"><a href="<?php echo zen_href_link(zen_get_info_page($previous), "cPath=$cPath&products_id=$previous"); ?>"><?php echo $previous_image . $previous_button; ?></a></div>&nbsp;&nbsp;

    <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>&nbsp;&nbsp;
    Um, why wouldn't you suggest simply setting appropriate padding in the stylesheet?
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Product layout - how to get more spacing ?

    that was my first idea. I suppose that could be done by adding margin or pading in the stylesheel, but I can't find the correct place in the stylesheet.
    Where I should add the padding?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product layout - how to get more spacing ?

    What's the URL to the page where you're seeing the problem?
    .

    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.

  7. #7
    Join Date
    Oct 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Product layout - how to get more spacing ?


  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product layout - how to get more spacing ?

    You might try something like this:
    Code:
    .navNextPrevWrapper { padding-bottom: 20px;}
    Of course, change the 20px to a higher or lower number depending on your needs.
    .

    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
    Oct 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Product layout - how to get more spacing ?

    Ok.
    That was the css code to insert.

    Thanks a lot!!!

 

 

Similar Threads

  1. v139h How can i get this layout in product listing?
    By Emily1972 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jun 2012, 01:42 PM
  2. how to get more space on product name?
    By lina0962 in forum Customization from the Admin
    Replies: 1
    Last Post: 19 Oct 2010, 04:06 AM
  3. Product Page Layout, not sure how to add more info
    By KismetDesign in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jan 2010, 01:44 AM
  4. New Products [More] - How to get rid of [More}
    By Mal2869 in forum General Questions
    Replies: 3
    Last Post: 23 Mar 2008, 09:07 PM
  5. How to get each product in individual box - using columnar layout
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 May 2006, 06:02 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR