Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    43
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Sep 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: Main image in Attribute controller

    Anyone?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  4. #4
    Join Date
    Sep 2010
    Posts
    43
    Plugin Contributions
    0

    Default 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?

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

    Default Re: Main image in Attribute controller

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

    around line 739 and adjust as needed:
    Code:
                  <?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"'); ?>
    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!

  6. #6
    Join Date
    Sep 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: Main image in Attribute controller

    Absolutely brilliant

    This should be put in the faq's

    Thank you

 

 

Similar Threads

  1. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  2. Attribute image replaces main image but only pop up larger image
    By welchyboy in forum Setting Up Categories, Products, Attributes
    Replies: 15
    Last Post: 26 Nov 2010, 11:56 PM
  3. Replies: 0
    Last Post: 7 Oct 2009, 07:11 PM
  4. Replies: 0
    Last Post: 16 Jul 2009, 06:07 AM
  5. Attribute image replaces main product image on selecting attribute
    By pegog in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Jun 2008, 07:29 AM

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