Closed mariusmateoc closed 6 months ago
Well, obviously the global $product you are referring to does not match the actual product instance injected into the filter. If you wanted to get the original $product from the $gzd_product you could use:
$wc_product = $gzd_product->get_wc_product();
Using the global $product doesn't make sense within the filter.
Best, Dennis
I'm using the following filter and getting different results when I use
has_term()
using$product
than when I use it with$gzd_product
.Don't know if this is what should happen or is a bug.