Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Product listing - image style

    Hi,
    I have made a border around the images on the products details page and want to add the same style to the images on the product listing pages. Does anyone know how to do that?

    Product info pages
    http://www.rosecliffe-arabians.com/s...products_id=13


    Product listing pages
    http://www.rosecliffe-arabians.com/s...=index&cPath=2

    Here's the style.
    .additionalImages centeredContent back {
    padding: 0.7em;
    border: 1px solid;
    border-color: #930000;
    }

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Product listing - image style

    Code:
    #productListing IMG {padding: 0.7em;
    border: 1px solid;
    border-color: #930000;
    }
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

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

    Default Re: Product listing - image style

    To do this you would attach the styles to .productListing-data a img


    You may also wish to take a look at
    This page which is badly broken in FF and deal with the rather large number of validation errors that you have, which might explain the problem.
    Kuroi Web Design and Development | Twitter

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

  4. #4
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Product listing - image style

    Hey thanks Ryk and Kuroi for the fast reply.
    I've added the style and it works great Thanks heaps! Kuroi, that page you saw is a big mes, i know but it's just a table in the product description, so easily fixed. Thanks again :-)

    While I'm here i have another problem. On the details page, the additional images show below each other. I have set them to 2 per per row in admin.

    I took out 'style="width: 50%' and fixed it but then uploaded an old file and i can't find it in the code now.

    <div class="additionalImages centeredContent back" style="width: 50%;">

  5. #5
    Join Date
    Oct 2005
    Posts
    286
    Plugin Contributions
    0

    Default Re: Product listing - image style

    Don't worry, I found it. in modules>my template>additional_images.php

    Thanks again.

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Product listing - image style

    Best way round this problem which occurs mostly in IE - and it applies to various other module files as well - is to find in additional_images.php (near line 70) the code similar to :

    Code:
    if ($num_images) {
      $row = 0;
      $col = 0;
      if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
        $col_width = floor(100/$num_images);
      } else {
        $col_width = floor(100/IMAGES_AUTO_ADDED);
      }
    and replace it with

    Code:
    if ($num_images) {
      $row = 0;
      $col = 0;
      if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
        $col_width = floor(100/$num_images)-0.5;
      } else {
        $col_width = floor(100/IMAGES_AUTO_ADDED)-0.5;
      }
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

 

 

Similar Threads

  1. Product Listing - Layout Style
    By ronaldlb in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Mar 2011, 03:56 PM
  2. Product Listing -layout style is gone
    By Loveashley10 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Mar 2011, 08:49 PM
  3. Product listing style editing
    By panuma in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Oct 2010, 07:03 PM
  4. New Product listing style
    By marknew in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Dec 2008, 10:19 AM
  5. Product Listing to a completely different style
    By Outlawlb in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Jan 2007, 10:52 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