• royrogers

    (@royrogers)


    I found a BUG WARNING:

    1-‘WC_Product::get_dimensions’, ‘3.0’, ‘By default, get_dimensions has an argument set to true so that HTML is returned. This is to support the legacy version of the method. To get HTML dimensions, instead use wc_format_dimensions() function. Pass false to this method to return an array of dimensions. This will be the new default behavior in future versions.

    You should change wpc-smart-compare.php on line 1156 from

    $wooscp_products_data[ $wooscp_product ][‘dimensions’] = $product->get_dimensions();

    to

    $wooscp_products_data[ $wooscp_product ][‘dimensions’] = wc_format_dimensions( $product->get_dimensions( false ) );

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

    (@wpclever)

    Hi @royrogers,

    Thank you for reporting this issue. I’ll transfer this information to our developers so that they can check and fix it as soon as possible.

    Hopefully, this will be solved in the next update of this plugin.

    We wish you all the best during this special time.
    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘BUG WARNING AND SOLUTION: WC_Product::get_dimensions’, ‘3.0’’ is closed to new replies.