March 16, 2012 at 9:27 pm #10319
pllease see http://www.noochibeads.com/shop and scroll below to see the products.
all of these are variable products..and when i changed from simple, an additional box now appears when one hovers over the picture. we now have
I would like to:
1) change the words for view details on the mouse over to something else, e.g. view larger picture
2) change the link for this button to point to the higher res picture for each product (i know what link it is for each, just need to know how to change the target for the button).
thx!!!March 17, 2012 at 1:01 am #67651
i figured out how to update the text on the show details button..it now says “larger image”
just now need help with the changed code so clicking on larger image opens up the correct high res photo (contained within the product details page, such as http://www.noochibeads.com/wp-content/uploads/2012/02/DSC_3886.jpg this is the large lightbox image that opens up within the individual product page, such as http://www.noochibeads.com/shop/bracelet-9 )
thx!March 18, 2012 at 4:53 pm #67652March 19, 2012 at 10:14 am #67653
In abundancewoocommerce-configconfig.php replace:
echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'full' );
echo "<a class='button show_details_button $extraClass' rel='lightbox' href='".$large_image_url."'>".__('Show Details','avia_framework')."</a>";March 21, 2012 at 2:07 pm #67663
bottom left of zoomed pic says “undefined” for all pics..any way i can get rid of that?March 21, 2012 at 11:01 pm #67664
Hm I cant see that. Probably a browser issue? mind attaching a screenshot and lling us which browser you are using?
KriesiMarch 22, 2012 at 2:04 pm #67665
oh, and chrome
17.0.963.79 mMarch 22, 2012 at 2:05 pm #67666March 22, 2012 at 5:16 pm #67667
Make sure you have a description set for the image. You can set it by clicking on the image in the Featured media box then selecting it under the gallery.April 10, 2012 at 3:33 pm #67668
hey there, this issue sat for a bit as it was lower on the priority list and just coming back to it.
the undefined thing is still happening. i have tried to enter in alt, caption, description info everywhere for each product photo but it doesnt take.
to reproduce the issue
scroll down to products
hover over any and click on enlarge
you will see undefined bottom left corner.
note this does not show when the image is enlarged through the product page itself for that bracelet meaning it has to be related to the code Dude supplied above.
any thoughts? ty!April 11, 2012 at 3:54 pm #67669
I’m not sure why its not picking up the data but then again I’m not as well versed in prettyPhoto implementation. I’ll refer it to Dude and the other support crew to take a look at asap :)
DevinApril 11, 2012 at 8:54 pm #67670April 12, 2012 at 6:25 am #67671
It’s imho a lightbox bug because my code above outputs a valid image link. You can try to add an empty alt=”” parameter to the link. Maybe this fixes the error. If not I’d contact the lightbox author and ask him to fix the error (it seems like the lightbox tries to display data which doesn’t exist): https://github.com/scaron/prettyphoto/issuesApril 12, 2012 at 3:50 pm #67672
where exactly do i put the alt=””? tried a few places but then site wouldn’t load.April 13, 2012 at 2:23 am #67673
so i went splunking into the error logs and found this
[12-Apr-2012 15:49:23] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home3/authenx9/public_html/wp-content/themes/propulsion/config-woocommerce/config.php on line 451
and this is relating to the code supplied to me above, which is
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), ‘full’ );
i think the undefined thingy is due to a small code format error. can you plz see if all the i’s are dotted and the t’s are crossed? looks like just missing a piece of punctuation
thank you!!April 13, 2012 at 3:44 am #67674
i done did fixed it momma
ty! topic can be closed..id add this one to the support knowledge base though
The topic ‘seeking assistance with mouse over effects on pictures on products page’ is closed to new replies.