Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Main image in Attribute controller

Main image in Attribute controller

Views: 676

Results 1 to 7 of 7
8 Jan 2011, 9:36 PM
#1
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Main image in Attribute controller

When my client is in the attribute controller they would like to see the main image of the product, as a double check they are in the correct product.

Is this possible?

11 Jan 2011, 9:56 AM
#2
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Re: Main image in Attribute controller

Anyone?

11 Jan 2011, 10:49 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Main image in Attribute controller

Anything is possible with open source software, but there's nothing in the default Zencart that will do that. You'd have to write some code.

12 Jan 2011, 12:27 PM
#4
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Re: Main image in Attribute controller

Thought so!

I can't imagine no one has done this already. Surely it makes complete sense to have a photograph of the item you are adding attributes to; to make sure you have the correct one?

Has anyone done this already?

12 Jan 2011, 3:26 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Main image in Attribute controller

You could customize the file:
/admin/attributes_controller.php

around line 739 and adjust as needed:

              <?php echo TEXT_PRODUCTS_LISTING . TEXT_PRODUCTS_ID . $products_filter .  TEXT_PRODUCT_IN_CATEGORY_NAME . zen_get_category_name(zen_get_products_category_id($products_filter), (int)$_SESSION['languages_id']) . '<br />' . zen_get_products_name($products_filter) . zen_image(DIR_WS_CATALOG_IMAGES . zen_products_lookup($products_filter, 'products_image'), zen_get_products_name($products_filter), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"'); ?>
12 Jan 2011, 4:22 PM
#6
paulcreedy avatar

paulcreedy

New Zenner

Join Date:
Sep 2010
Posts:
43
Plugin Contributions:
0

Re: Main image in Attribute controller

Absolutely brilliant :clap:

This should be put in the faq's

Thank you

12 Jan 2011, 4:33 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Main image in Attribute controller

Thanks for the update that this worked for you ... :smile: