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

Add the ability to attach topics to images in products import #57

Open
lrydzkowski opened this issue Feb 14, 2023 · 0 comments
Open

Add the ability to attach topics to images in products import #57

lrydzkowski opened this issue Feb 14, 2023 · 0 comments

Comments

@lrydzkowski
Copy link
Contributor

Hi, could you add the ability to attach topics to images in products import?
I would like to be able to build JsonSpec object in the following way (look at spec.items[0].variants[0].images[0].topics):

const spec: JsonSpec = {
  items: [{
      externalReference: 'test1',
      name: 'Test',
      shape: 'test-shape',
      vatType: 'Norge',
      parentCataloguePath: '/import-test',
      variants: [{
          name: 'Test',
          sku: 'test-sku',
          images: [{
              src: 'https://hageland.no/wp-content/uploads/2019/03/peppermyntebusk-16.jpg',
              altText: {
                no: 'Test alt text',
              },
              caption: {
                no: {
                  html: '<p>Test caption</p>',
                },
              },
              topics: [{
                  path: '/test/brun'
                }, {
                  path: '/test/hvit'
                },
              ],
            },
          ],
        },
      ],
      topics: [{
          path: '/test/brun'
        }, {
          path: '/test/hvit'
        },
      ],
    },
  ],
};
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