Product properties should not be accessed directly
-
The plugin throws the following notice in some places:
Notice: id was called incorrectly. Product properties should not be accessed directly
You should replace the references to
$product->id
to$product->get_id()
and
$_product->id
to$_product->get_id()
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Product properties should not be accessed directly’ is closed to new replies.