Tagged: woocommerce 3
-
AuthorPosts
-
May 16, 2017 at 7:44 pm #794369
Enfold 4.0.6 fixes the blurry image issue on single product pages since WooCommerce 3.0. Therefore the woocommerce patch introduced for Enfold up to version 4.0.5 is not necessary anymore and must be removed to get full control over the new woocommerce gallery settings introduced with Enfold 4.0.6.
The following instructions apply only to those users who have installed the patch mentioned above. If you do not know what I am talking about you probably don’t need to do anything. Depending on which version of the patch you installed you have to follow a few simple steps.
Basic Patch (without new WooCommerce Gallery):
=====================================
1. Establish a ftp connection to your hosting account
2. Change to /wp-content/themes/enfold-child/
3. Download the file ‘functions.php’
4. Open the downloaded file in a text editor (like notepad++, do not use wordpad!)
5. Remove the following code block:global $woocommerce; if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) { function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) { return $img; } function avia_woocommerce_post_thumbnail_description($img, $post_id){ return $img; } }
6. Save the file and upload it again.
Enhanced Patch (with new WooCommerce Gallery):
=====================================
1. Establish a ftp connection to your hosting account
2. Change to /wp-content/themes/enfold-child/woocommerce/single-product
3. Delete the files product-image.php and product-thumbnails.php.
3a. If this are the only two files in the ‘single-product’ directory you can delete the ‘single-product’ directory as well
3b. If the ‘woocommerce’ directory only contains the ‘single-product’ directory and no other files you can delete the ‘woocommerce’ directory as well.
4. Change to /wp-content/themes/enfold-child/
5. Download the file ‘functions.php’
6. Open the downloaded file in a text editor (like notepad++, do not use wordpad!)
7. Remove the following code block:global $woocommerce; if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) { return $img; } function avia_woocommerce_post_thumbnail_description($img, $post_id){ return $img; } }
8. Save the file and upload it again.
You have successfully removed the patch and can use the gallery selection on the shop options tab in Enfold 4.0.6
May 16, 2017 at 8:36 pm #794432Hey Michael,
Thanks a lot for taking time to make these posts. We appreciate it :)
Best regards,
YigitMay 17, 2017 at 5:00 pm #794969@mensmaximus
Thank you so much for this fix, it helped a lot. and steps to remove it.
Would be awesome if you could provide a workaround to add a product zoom feature for the latest Enfold release, or perhaps just use a plugin?
CheersMay 17, 2017 at 8:36 pm #795077@waveshaper if you switch to the new woocommerce gallery you get a zoom feature.
May 18, 2017 at 7:35 am #795287May 18, 2017 at 9:44 am #795729@mensmaximus
Thanks a mill, silly me. I see the option in the Enfold Theme Options now. Still it requires some customization as the lightbox on smaller images does not work. Would be great to have the main product image zoomable and the smaller images below to click on and open in a lightbox effect.
Cheers -
AuthorPosts
- You must be logged in to reply to this topic.