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,653

Results 1 to 20 of 177
22 May 2008, 1:03 AM
#1
exoticcorpse avatar

exoticcorpse

New Zenner

Join Date:
Jan 2008
Posts:
35
Plugin Contributions:
0

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

Has anyone managed to get this working with Dropdown attributes, rather than Radio/Check Boxes??
https://www.zen-cart.com/downloads.php?do=file&id=699

The file in question that would need altering would be:
includes/modules/custom_template/attributes.php

Can anyone offer any suggestions?

23 May 2008, 12:06 AM
#2
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

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

Has anyone got this working? I can't get it to work I would like to see an example website that this is working on. I installed it on a version Zen Cart 1.3.8a even though the mod is for version v1.3.7 could this be the problem?

Thank you

23 May 2008, 12:14 AM
#3
exoticcorpse avatar

exoticcorpse

New Zenner

Join Date:
Jan 2008
Posts:
35
Plugin Contributions:
0

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

I had it working on 1.3.7... Worked perfectly with Radio Boxes, but I need it for Dropdowns.. Anyone?

21 Jun 2008, 2:12 AM
#4
cj_internet_sales avatar

cj_internet_sales

New Zenner

Join Date:
Mar 2007
Location:
Orlando, Florida
Posts:
30
Plugin Contributions:
0

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

I am using 1.3.7 and can't get it to work on radio or check boxes.

I have attributes working except when I select 6 in the attribute style. At this point I see the attribute name but do not have any radio buttons or check boxes. No images either.

I reset the attribute style to any number 0 - 5 and the attribute displays properly and works normally.

I would prefer a dropdown box as well but need this module to simply work before moving forward.

Jerry
CJ Internet Sales, LLC
www.cjpicnicbaskets.com
www.cjgiftbaskets.com

26 Jun 2008, 12:54 PM
#5
blackjm75 avatar

blackjm75

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

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

I would like this for dropdowns too! Anyone contacted the original creator?

20 Jul 2008, 7:24 PM
#6
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

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

CJ Internet Sales:

I am using 1.3.7 and can't get it to work on radio or check boxes.

I have attributes working except when I select 6 in the attribute style. At this point I see the attribute name but do not have any radio buttons or check boxes. No images either.

I reset the attribute style to any number 0 - 5 and the attribute displays properly and works normally.

I'm having this same problem. The only difference is that I'm using 1.3.8a. This seems like a great idea but I just can't get it going.

Has anyone got this working properly?

Thanks
Nancy

10 Nov 2008, 10:16 PM
#7
jford avatar

jford

Zen Follower

Join Date:
Mar 2006
Posts:
162
Plugin Contributions:
0

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

has anyone found a solution to this yet? I am using 1.3.8a as well and when i select style 6, images and everything disappears but if I select any style 0-5 it looks perfect.

Thanks!

5 Dec 2008, 5:10 AM
#8
ayperi avatar

ayperi

New Zenner

Join Date:
Dec 2008
Posts:
29
Plugin Contributions:
0

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

exoticcorpse:

Has anyone managed to get this working with Dropdown attributes, rather than Radio/Check Boxes??

The file in question that would need altering would be:
includes/modules/custom_template/attributes.php

Can anyone offer any suggestions?

I'm looking for this exact thing currently myself and I got the latest version of Zencart as well. I've seen this done on some online stores before and would love to have that as it saves up "space" in product information pages.

12 Nov 2009, 5:05 PM
#9
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

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

Is this an option that was ever figured out? I am in desperate need of this option and would like to know very much. Any help appreciated. Thanks

10 Jan 2010, 6:06 PM
#10
shokuf avatar

shokuf

New Zenner

Join Date:
Feb 2008
Posts:
56
Plugin Contributions:
0

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

Yes, it works on 1.3.8
I did it on dropdown and it works the same.
Click "Edit" next to the option name you already have in there.

14 Jan 2010, 7:37 PM
#11
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

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

SHokuf:

Yes, it works on 1.3.8
I did it on dropdown and it works the same.
Click "Edit" next to the option name you already have in there.

Did you choose any other option when you set it to 6? I can't get this to work. I am using Zen Cart 1.3.8a Has anyone else got this to work in V1.3.8a??

Zen Cart user all the way for online stores!

20 Jan 2010, 3:29 PM
#12
engel003 avatar

engel003

New Zenner

Join Date:
Jan 2010
Location:
Ohio
Posts:
13
Plugin Contributions:
0

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

