Forums / All Other Contributions/Addons / Attribute image replaces main product image on select [Support Thread]

Attribute image replaces main product image on select [Support Thread]

Views: 44,652

Results 41 to 60 of 177
24 Aug 2010, 1:12 PM
#41
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Attribute image replaces main product image on select [Support Thread]

gjh42:

You won't "stumble across a constant". If there are differences, you will see them in winmerge.
Oh, Sorry. I'm still a little new to the eCommerce. I didn't bother even researching winmerge, before I replied. I guess I am a typical American at times. It looks pretty cool. I assumed it was for just comparing identical files, as there are no duplicate files in the two modules. This looks to be a great tool for examining module files before you install them. Don't know if I'll be able to wait till the weekend for this. Looks like I'll be up late the next few nights. Thanks again. :clap:

24 Aug 2010, 2:23 PM
#42
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Attribute image replaces main product image on select [Support Thread]

For examining single files, there is an even better tool: a file editing utility like Notepad++ (not Notepad). It's also free from Sourceforge, and it will read the file extension and give appropriate syntax highlighting so you can see the different kinds of elements in a statement (much like the PHP and HTML code boxes in the forum).

29 Aug 2010, 2:43 PM
#43
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

gjh42:

For examining single files, there is an even better tool: a file editing utility like Notepad++ (not Notepad). It's also free from Sourceforge, and it will read the file extension and give appropriate syntax highlighting so you can see the different kinds of elements in a statement (much like the PHP and HTML code boxes in the forum).

COOL! Thanks again. I've been tasked with wedding invitations this weekend, so I'll probably have to put this off for a short while :blush:. I'll keep everyone updated as soon as I find a result, and hopefully a solution.

30 Aug 2010, 2:33 AM
#44
hitch avatar

hitch

New Zenner

Join Date:
Sep 2006
Posts:
75
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Hi All,

I have been using Zen Lightbox, with ih2 happily for ages and they are all up to date.

I want to integrate the 'attribute replaces main image' addon and am trying to get zen Lightbox to work in the same way it does with additional and main images.

I think the file i need to alter is below where i have tried to copy the code from tpl_modules_main_product_image.php. I think my problem is with the java script. If i dont include the documment.write script part it returns the larger image fine. If i add as below (and in tpl_modules_main_product_image.php) The image is not there (or the ability to clisk it obviously)

Code in file
Code:
...

