Forums / Setting Up Categories, Products, Attributes / Attribute image replaces main image but only pop up larger image

Attribute image replaces main image but only pop up larger image

Locked

Started by welchyboy on 26 Sep 2008, 1:52 AM · Views: 6,430

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
26 Sep 2008, 1:52 AM
#1
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Attribute image replaces main image but only pop up larger image

I have installed the attribute image which replaces the main image and it works great however i have a few issues. For some reason whenever I click on the drop down menu and choose an attribute the image changes with is great but then at the bottom of that image a small broken image comes up. You have to view it to fully understand

http://www.wpc-consulting.com/~stxmill/index.php?main_page=product_info&cPath=14_3&products_id=18

I have pinpointed the file that is causing this issue and the code as followed

<?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>'; ?>
<?php }?>

I have figured this out because i looked at the path of the broken image that pops up and it is named bigger_picture.jpg which is in the code above. Does anyone know how to get ride of this darn pop up image?

Also that goes along with this is for some reason when the attribute image switches with the main image and i click to enlarge the image it shows up in a pop up window instead of my lightbox which is used with all the other images. I only have problems with the attributes. Any help is much appreciated.

26 Sep 2008, 5:18 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Attribute image replaces main image but only pop up larger image

Just remove code that refers to larger image..
PLUS
on page quoted, you are not forcing customer to choose
from your attributes...ie.
visit site, add to cart WITHOUT choosing option, and
product is added to cart..BUT is it the option I wanted????

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

26 Sep 2008, 12:20 PM
#3
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I am not sure which page I posted for the problem about the required attribute drop down and I am not sure what you are asking? Are you saying you choose a product and add to cart but it isn't the right one?

I have figured out my problem however with the attributes being required. I needed to set for example the choose a size or choose a package as display only. Therefore if someone tries to just use those settings it will have an error stating choose a selection.

The page this is working on is

http://www.wpc-consulting.com/~stxmill/index.php?main_page=product_info&cPath=14_5&products_id=33

This is what I was trying to do but it is all working now. Unless you see another problem?

26 Sep 2008, 2:54 PM
#5
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

Your correct...I have figured out how to do it just haven't got it implemented throughout the site yet. Thanks for the observation though. I will get to work on changing them out. All my big worries are pretty much gone except for two that I don't have solved. One is the popup image bigger_picture.jpg that is just annoying to see everytime. I think i tried deleting that whole piece of code i posted but it didn't work. It actually took the picture out entirely. I will try again and see. My other issue is the background image being full for all resolutions. Thanks again for the help!

26 Sep 2008, 4:24 PM
#6
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I tried taking out the portion of the attrib_prod_info.php and it gave me this error

Parse error: syntax error, unexpected $end in /home/stxmill/public_html/attrib_prod_info.php on line 23

That is if i took it all out. I tried removing just the bigger_picture.jpg and the little image still showed up.

27 Sep 2008, 4:10 AM
#7
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I am also having trouble with one and ONLY one product. I have it set up when an attribute is clicked it will replace the main image and it works fairly well other than the small image and not using lightbox however on this page

http://www.wpc-consulting.com/~stxmill/index.php?main_page=product_info&cPath=14_2&products_id=11

When adding the images for the attributes for some reason it adds both of them directly to the page instead of switching the image out when it is selected. I have added the exact same way for all my attributes and they all seem to be find except this one. Not sure what is causing this issue?

27 Sep 2008, 5:00 AM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Attribute image replaces main image but only pop up larger image

Images on that page are large in size, and throwing template
out of line on right hand side boxes...Try reducing..
You also have lightbox installed...could conflict with image swap.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

27 Sep 2008, 2:37 PM
#9
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I'm sorry maybe I didn't make my self clear. I don't want these images on this page to be actually on the page at all. I want them to only change whenever i click on that attribute like every product on my site that has an attribute. They all seem to work but this one.

http://www.wpc-consulting.com/~stxmill/index.php?main_page=product_info&cPath=14_2&products_id=11

It is suppose to look like this...

http://www.wpc-consulting.com/~stxmill/index.php?main_page=product_info&cPath=14_3&products_id=17

I am using lightbox and the mod I am using to swap out the attribute image with the main image is this one; http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=994

You could check it out it isn't a very big mod only has a few files in it. I will try and find a thread just for this mod but i dont think there is one.

27 Sep 2008, 2:46 PM
#10
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I would like to contact the author of the mod which is vishal melmatti because he says he would like response from this mode but I can't find any information about how to get a hold of him. Not even in the readme file or anything.

29 Sep 2008, 2:05 AM
#11
thecrook25 avatar

thecrook25

New Zenner

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

Re: Attribute image replaces main image but only pop up larger image

I am having the same issue. When I select the attribute from the dropdown list the main image changes, but on IE a broken image appears under the main image. This does not happen on FireFox. Were you able to find a solution for this?

13 Nov 2008, 5:13 PM
#12
beama avatar

beama

New Zenner

Join Date:
Jun 2008
Location:
Ontario, Canada
Posts:
54
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I have this Add On working as far as I can tell. I don't know what I've done differently...if anything at all. I've tested it in IE 6 & 7, Firefox, Opera and Safari.

What i would like to do is have the product image in the product listing (example: a group shot of chocolates) different than when you go to the actually page. I would like it so when you go to the product page you see the photo of the attribute that is select by default in the dropdown menu (example: of Box of 6 chocolate).

Any suggestions...

thanks!

15 Nov 2008, 2:02 AM
#13
ddechert avatar

ddechert

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I can't even get the module to work. I am wondering if I receive a bad download or if I am using the module incorrectly. I have installed per the instructions and updated the MySQL. However, in debugging, my entire site doesn't call the jscript_attrib_prod_info.php module. Anyone have any thoughts?

74.208.75.237/muddy

Thanks.

22 Nov 2008, 11:39 AM
#14
marcps avatar

marcps

Zen Follower

Join Date:
Feb 2005
Posts:
92
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I have this module working well on this site....

http://www.valentinescards.co.uk/shop/cute-and-cuddly-cards-121/as-i-open-the-curtains-1249.html

However what I actually want to do is set it so it overlays an attribute image (png or gif) over the top of the current product image.

the option is an add-on to a product and I just want to have a transparent pic of the option product to overlay the original image.

Any ideas on if this is possible and whether someone could code it for me - PM me with quotes or message here.

Regards
Marc P Summers
https://www.monkeydesignhouse.com

23 Apr 2009, 12:00 AM
#15
necrovore1984 avatar

necrovore1984

New Zenner

Join Date:
Apr 2009
Posts:
2
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

I posted this under another thread but in case you didn't find it here is the fix for this mod (for those of you having this issue).

In attrib_prod_info.php find:
<span class="imgLink">' . zen_image('images/bigger_picture.jpg', 'larger image', '140', '44') . '</span>

and change to:
<span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span>

26 Nov 2010, 10:56 PM
#16
satu avatar

satu

New Zenner

Join Date:
Jan 2007
Location:
Idaho
Posts:
43
Plugin Contributions:
0

Re: Attribute image replaces main image but only pop up larger image

How would you go about getting rid off the pop up in attrib_prod_info.php?

Bought coffee for the Zen Cart Team!
Zen Cart version 1.51