Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    66
    Plugin Contributions
    0

    Default Category image display

    where the category picture is display on my product, i need a statement where if the category picture is the same as the product picture like on this page

    http://www.bargaintowelrails.co.uk/i...roducts_id=435

    i want zen cart to hide the picture on that page.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Category image display

    i need a statement where if the category picture is the same as the product picture like on this page
    Looked but what statement are you talking about I did not see any statement
    Zen-Venom Get Bitten

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

    Default Re: Category image display

    I am guessing you mean you want some kind of comparrision of the categories_image filename and the products_image filename

    It looks like you keep them in different directories but the filename is the same ...

    Which are you wanting not to show? The products_image or the categories_image picture?
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Nov 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: Category image display

    basically if both the products_image and the categories_image are the same i only want to display the product picture and hide the products_image, both images have the same files name

    as you can see in the example the picture on the left is the same as the picture on the right, if this happens on the product page i only want to display the product picture.

    so i think i will need to have some kind of IF statement in the tpl_product_display_info.php file



    any advice

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

    Default Re: Category image display

    i only want to display the product picture and hide the products_image
    Deep breath ... you want which one to stay?

    Anyway, providing you know the categories_id (you will need to look this up as sometimes you know it and sometimes you do not depending on how you get to the product _info page on first click) the function zen_get_categories_image will give you the name ...

    Note: you are using subdirectories so a little cleaning might be needed ...

    Then the function zen_products_lookup can look up any products or products_description field based on products_id and field name ...

    Both functions are in the:
    /includes/functions/functions_lookups.php

    for you to read through them ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Nov 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: Category image display

    sorry i want to keep the product image and hidden the category image

 

 

Similar Threads

  1. Messy Category Image Display
    By alin in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Dec 2011, 04:14 AM
  2. display category image and subcategory image
    By Xaria in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2008, 11:12 AM

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