<?php echo '<script language="javascript" type="text/javascript"><!-- document.write(\'<a href="' . zen_lightbox('images/'.$attributes_image, $alt, LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" >' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>\')//--></script>'; ?>

...
**
HTML result**
HTML Code:
<script language="javascript" type="text/javascript"><!-- document.write('<a href="images/attributes/PMXA-67RS.png" rel="lightbox[gallery]" ><img src="bmz_cache/4/4f1f33407f5f2208814e35797be58f8f.image.145x200.png" alt="" width="145" height="200" /><br /><span class="imgLink"><img src="images/bigger_picture.jpg" alt="larger image" title=" larger image " width="100" height="100" /></span></a>')//--></script>
But no actual code to make it happen

Any help is appreciated :blush:

2 Sep 2010, 9:14 AM
#45
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Nineve:

This ALMOST works.
Was able to install it and getting working with v1.3.9d.
However;

  1. It removes the attribute images from the page, you can then only see them if you select them one at a time from the drop down.

  2. Even though you can then click on the attribute it will bring up a window with the same size image. (It will not bring up a "larger" image)

  3. It does replace several files that may be "core", I'm not sure. i.e. options_name_manager.php

This would be a highly desired mod if those issues could be addressed. Any of you coding guru's up to it? :flex: :smile:

I have the same experience and find the add-on useless due to this.

8 Sep 2010, 1:51 PM
#46
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

LOL! I tried using winmerge and had know idea what I was looking for, or which file to replace or alter, if at all. The only two files that have the same name is the attribute.php file. Those two files are in two different directories. I think winmerge is more suited for comparing two files that are trying to accomplish the same task(s). I'm going to start looking for an alternative and report back my findings. If anyone else knows of how to update the displayed price upon selection of an attribute, PLEASE let us know. I'm truly baffled by the idea that this is not a preexisting function of zencart. I'm sure that one or more files for each module, is using one or more of the same core file(s). Maybe that's where the conflict is. I'll give notepad++ a try next. Maybe it can help me find which core file(s) these modules are both using.

18 Nov 2010, 9:01 AM
#47
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

I know this hasn't been read for a long time but has anyone actually managed to get this working in 1.3.9h? Im desperately trying to get this working (using IH2 as well) and for the life of me, i cant seem to get the images to swap with a dropdown?

Anyone? Please? HELLLLPPPPP!!!!!

18 Nov 2010, 9:15 AM
#48
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

I am also using stock by attributes and dynamic dropdowns for stock with attributes......

Really need to get this working asap... Please help!

18 Nov 2010, 12:01 PM
#49
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Google "product attribute pictures"
Nick is the guy you want to talk to. He was more than happy to help. I got everything I ask for and more. I regularly refer to what he provided me as, "Too damn useful not to have." He also offers customization to fit individual specifics.

18 Nov 2010, 1:46 PM
#50
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

I had a chat with Nic, and as helpful as he was, the problem is that I'm no coder :( so whilst i do understand some php... his terminology and suggestions wont help :(

The other problem is that he only really does things when he is paid to do so, and as a result he doesn't use this contribution, he doesn't even know much about it.

If there is anyone out there who can try help me without charging me for it, I'd really appreciate it.

18 Nov 2010, 2:10 PM
#51
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Attribute image replaces main product image on select [Support Thread]

In response to your question, I really don't know much of anything about the mechanics of this mod. And it doesn't matter how long it has been since I posted in a thread, if it comes up again I will see it and take a look.

18 Nov 2010, 2:15 PM
#52
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

It's highly doubtful you'll find someone to help out with PHP for free. I thought his prices were more than fair. He actually DID do a couple of little tweaks free of charge. The point is, that it was well worth the cost. I spent close to a month sifting through this file and that one, all to no avail. I'm a novice with PHP as well. I guess it just boils down to how much is your time worth. :unsure:

22 Nov 2010, 7:33 AM
#53
shiff avatar

shiff

New Zenner

Join Date:
Nov 2010
Posts:
16
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Willywanka, you're missing out on the fact that this addon has been supplied to the community for free. At the same time, there has to be someone who has managed to get it up and running or someone who has something similar up and running.

I see no point in paying $100 for the exact same script with one or two changes that actually make it work when all I actually need is a little bit of help from someone to get this script working.

If there wasn't something like this mod or an alternative, then yeah i'd probably do what you did and pay $100... but until such time as I have confirmed that there is no way to do it without paying someone, I'll just keep trying.

But thanks anyway, hopefully once i've come up with a solution i'll be able to help guys who were in my position for free.

26 Nov 2010, 4:21 PM
#54
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

shiff:

Willywanka, you're missing out on the fact that this addon has been supplied to the community for free. At the same time, there has to be someone who has managed to get it up and running or someone who has something similar up and running.

I see no point in paying $100 for the exact same script with one or two changes that actually make it work when all I actually need is a little bit of help from someone to get this script working.

If there wasn't something like this mod or an alternative, then yeah i'd probably do what you did and pay $100... but until such time as I have confirmed that there is no way to do it without paying someone, I'll just keep trying.

But thanks anyway, hopefully once i've come up with a solution i'll be able to help guys who were in my position for free.
Cool! Good luck. We all hope to hear from you when you find the solution.

12 Jan 2011, 2:23 PM
#55
ncswi avatar

ncswi

New Zenner

Join Date:
Mar 2010
Posts:
9
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Zencart v1.3.9h

Apache/2.2.14 (Fedora)

MySQL client version: 5.0.88

PHP extension: mysql

I have a fair understanding of zen cart and mod installation. This mod installed and I have the additional attribute styles #6 and #7 displayed in the attribute options page.

I select #6 for my item attribute (color).

From here I'm a bit stumped. Where do I associate an image with an attribute? I cannot see where (expectantly in the attributes controller page) I upload and associate an image with the attribute color.

Please advise and thanks in advance for your help.

12 Jan 2011, 6:12 PM
#57
ncswi avatar

ncswi

New Zenner

Join Date:
Mar 2010
Posts:
9
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

gjh42:

Look for "Swatch" in Attributes Controller.

I just wanted to document the fix for this, so others understood.

If found that you cannot apply an image to an existing attribute. If I attempted to add an image to an existing attribute (say color blue) it would bark and error that it cannot add image since the attribute existed (Duplicate Attribute).

I removed the attribute (blue) and re-added it and used the swatch image upload feature at the bottom of the page.

Thanks,

12 Jan 2011, 6:40 PM
#58
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Attribute image replaces main product image on select [Support Thread]

I just successfully added an image swatch to an existing attribute that had no image in my local test install. Did you try to select the option name and option value in the boxes to get the attribute to add the image to? That would be creating a new attribute that was the same as an existing one for the product, and would fail.

Edit the attribute in the list of attributes the product already has.

17 Mar 2011, 4:11 AM
#59
novastar avatar

novastar

Zen Follower

Join Date:
Jul 2009
Posts:
127
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

I have this working with an Image zoomer. The image zoomer works upon initially loading the page but when the attribute changes and the image switches the image zoomer no longer works. I think it may have something to do with the new image that's being loaded or the order of the scripts being called but I'm not sure. Let me know if you any ideas or need any additional information to solve this problem.

24 Mar 2011, 6:57 AM
#60
novastar avatar

novastar

Zen Follower

Join Date:
Jul 2009
Posts:
127
Plugin Contributions:
0

Re: Attribute image replaces main product image on select [Support Thread]

Is there any way to switch the additional images that show when the new main image is loaded? e.g. when a blue attribute is loaded, the additional images for that model comes up.