WordPress.org

Support

Support » Plugins and Hacks » YITH WooCommerce Wishlist » [Resolved] Does this work with Woocommerce 1.6?

[Resolved] Does this work with Woocommerce 1.6?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well I tried the plugin on my installation with WooCommerce 1.6.6 and it doesn’t seem to work fully… the Wishlist page does not display any products (it just stops loading the table after the header row) so that seems to indicate some PHP error.

    My guess is that it isn’t made for Woocommerce prior to 2.x…

    Well, it was actually a simple fix to get this to work in older versions of WooCommerce…

    Change this line in templates/wishlist.php:

    $product_obj = get_product( $values['prod_id'] );

    to:

    if ( function_exists( 'get_product' ) )
    	$product_obj = get_product( $values['prod_id'] );
    else
    	$product_obj = new WC_Product( $values['prod_id'] );

    This didn’t work for me 🙁

    You may need to look through all the files for any instance of the get_product() function and change them from:

    $product_obj = get_product(

    to:

    $product_obj = new WC_Product(

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Does this work with Woocommerce 1.6?’ is closed to new replies.
Skip to toolbar