Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #782113

    Is 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

    #782174

    Hi,

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

    #783760

    Hello,

    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

    #783805

    Hi!

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

    #783823

    @murdochduncan please update to the latest version of enfold (4.0.5), of woocommerce (3.0.4) and follow this instructions.

    #784267

    Mensmaximus- the Kode King. THANK YOU!!!! You resolved my issue.

    Thank you Kriesi team as well- LOVE the theme and your continuing support.

    Duncan

    #784388

    Hi!

    Glad that @mensmaximus helped. Did you try the suggestion above? :)

    Best regards,
    Ismael

    #784874

    Hi 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

    #785536

    Hi Duncan,

    Great, glad you got it working and thanks for the feedback. Please let us know if you should need any further help on the topic of if we can close it.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.