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 21 to 40 of 177
6 Apr 2010, 2:24 PM
#21
gjh42 avatar

gjh42

Black Belt

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

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

Do the files replace core files? if not, they will be safe even if they are in core folders. Are they in folders that have overrides available?

V1.3.9 will only have bug/security fixes for v1.3.8a, so it shouldn't be hard to merge any files as long as you keep good records of what you have. V2.0 will require all mods to be rebuilt anyway, so the structure of this mod will become irrelevant.

27 May 2010, 2:48 PM
#22
dollfayce avatar

dollfayce

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

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

thomasw98:

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'm using the same version, and cannot get this module to perform as it should.

If I select "radio button" as the option type, my option values disappear on the front end. Also happens when I uses "check box". I haven't tried to set the option type to anything other than those two, other than "Drop Down"...which is what I really need to use.

28 May 2010, 11:24 AM
#23
mshutch avatar

mshutch

New Zenner

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
34
Plugin Contributions:
0

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

Dollfayce:

I'm using the same version, and cannot get this module to perform as it should.

If I select "radio button" as the option type, my option values disappear on the front end. Also happens when I uses "check box". I haven't tried to set the option type to anything other than those two, other than "Drop Down"...which is what I really need to use.

In the instructions given with this mod, you have to edit the option name and select option 6 under image styles to get the images to switch.

--Colleen

28 May 2010, 1:14 PM
#24
dollfayce avatar

dollfayce

New Zenner

Join Date:
May 2010
Posts:
2
Plugin Contributions:
0

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

MsHutch:

In the instructions given with this mod, you have to edit the option name and select option 6 under image styles to get the images to switch.

Yes, as per the instructions...I did do that. I've checked and double checked that I've followed instructions to the "t."

2 Jun 2010, 6:04 PM
#25
pauldid avatar

pauldid

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

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

I am having the same problem as Dollfayce and many others in this thread. I have installed this add-on EXACTLY as the instructions (obviously English is not strong for the writer of the instructions) say but I also am having the same exact results. I am using Zen Cart 1.3.8a.

If I select "radio button" or "check box" as the option type and 6 as the Attribute Style for Radio Buttons/Checkbox, my option values disappear on the front end. There is a place on the Item page that shows "Please Choose" and the name of the option but there are no choices to select from.

Can someone who has gotten this to work show us a working store to prove it and also detailed instructions on how to get this up and running?

4 Jun 2010, 10:05 PM
#26
amandagero avatar

amandagero

Zen Follower

Join Date:
Feb 2009
Posts:
188
Plugin Contributions:
0

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

i did get this up and running on 1.3.8a(had to edit some files)

im attatching the files here

the instructions are pretty straight forward,

just make sure you have value 6 in option name manager (edit an option name)

it does work for dropdowns

PROOF:
http://southcrystals.com/index.php?main_page=product_info&cPath=6&products_id=22

select color Extra fine, image changes from purple stone to orange

I will not leave this up forever, so please respond when you have seen proof

7 Jun 2010, 5:10 PM
#27
pauldid avatar

pauldid

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

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

Thank you to AmandaGero for posting a link to an actual working site with this add-on functioning so that I could have proof that it does work. I found the problem that I am sure is what is causing everyone else headaches with getting this to function properly.

The problem is that the distribution has one file in the wrong folder.

/includes/modules/custom_template/attributes.php

should be placed into your site at this location

/includes/modules/attributes.php

My guess is that the location of this file changed in the standard distribution of Zen Cart somewhere between v1.3.7 and 1.3.8a.

I did this and got it working on the site I am building. Maybe someone could fix this in the distribution in the ZC add-on downloads so other people don't continue to have problems with this.

11 Jun 2010, 3:14 AM
#28
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, the folder location given is correct; you do need to change the generic "/custom_template/" to whatever your template name is. If you didn't change this name, the file would be orphaned and have no effect.
Since the /includes/modules/custom_template/attributes.php file replaces the function of the standard /includes/modules/attributes.php file, you need to keep it in an override location so it will be safe from erasure during an upgrade.

14 Jun 2010, 3:48 PM
#29
pauldid avatar

pauldid

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

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

gjh42:

No, the folder location given is correct; you do need to change the generic "/custom_template/" to whatever your template name is. If you didn't change this name, the file would be orphaned and have no effect.
Since the /includes/modules/custom_template/attributes.php file replaces the function of the standard /includes/modules/attributes.php file, you need to keep it in an override location so it will be safe from erasure during an upgrade.

