Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2008
    Posts
    48
    Plugin Contributions
    0

    Default Different Product Info Display for Different Category

    Hi! I have been searching for this for a while. I want to have a different Product Info Display for different Categories. I have seen some threads that have the address column layouts and such, but I want to layout the page of 1 category differently than the others.

    For instance I have my T-shirt page the way that I want it here:
    http://www.graphxfairy.com/t-shirts/...en?cPath=47_49

    but then I have a listing that has many color options with swatches that doesn't look right with that layout here:
    http://www.graphxfairy.com/auction-t...ction-template

    Is it possible to just add c_(category_id) to the tpl_product_info_display.php. I tried it but it doesn't seem to work.

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Different Product Info Display for Different Category

    You may be able to do what you want using just the stylesheet. Read about how to create category-specific stylesheets in the CSS readme file in the default css folder.

    Rob

  3. #3
    Join Date
    Aug 2008
    Posts
    48
    Plugin Contributions
    0

    Default Re: Different Product Info Display for Different Category

    Quote Originally Posted by rstevenson View Post
    You may be able to do what you want using just the stylesheet. Read about how to create category-specific stylesheets in the CSS readme file in the default css folder.

    Rob
    Thanks so much for the quick reply. I know how to change the style sheet for categories, but that won't be enough.

    I am looking to have the product info layout completely different. I would like to have the attributes with the swatches display underneath the product description so that it isn't crunched up on the side of the Main Product Image.

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Different Product Info Display for Different Category

    There are several threads around here somewhere telling how to make that change, and I'm pretty sure it's done in the stylesheet. Almost anything can be styled, including moving things around on the page using CSS positioning -- within limits, of course.

    But if all that doesn't work, then you can use a bit of php to check what category is being called and load a different chunk of code. I'm no expert in that, but that answer too is here in the forum somewhere.

    Rob

  5. #5
    Join Date
    Mar 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different Product Info Display for Different Category

    You can make different displays for different categories.

    Through admin get the category. Eg. 'Shoes' may be category 6.
    Then make a stylesheet for that category ie (c_6.css).

    In the stylesheet change what you like, only applying it to category 6. It works, but its a little bit messy, because if you ever change your product / category setup you will need to change the stylesheets created, accordingly...

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Different Product Info Display for Different Category

    Quote Originally Posted by new_tokkie View Post
    You can make different displays for different categories.

    Through admin get the category. Eg. 'Shoes' may be category 6.
    Then make a stylesheet for that category ie (c_6.css).

    In the stylesheet change what you like, only applying it to category 6. It works, but its a little bit messy, because if you ever change your product / category setup you will need to change the stylesheets created, accordingly...
    Absolutely correct advice... Interesting to see new_tokkie is indeed new, but is posting relevant and good advice.

    So how come you've just joined, yet know so much?
    20 years a Zencart User

  7. #7
    Join Date
    Mar 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Different Product Info Display for Different Category

    Hi Schoolboy,

    Only started with zencart a few months ago. Been programming for about 15 years, but only recently with CSS, HTML, PHP, etc.

    Already setup 3 sites , each one getting better. Playing with the software 14 hours a day never hurt either I wanna become an expert and Zen the world . Some would describe me as obsessive-compulsive, which is a good trait for a computer programmer

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Different Product Info Display for Different Category

    Excellent... I hope you will become a regular on the forum.
    20 years a Zencart User

 

 

Similar Threads

  1. v138a Need to display different alt text for additional images on product info page
    By GillS in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 12 Feb 2013, 01:18 AM
  2. v150 different product info pages for different categories
    By twistedmilas89 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Jul 2012, 09:10 PM
  3. Different 'Product info page' layouts for different products
    By DML73 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Aug 2009, 02:52 PM
  4. Different product info display page for each category
    By pjb923 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Sep 2008, 07:33 AM
  5. Different product listing setup for different category
    By Broll in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 12 Apr 2007, 08:28 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