#ChineseWeebster
1 messages · Page 1 of 1 (latest)
Hi there! What have you tried so far?
I've tried converting the response to a generic dict but got name 'default_price' is not defined
Creating the product should return a product object. Are you able to log the result of Product.create?
Yes
Okay, are you able to inspect the product object? Does it contain a value for default_price?
Yes, it shouldn't be null, but I haven't been using py for terribly long
I don't think you need to convert it to a dict. Are you storing the results of your create call into a variable? If so, you should then be able to use variable_name.default_price to access that ID
I'll try that one more time
I may not have the syntax correct though 🤔