Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve warning accessing product type #16

Open
jorgepcbraz opened this issue Jun 2, 2020 · 0 comments
Open

Solve warning accessing product type #16

jorgepcbraz opened this issue Jun 2, 2020 · 0 comments

Comments

@jorgepcbraz
Copy link

Hi, in

you were calling
if( $product->product_type != 'simple' ) {
return $default;
}

and that should be corrected to
if( $product->is_type( 'simple' ) ) {
return $default;
}

I will create a PR to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant