Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, It would be possible with some freelance coding. If you are interested in, please contact me at [email protected]. Thanks!

    There is solution for yith-woocommerce-compare.2.0.0 and woocommerce.2.3.13 (wordpress 4.3.1)

    In class.yith-woocompare-helper.php at public static function standard_fields add

    'character' => __( 'Characters', 'yith-wcmp' ),

    In class.yith-woocompare-frontend.php at public function get_products_list add

    case 'character':
    $chars = get_post_meta($product_id, 'characteristics' );
    $product->fields[$field] = $chars[0];
    break;

    after

    case 'description':
    $product->fields[$field] = apply_filters( 'woocommerce_short_description', $product->post->post_excerpt );
    break;

    where characteristics is My Custom Field.

    This don’t work on older version of yith-woocommerce-compare
    This don’t work on woocommerce2.4.x

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compare products by custom fields’ is closed to new replies.