-
Notifications
You must be signed in to change notification settings - Fork 170
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
Undefined property error when loading/saving variants with descriptionFormat #1333
Comments
Here is the stack trace:
|
Appears to be an issue with |
Hi @kswilliames I can't seem to replicate this issue locally. I have put together a video showing the steps I went through https://x.n43.me/P8uRDqmE It seems like something else might be at play here. Could you send your This way we can try and identify what is going on. Thanks. |
Thanks for getting back so quickly. Here's the error I'm getting. I found a workaround for it, and a more accurate way to replicate the problem. We have a product variant custom field called Steps to reproduce
Workaround
|
|
Related craftcms/cms#918 |
Description
Commerce throws an undefined property error when getting or saving products where the product type has
descriptionFormat
set.This is preventing us from displaying legible descriptions on line-items for our invoices.
Example of descriptionFormat:
{product.title} - {title}
Steps to reproduce
Error:
error: Undefined property: craft\commerce\elements\Variant::$description
Additional info
The text was updated successfully, but these errors were encountered: