Hi,
My WP debug.log file is logging a notice with each request as follow after updating the theme to version 4.0.2. Prior to that the notice was never there.
PHP Notice: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/woodmart/woocommerce/archive-product.php’), do_action(‘woodmart_woocommerce_main_loop’), WP_Hook->do_action, WP_Hook->apply_filters, woodmart_woocommerce_main_loop, wc_get_template_part, load_template, require(‘/themes/woodmart/woocommerce/content-product.php’), wc_get_template_part, load_template, require(‘/themes/woodmart/woocommerce/content-product-quick.php’), do_action(‘woocommerce_after_shop_loop_item’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include(‘/themes/woodmart/woocommerce/loop/add-to-cart.php’), WC_Product_Variable->add_to_cart_text, apply_filters(‘woocommerce_product_add_to_cart_text’), WP_Hook->apply_filters, change_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see <a href=”https://codex.word in /public_html/wp-includes/functions.php on line 4773
As I’m in the process of setting up the website so can’t turn off notices and error.
Please fix the issue.
Thanks