• Resolved Wajid Ullah Khan

    (@wajid-ullah-khan)


    As per instruction in FAQ of this plugin, to customize compare table.
    I did the same. i copied the template folder from plugin and paste in theme folder Woocommerce.
    But it’s not showing any change.
    is there any other way to show custom fields product compare table.
    Basically i want to show custom fields in Product Comparison table.
    I have used Advanced Custom Fields plugin for custom fields, and created some custom fields for product.

    Thanks

    https://wordpress.org/plugins/yith-woocommerce-compare/

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)
  • The topic ‘Customize Compare Table’ is closed to new replies.