It might help people trying to use this if they knew that. That is not explained in the limited documentation and it was also never mentioned on this thread or anywhere on the forum until you posted that. Thanks for enlightening all of us as to what the solution to the problem was.

I hope, for the sake of future users, that someone will update this contribution's documentation so that it explains how to use it better.

14 Jun 2010, 3:55 PM
#30
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]

Good mod documentation always includes a note to change /your_template/ or whatever foldernames to the user's custom foldername, if applicable. It has been stated innumerable times in the forum in response to applicable situations as well. It is also stated in the tutorials in regard to making your own edits to template files.

It would be good for someone (preferably the mod's author) to update its docs with the information.

6 Jul 2010, 6:27 PM
#31
nineve avatar

nineve

New Zenner

Join Date:
Jun 2010
Posts:
53
Plugin Contributions:
1

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

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:

29 Jul 2010, 9:25 PM
#32
paintamonkey avatar

paintamonkey

New Zenner

Join Date:
May 2010
Posts:
7
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:

Hi there Gir.. This is very interesting to me. I'm rather new to Zen-cart and this is my first post. I have spent a couple of weeks playing with zen-cart after using oscommerce previously.

I have installed version v1.3.9d, image handler 2, coen uri mapping, google base feeder and all work fine. This brings me to a couple of questions..

How the hell did you get this plugin working? Will it work with image handler 2 installed?

I want to achieve something similar to the product page of prestashop ideally, and thought this plugin might help me. Shall I just not bother with this plugin? Thanks in advance for any advice :)

29 Jul 2010, 9:33 PM
#33
nineve avatar

nineve

New Zenner

Join Date:
Jun 2010
Posts:
53
Plugin Contributions:
1

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

I ended up not using it because it did not make sense for the site I am making to only be able to view the attributes one at a time when the visitor selects one in the pull down menu. :no:

31 Jul 2010, 5:47 PM
#34
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:

No, the folder location given is correct; you do need to change the generic "/custom_template/" to whatever your template name is. If you didn't change this name, the file would be orphaned and have no effect.
Since the /includes/modules/custom_template/attributes.php file replaces the function of the standard /includes/modules/attributes.php file, you need to keep it in an override location so it will be safe from erasure during an upgrade.
Thanks! This is all I had to do.

23 Aug 2010, 12:28 PM
#35
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]

WillyWanka666:

Thanks! This is all I had to do.

Uh...I'm facing what most likely is something small and easy, but as usual very troublesome. I got the attribute replaces main image working properly until I added another module. I think the two are conflicting somehow.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=994

and

DPUv2 found here:
http://chrome.me.uk/index.php?page=zen_cart_modules

Any thoughts? Thanks as always.

23 Aug 2010, 3:07 PM
#36
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]

Since they both operate on the product info page and attributes, they likely use one or more of the same files. You will need to examine the files in both mods and merge the customizations from any that overlap.
It would be a service to the community if you then posted at least which files overlap, if not what code to merge.

23 Aug 2010, 4:19 PM
#37
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:

Since they both operate on the product info page and attributes, they likely use one or more of the same files. You will need to examine the files in both mods and merge the customizations from any that overlap.
It would be a service to the community if you then posted at least which files overlap, if not what code to merge.
PHP is almost completely alien to me, and I go :blink: pretty quick. I was hoping the author of one of the two mods would point me in the right direction. I will most certainly post my results in all three threads that I'm subscribed to as soon as I find the answer.

23 Aug 2010, 6:26 PM
#38
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]

If you start by comparing the lists of files in each mod, that will narrow the field quickly. Then use Winmerge or the like on each file versus the original version of it and make notes, then compare the mod file versions against each other. If the mod changes are to different lines in the file, you can probably winmerge them into one file easily enough. If the two mods both alter the same line(s), that will require skillful editing. Let us know what you find and we may be able to help if needed.

23 Aug 2010, 7:56 PM
#39
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:

If you start by comparing the lists of files in each mod, that will narrow the field quickly. Then use Winmerge or the like on each file versus the original version of it and make notes, then compare the mod file versions against each other. If the mod changes are to different lines in the file, you can probably winmerge them into one file easily enough. If the two mods both alter the same line(s), that will require skillful editing. Let us know what you find and we may be able to help if needed.
I'll give it a try this weekend. The only thing is that I'll be looking blindly, in hopes of stumbling across a constant. If any advanced users that know php feel like helping the zen community figure this out, it'd be GREATLY appreciated.

23 Aug 2010, 11:28 PM
#40
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 won't "stumble across a constant". If there are differences, you will see them in winmerge.