Has anyone got this to work with drop down boxes?

Also, where does the file attrib_prod_info.php go?

engel003
www.WearThisShirt.com
Zencart user since 2009!

20 Jan 2010, 3:30 PM
#13
engel003 avatar

engel003

New Zenner

Join Date:
Jan 2010
Location:
Ohio
Posts:
13
Plugin Contributions:
0

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

I am using Zen Cart 1.3.8.

engel003
www.WearThisShirt.com
Zencart user since 2009!

24 Mar 2010, 5:51 PM
#14
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

This mod does not seem to follow the proper override structure, i.e. it replaces some of the core zen cart files without using an override. So the next time you upgrade, you are going to have big headaches if you use this mod.

I have not installed the mod for this reason, although I think it is a very good idea.

5 Apr 2010, 1:59 PM
#15
taranis avatar

taranis

New Zenner

Join Date:
Apr 2010
Posts:
1
Plugin Contributions:
0

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

I have managed to get this to work on 1.3.8p3.

Looking at the instructions I think English ( or even American English) is not the first language of the developer.
This is not his fault but it does make the instructions a bit more tricky :)

Before adding anything I changed a couple of directory names

I changed /admin/ to /ADMIN_OVERRIDE_NAME/ - ie what I have for my admin directory

and includes/modules/custom_template to includes/modules/TEMPLATE_OVERRIDE_NAME/ ie what I have for my template name

Also in attrib_prod_info.php I changed line 23 from

<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span></a>'; ?>

to

<?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'products_image_large_additional=' . 'images/'.$attributes_image) . '\')">' . $image . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>

ie removed the ref to images/bigger_picture.jpg which doesn't exist and so was getting a 404

I ftp'd up the files and applied the sql patch - I must admit I was a bit concerned that I had to add a file at the root of the zen cart install (attrib_prod_info.php) as this does not seem the correct place for it - however since I need the functionality I have put up with it for now

I then went into the attributes controller and added large images for the attributes - I could not point them to the path I wanted as it would only allow me 1 level of nesting - that is probably just a zen cart thing though

The end result is it works - though I can't say it works well out of the box -

To improve it I would wish better integration with Image Handler 2 and better use of overrides. - just my 2p worth

To end I would like to say I am a zen cart newbie so take what I say with a pinch of salt - as always before trying something you are unsure of back up your database and your site before applying any changes

Cheers
T

5 Apr 2010, 4:38 PM
#16
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

Thanks for the info Taranis. I think you did it the right way by putting things in override folders.

I don't understand your comment "I changed /admin/ to /ADMIN_OVERRIDE_NAME/ - ie what I have for my admin directory"

Do you mean that you created an OVERRIDE_NAME folder inside of your regular admin folder? So instead of putting the files inside /admin/ you put them into /admin/OVERRIDE_NAME/ instead?

5 Apr 2010, 4:59 PM
#17
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]

No, this is referring to the very important security recommendation that every Zen Cart installation should have its /admin/ folder renamed to something hard to guess (and appropriate file references changed accordingly), so that hackers have a harder time finding it.

See the link at the top of the "Concerns about hack attempts" forum for more info.

5 Apr 2010, 5:40 PM
#18
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

gjh42:

No, this is referring to the very important security recommendation that every Zen Cart installation should have its /admin/ folder renamed to something hard to guess (and appropriate file references changed accordingly), so that hackers have a harder time finding it.

OK, thanks. I did that a long time ago.

I am always wondering about the override system...would it be possible to add a folder inside /admin/ that would act as an override folder? e.g. /admin/mytemplatename/ ? Or could I do the same in any other folder where no current override is setup?

5 Apr 2010, 8:30 PM
#19
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]

You would have to build the override functionality in the PHP code to use override folders; just adding folders would do nothing.

5 Apr 2010, 9:01 PM
#20
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

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

OK, thanks. that's what I suspected, but always wanted to ask.

For the benefit of other readers interested in this mod, I have installed it according to the original instructions and it works perfectly for me on zen cart version 1.3.8a.

I have not come across any problems except, as Taranis mentioned, the instructions are a little hard to decipher. I also have not noticed any problem that Taranis mentioned about "images/bigger_picture.jpg", but maybe I will notice that when I play around with it some more.

I am still worried that future zen cart updates will break the functionality of this mod (since it does not seem to use an override system), but I may be wrong about that. We'll see. The good news is that it is pretty easy to re-install if it does have problems in the future.