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

product_id is a hash key, not an object property #65

Open
ondrej opened this issue May 1, 2016 · 1 comment
Open

product_id is a hash key, not an object property #65

ondrej opened this issue May 1, 2016 · 1 comment

Comments

@ondrej
Copy link

ondrej commented May 1, 2016

Changing $item->product_id to $item['product_id'] in woocommerce.php:296 and woocommerce.php:301 fixes this problem:

PHP message: PHP Notice: Trying to get property of non-object in {path}/web/app/plugins/segmentio/integrations/ecommerce/woocommerce.php on line 296

PHP message: PHP Notice: Trying to get property of non-object in {path}/web/app/plugins/segmentio/integrations/ecommerce/woocommerce.php on line 301

@zstepek
Copy link

zstepek commented Apr 24, 2017

The correct way to fix this would be to use the new get_id() method on the product object, I believe.

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

No branches or pull requests

2 participants