Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2009
    Location
    Tennessee
    Posts
    8
    Plugin Contributions
    0

    help question Selecting Attriubute Changes Image?

    v150
    new install no mods
    PHP 5.3.8
    Linux
    Apache
    MySQL 5.1.56

    Is there a way to have the main product image change when you select an attribute?

    http://bowtieit.pcriot.com/index.php...&products_id=1

    I would like the main tee-shirt image to change when the attribute swatch is selected. How do I make the color swatch clickable?

    Thanks,
    Michael

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Selecting Attriubute Changes Image?

    This is possible but is going to require some javascript coding. Probably easiest with jQuery to be honest.

    I don't believe that there is a mod that does it ( but I may be wrong ) the reason is that it is fairly easy to code for one particular set of circumstances and mind-bogglingly complex to code for every set of circumstances that every user might choose.

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

    Default Re: Selecting Attriubute Changes Image?

    There's this:

    http://www.zen-cart.com/index.php?ma...roducts_id=994

    I haven't used it, and don't know if it works with version 1.5.0.

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Selecting Attriubute Changes Image?

    Quote Originally Posted by stevesh View Post
    There's this:

    http://www.zen-cart.com/index.php?ma...roducts_id=994

    I haven't used it, and don't know if it works with version 1.5.0.
    it does work with 1.5

    I installed it on a new site yesterday and no problems at all

  5. #5
    Join Date
    Oct 2009
    Location
    Tennessee
    Posts
    8
    Plugin Contributions
    0

    Default Re: Selecting Attriubute Changes Image?

    Thanks for the help!

    I cant get it to work right. The admin/option_name_manager.php wont let me edit or insert an option name. It keeps re-directing me to the admin homepage so I just used these lines...

    TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE_6
    TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE_7

    and put it in the v150 original option_name_manager.php file. It works!

    Now if there is some way I can have a small image swatch instead of text or radio selection it would be perfect.

    http://www.bowtieit.pcriot.com/index...&products_id=1 <---- it works

  6. #6
    Join Date
    Oct 2009
    Location
    Tennessee
    Posts
    8
    Plugin Contributions
    0

    Default Re: Selecting Attriubute Changes Image?

    Update:

    I just used the old <img src tag in the Option Value it works but now I cant get the swatches side by side. Any ideas? Also, i'm trying to get just the swatch w/out radio button. Thanks again.

  7. #7
    Join Date
    Oct 2009
    Location
    Tennessee
    Posts
    8
    Plugin Contributions
    0

    Default Re: Selecting Attriubute Changes Image?

    this post is very important...

    http://www.zen-cart.com/forum/showpo...1&postcount=15

    In fact this whole thread is good!

    http://www.zen-cart.com/forum/showthread.php?t=98315

    So I went a little crazy and deleted some <br/> and "n/" in the attribute.php to get the swatches next to each other. Now I will try to "hide" the radio buttons somehow.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 19 Nov 2013, 07:01 PM
  2. Adding image landing page when selecting CATEGORY
    By techiegirl in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Apr 2010, 02:27 AM
  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

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