• At the moment it is not possible to determine which image to use. And so the featured image is used.
    However, it would be great to be able to choose an image at the product level that WPC Linked Variation for WooCommerce is allowed to use.

    This is especially nice on mobile devices. Because the hover function here doesn’t work on mobile devices.

    That’s why the question is whether you can arrange something like this. That makes the plugin really perfect.

Viewing 1 replies (of 1 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @pauldebont

    This is a special requirement and we haven’t a plan to add this feature yet.

    You can follow these steps:

    1. Add a new custom field with the same name “wpclv_image” for each product https://www.screencast.com/t/fl4UID2za

    2. Add below custom snippet (How to add custom snippet?):

    add_filter( 'wpclv_term_image', 'wpclv_custom_term_image', 99, 3 );
    function wpclv_custom_term_image( $term_image, $term, $product_id ) {
    	if ( $product_id && ( $img = get_post_meta( $product_id, 'wpclv_image', true ) ) ) {
    		$term_image = '<img src="' . esc_url( $img ) . '"/>';
    	}
    
    	return $term_image;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Request: Determine at product level which image is used’ is closed to new replies.