Page 1 of 3 123 LastLast
Results 1 to 10 of 221

Hybrid View

  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,860
    Plugin Contributions
    2

    Default Re: attribute pop up images

    Great contribution.. might wish to add to downloads section here at zencart
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  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
    Posts
    14
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Thank you so much, that truly is a great addition and very well explained!

    I am wondering... my pop up window is about 1 inch by 2 inches and I can only see the corner of my enlarged picture. I am unable to make the pop up window any bigger either by pressing the button in the right corner or the resize option. I am not sure if this is a setting in the zen cart or if it is a setting in my browser. I tried to open and resize it on 2 different computers. Anyone had this problem before?

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

    Default Re: attribute pop up images

    Quote Originally Posted by etal2000 View Post
    I am wondering... my pop up window is about 1 inch by 2 inches and I can only see the corner of my enlarged picture. I am unable to make the pop up window any bigger either by pressing the button in the right corner or the resize option. I am not sure if this is a setting in the zen cart or if it is a setting in my browser. I tried to open and resize it on 2 different computers. Anyone had this problem before?
    Probably has to do with how the window is generated:

    from: /includes/templates/my_template/jscript/jscript_dynamic_window_popup.js

    Code:
    // Do not edit below this line...
    // ================================
    if (parseInt(navigator.appVersion.charAt(0))>=4){
    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
    var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
    var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
    function popImage(imageURL,imageTitle){
    if (isNN){imgWin=window.open('about:blank','',optNN);}
    if (isIE){imgWin=window.open('about:blank','',optIE);}
    with (imgWin.document){
    writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
    writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
    writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
    writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
    writeln('width=100-(document.body.clientWidth-document.images[0].width);');
    writeln('height=100-(document.body.clientHeight-document.images[0].height);');
    writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
    writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
    writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
    if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
    else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
    writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
    close();

  10. #10
    Join Date
    Mar 2005
    Location
    Tulsa, Ok
    Posts
    174
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Quote Originally Posted by quillowmania View Post
    Hello,
    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"
    Above the image it says "Click to enlarge" and below the image you have it set up to say the product name/option value (for example "Spit Happens") instead of "Please choose". I'd like to do the same, either that or get rid of "Please choose" completely. How did you change yours?!
    Last edited by CelticKatt; 7 May 2007 at 10:22 PM.
    "You never really understand a person until you consider things from his point of view . . . until you climb into his skin and walk around in it." --Atticus

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Images for Attribute Options?
    By crystal-vysion in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 10 Mar 2007, 09:30 PM
  2. Products related pages' performance very slow
    By elegantfragrances in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2007, 04:54 PM
  3. Newbie help: PopUp on Attribute Images error
    By ckunderd in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Feb 2007, 04:48 PM

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
  •