price called incorrectly
-
Hi guys,
I would like some help with the following errors which slowing down my webshop alot..[16-Jul-2023 12:36:52 UTC] The woocommerce_price function is deprecated since version 3.0. Replace with wc_price.
[16-Jul-2023 12:36:52 UTC] price was called incorrectly. Producteigenschappen mogen niet rechtstreeks aangeroepen worden. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_nm_suggestions_product_data’), WP_Hook->do_action, WP_Hook->apply_filters, NM_Search_Suggestions->instant_suggestions_get_product_data, WC_Product_Variable->get_price_html, apply_filters(‘woocommerce_variable_price_html’), WP_Hook->apply_filters, wphelpdesk_variate_prijs_verschil, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
I found this in the /wc-deprecated-functions.php- @deprecated 3.0
*/
function woocommerce_price( $price, $args = array() ) {
wc_deprecated_function( FUNCTION, ‘3.0’, ‘wc_price’ );
return wc_price( $price, $args );
}
Any one can help me to solve these two?
The page I need help with: [log in to see the link]
- @deprecated 3.0
The topic ‘price called incorrectly’ is closed to new replies.