Page 1 of 23 12311 ... LastLast
Results 1 to 10 of 221
  1. #1
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion attribute pop up images

    Hello,

    I have searched long and hard for attribute image pop up, but the only links I have found don't seem to be working. I have read and re-read the instructions, but have come to the conclusion that they don't work with 1.3.7.
    I have also read many threads where users wanted such a feature.

    So I have decided to reprogam it myself. I am not a programmer, so the code is not really pretty, but here is how it works.

    If you added attribute images the program will now look for larger attribute images in the /images/medium/attributes folder. The image filename has to be in this format: imageName_MED.ext. imageName is whatever the attribute images name is. ext is whatever the attribute image file extension is.
    If the MED image is found it will automatically create a link that when clicked opens a window displaying the larger image in a window that is automatically sized to the picture size. It also adds "Click to Enlarge" above the picture.

    If it doesn't find a MED picture, no link is generated.

    if you'd like to check it out, please go to my website, www.quillowmania.com.
    The link will take you to the correct location to demo the attributes. Look towards the bottom of the page where it says "Select Bib Design"

    The attachment only contains two files. Copy them to your webserver to the appropriate spots. I don't know if it works with any version other than zen-cart 1.3.7.
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: attribute pop up images

    My hero! Hey, where do these two files go? I get that the javascript file goes here...

    - YOUR_CATALOG > includes > templates > YOUR_TEMPLATE > jscript

    ...but the attributes.php looks like you have it going into...

    - YOUR_CATALOG > modules > YOUR_TEMPLATE

    ...which doesn't seem right. Any ideas?
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  3. #3
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: attribute pop up images

    This is the most promising thread I have found thus far... attribute pop up images
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  4. #4
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: attribute pop up images

    You are correct.
    I forgot to stick the modules folder into the includes folder.
    The correct patch is
    YOUR_CATALOG > includes > modules > YOUR_TEMPLATE > attributes.php

    I re-created the zip file and the paths should be correct now.

    Sorry for the delayed response.

    BTW, I don't currently have this enabled at my store, so you won't see an example right now. Not because it wasn't working, I just didn't have time to create attribute pictures yet.
    Attached Files Attached Files

  5. #5
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Hurray! It's works. At first I thought it wasn't, but I just had to change the layout of my attributes. Apparently it only works when the image style is set to "0= Images Below Option Names"

    As of now, I have it up and working at the below link. I took out the text "click to enlarge" simply because I am going to have many options and I wanted to save space.

    http://store.pinkpuppydesigns.com/in...&products_id=2

    ** EDITED *** Never ever post in a forum, email, newsletter etc. the zenid or zenAdminID or you will be doomed!!
    Last edited by Ajeh; 31 Mar 2007 at 03:04 PM.
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: attribute pop up images

    Great contribution.. might wish to add to downloads section here at zencart

  7. #7
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Quote Originally Posted by cheezylu View Post
    Hurray! It's works. At first I thought it wasn't, but I just had to change the layout of my attributes. Apparently it only works when the image style is set to "0= Images Below Option Names"

    As of now, I have it up and working at the below link. I took out the text "click to enlarge" simply because I am going to have many options and I wanted to save space.

    http://store.pinkpuppydesigns.com/in...&products_id=2
    I'm not following you on this one. Where do I set that option?

  8. #8
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: attribute pop up images

    In your administration under...

    Catalog > Option Name Manager

    Then click "Edit" on any of the attributes and type "0" in the text box titled "Attribute Style for Radio Buttons/Checkbox".
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  9. #9
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    So, I'm making progress!

    Here is what I have now: http://xmxbx.com/cart/index.php?main...roducts_id=211

    Things I'm concerned about:

    1: includes/modules/my_template/attributes.php
    Code:
                                            //find med size attribute images. location must be in /images/medium/attributes and image name must be image_MED.ext
    
    
                                            $array_filename = split("[/\\.]", $products_options->fields['attributes_image']) ;
                                            $filename = $array_filename[count($array_filename)-2];
                                            $extension = '.'.$array_filename[count($array_filename)-1];
                                            $filename = $filename.'_MED';
                                            $path = DIR_WS_IMAGES . 'medium/attributes/';
                                            $attribute_image_med = $path . $filename. $extension;
    I had to remove the / before "medium/attributes" because it was changing the javascript to:
    Code:
    javascript:popImage('images//medium/attributes/crownheartskull-ts-grey_MED.jpg', 'Large View')
    (note the double //'s)

    So, the links are created on the images, but when you click them, nothing happens. You can load the images if you type in the path manually, so file permissions are good.

    I was looking over your code, and I see that you use popWindow, as opposed to popImage. Yours also seems to use a full image path, where mine uses relative paths... No idea if that relevant, though.


    Any ideas?

  10. #10
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Oops - I got confused. I was looking at the baby clothing, not the puppy stuff

    Cheez - your stuff uses the double //'s and works, so I put mine back to the default.

    I have to be missing something simple here.

 

 
Page 1 of 23 12311 ... LastLast

Similar Threads

  1. Pop up for attribute
    By chandroo007 in forum General Questions
    Replies: 0
    Last Post: 31 Jan 2011, 10:48 AM
  2. Attribute Pop-Up?
    By TurtleDove in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Sep 2010, 05:22 AM
  3. Pop Up Images
    By crzy4prple in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Apr 2010, 06:37 AM
  4. attribute image pop up (large images)
    By kitcorsa in forum General Questions
    Replies: 12
    Last Post: 19 Sep 2008, 05:44 AM
  5. Adding a pop up window to an attribute
    By esoin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Sep 2007, 02:19 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