Replies: 1 comment 4 replies
-
|
Are you doing this to bulk import/update products? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I run
I get this in my MySQL column, which is what I want it to be.
{"name": {"webstore": {"da": "Name", "en": null}}, "erp_id": {"webstore": {"da": "asdasd-sadasd-asdasdasd-asdasd", "en": null}}, "page_title": {"webstore": {"da": "A Title", "en": null}}, "description": {"webstore": {"da": "Text1", "en": null}}, "short_description": {"webstore": {"da": "Text1", "en": null}}}which is what I want, but when I run this code:
Then is get this in my MySQL column
{"name": {"da": "Name"}, "erp_id": {"da": "asdasd-sadasd-asdasdasd-asdasd"}, "page_title": {"da": "A Title"}, "description": {"da": "Text2"}, "short_description": {"da": "Text2"}}I want to run clean code as possible and avoid making a separate function to update a product or a variant for that matter.
Is it possible in the model to change to attribute setter to also do it when its update?
Beta Was this translation helpful? Give feedback.
All reactions