Zen Cart Logo
Forums / Basic Configuration / Category image display

Category image display

Locked

Views: 1,408

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Jan 2007, 2:29 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

10 Jan 2007, 2:46 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

10 Jan 2007, 3:04 PM
#4
bean_2k1 avatar

bean_2k1

New Zenner

Join Date:
Nov 2006
Posts:
66
Plugin Contributions:
0

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

10 Jan 2007, 3:13 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :blink:

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 ...

10 Jan 2007, 4:38 PM
#6
bean_2k1 avatar

bean_2k1

New Zenner

Join Date:
Nov 2006
Posts:
66
Plugin Contributions:
0

Re: Category image display

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