Results 1 to 10 of 52

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    110
    Plugin Contributions
    0

    Product Listing layout config.

    i will make this as simple as possible,

    my product listing layout currently looks like this...



    i want it to look like this....



    how would i do that?

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

    Default Re: Product Listing layout config.

    You would create a copy of the product_listing.php file in modules/YOUR_TEMPLATE_NAME directory and edit the layout to that which you want. It's not that difficult, but would require some basic php and CSS skills.
    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
    110
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    ok, i have some basic knowledge with both, i have some web development tools that may even make it easier... idk yet

    any other replies are still helpful

  4. #4
    Join Date
    Jun 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    what parts of it would i change? would it have to be a complete remake? or does anybody already have a code that looks like how i want it?

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

    Default Re: Product Listing layout config.

    It's not a complete remake. More of a tweak in the relevant places. You would probably just leave the MySQL code that extracts info from the database alone and much of the rest of the file would remain as is, so you only really need to concentrate on amending the code that outputs each products details, cutting it down to the info you want and displaying it in a column format. You will find similar code in modules/feature_products.php which already does this.
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Listing layout config.

    You might peek in the Downloads and find the:

    Column Layout Grid for Product Listing

    I believe this is in the Other Modules ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Nov 2008
    Posts
    6
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    On the product info page I have a picture of the item, then below it I have the price, description and then two attributes, size and color.

    How can I move the size and color attributes drop down to the right of the picture? I know it is in a CSS, just not sure which one and what I would change in it.

    Thanks in advanced.

    Bryan

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Product Listing layout config.

    Travellers -
    /includes/modules/your_template/product_listing.php (the Column Grid version) is where the width of the product display is set. You can find this section
    PHP Code:
      // Used for Column Layout (Grid Layout) add on module
      
    $column 0;    
      if (
    PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
        if (
    $num_products_count PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == ) {
          
    $col_width floor(100/$num_products_count) - 0.5;
        } else {
          
    $col_width floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5;
        }
      }
      
    // Used for Column Layout (Grid Layout) add on module 
    and change as desired (either reduce the 100 or increase the 0.5). This will not by itself give spacing between the products, but it will allow margins to be safely added in the stylesheet.

    Another way to get clearance for the description is to add it to the stylesheet. Giving a margin or padding to the whole product will expand the space occupied and cause layout problems, but margins/padding for internal parts of the product will not do this.
    Code:
    h3.itemTitle {margin: 0 0.5em;}/*add this if the product names need clearance*/
    .listingDescription {margin: 0 0.5em;}
    Adjust the 0.5em as desired for horizontal clearance.

    Bryan -
    Your question relates to the product info page, not the product listing page. Post this in a new thread, with a link to your site, to get proper attention for it.

  9. #9
    Join Date
    Oct 2008
    Posts
    141
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    Quote Originally Posted by gjh42 View Post
    Travellers -

    Another way to get clearance for the description is to add it to the stylesheet. Giving a margin or padding to the whole product will expand the space occupied and cause layout problems, but margins/padding for internal parts of the product will not do this.
    Code:
    h3.itemTitle {margin: 0 0.5em;}/*add this if the product names need clearance*/
    .listingDescription {margin: 0 0.5em;}
    Adjust the 0.5em as desired for horizontal clearance.
    This did exactly the job required and has tidied up the index perfectly - I'm extremely grateful, gjh. I didn't do the first bit of your reply though, because I'm afraid I didn't understand what you were saying! As long as I haven't introduced a problem elsewhere that I've not found yet, I'm happy with that, but if I did need to do both parts, I'll have to come back and have another go at following what you were getting at in part A!

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Product Listing layout config.

    Glad it worked for you. You don't need to edit the PHP file if the stylesheet change does what you need.

 

 

Similar Threads

  1. Change Category Product Listing Layout To Match All Product Listing
    By Alfonzo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Sep 2010, 11:49 AM
  2. config of product listing
    By fei2010 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jul 2010, 05:04 PM
  3. Config > Product Listing > Missing options 1.3.6
    By inksale in forum Basic Configuration
    Replies: 2
    Last Post: 18 Dec 2006, 04:41 AM
  4. Product listing config
    By part-timer in forum Basic Configuration
    Replies: 4
    Last Post: 18 Nov 2006, 04:15 AM
  5. Main Page Product image sizing and layout Config. HELP!
    By msbettybebe in forum Basic Configuration
    Replies: 6
    Last Post: 5 Sep 2006, 05:05 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