Tagged: woocommerce 3
-
AuthorPosts
-
April 20, 2017 at 3:48 am #780252
Hello,
I have the following message:
Warning: Missing argument 3 for avia_woocommerce_gallery_thumbnail_description…. (more in private content)
I see other participants try to resolve this as well but then the image turns blurry which turns into another issue.
Could you help me with this?
Thank you,
Duncan
April 24, 2017 at 3:58 am #782113Is there anyone with the coding skills out there who can help me with this? It is a glaring issue on my site that I would love to get resolved. Thank you!
Duncan
April 24, 2017 at 7:29 am #782174Hi,
Thank you for using Enfold.
Please add this filter in the functions.php file.
if(!function_exists('avia_woocommerce_gallery_thumbnail_description_mod')) { remove_filter('woocommerce_single_product_image_thumbnail_html','avia_woocommerce_gallery_thumbnail_description', 10, 4); add_filter('woocommerce_single_product_image_thumbnail_html','avia_woocommerce_gallery_thumbnail_description_mod', 10, 2); function avia_woocommerce_gallery_thumbnail_description_mod($img, $attachment_id) { $image_link = wp_get_attachment_url( $attachment_id ); if(!$image_link) return $img; $image = wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) ); $image_title = esc_attr(get_post_field('post_content', $attachment_id)); $img = sprintf( '<a href="%s" class="%s" title="%s" rel="prettyPhoto[product-gallery]">%s</a>', $image_link, $image_class, $image_title, $image ); return $img; } }
If this is not working, please post the FTP details here so that we can inspect the site thoroughly.
Best regards,
IsmaelApril 27, 2017 at 4:14 am #783760Hello,
It is not working unfortunately. Below is the information you requested to further assist me.
Please let me know if you need anything else to resolve this issue I’m having between Enfold and WooCommerce.
Thank you,
Duncan
April 27, 2017 at 6:25 am #783805Hi!
Thank you for the info. Please edit the config-woocommerce > config.php file then look for this code around line 1425:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class )
.. replace it with:
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id = "", $image_class = "" )
Or post the FTP details here and we’ll edit the file.
Regards,
IsmaelApril 27, 2017 at 7:22 am #783823@murdochduncan please update to the latest version of enfold (4.0.5), of woocommerce (3.0.4) and follow this instructions.
April 28, 2017 at 2:36 am #784267Mensmaximus- the Kode King. THANK YOU!!!! You resolved my issue.
Thank you Kriesi team as well- LOVE the theme and your continuing support.
Duncan
April 28, 2017 at 10:34 am #784388April 29, 2017 at 1:06 am #784874Hi Ismael,
I did not try the suggestion above, I was going to but the issue became resolved the other way first.
Thank you so much!
Duncan
May 1, 2017 at 7:09 am #785536 -
AuthorPosts
- You must be logged in to reply to this topic.