• Customer

    Woocommere product thumbnail

    Posted by: AskinSavascisi Oct 29, 2017 at 09:19 (7 year ago)
    Hi,

    I've added some woocommerce products however some of them hasn't a product image yet so i wanted to change the product placeholder and added a little snippet.

    // Default product afbeelding veranderd
    add_action( 'init', 'custom_fix_thumbnail' );

    function custom_fix_thumbnail() {
    add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src');

    function custom_woocommerce_placeholder_img_src( $src ) {
    $upload_dir = wp_upload_dir();
    $uploads = untrailingslashit( $upload_dir['baseurl'] );
    $src = $uploads . '/2017/10/placeholder.jpg';

    return $src;
    }
    }

    with this code i changed the placeholder succesfully however on your theme at shop page it isn't working but it works on single item page. i'm adding screenshots for better understanding. It does work on stock wordpress theme (twenty seventeen).

  • Customer

    Posted by: Kazim Vu, Oct 30, 2017 at 02:10 (7 year ago)

    Hi AskinSavascisi
    In this case, my coders will check and reply asap. If you have other questions, please let me know. Also you should update to the latest theme version( it's version 1.3.3), it has fixed and compatible with the Woo Commerce 3.2.1
    Regards,
  • Customer

    Posted by: Kazim Vu, Oct 31, 2017 at 05:43 (7 year ago)

    Hi AskinSavascisi
    Please enter these codes and let me know your results.
    remove_action('woocommerce_before_shop_loop_item_title','techone_template_loop_product_thumbnail',10);
    add_action('woocommerce_before_shop_loop_item_title','techone_template_loop_product_thumbnail_custom',10);
    function techone_template_loop_product_thumbnail_custom(){
    // Do something
    }
    Regards,

INSTALLATION SERVICE

Theme Installation: $49. Pay now

CUSTOMIZED SERVICES

Use our expert service to turn your ideas into reality. Please send an email to kutethemes@gmail.com to provide the more detailed information. Thanks!

WORKING TIME

Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM
+ 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible