Giter Site home page Giter Site logo

Comments (9)

patrick-bigbridge avatar patrick-bigbridge commented on May 30, 2024 1

Ah, yes indeed, this is a recent addition, and I haven't added it to the Rest API.
Hold on, I'll get right at it.

from product-import.

patrick-bigbridge avatar patrick-bigbridge commented on May 30, 2024

Thanks Chris!

Images can be replaced by changing the "image strategy", as follows:

$config->imageStrategy = ImportConfig::IMAGE_STRATEGY_SET;

In stead of escaping the category, you can specify a different category path separator with the property "categoryNamePathSeparator", for example "Default Category#Car Parts#Brakes#Seals / Repair Parts"

$config->categoryNamePathSeparator = "#";

If you're using XML import, look for the options path-separator and image.

from product-import.

chrisastley avatar chrisastley commented on May 30, 2024

Hi Patrick,

Many thanks for the speedy reply. I'm using XML via Rest.

I can see the notes for path-separator but not image here https://github.com/bigbridge-nl/product-import/blob/master/doc/xml-webapi-import.md

Am I looking in the wrong place?

from product-import.

patrick-bigbridge avatar patrick-bigbridge commented on May 30, 2024

That's the right place, but I forgot to document this option. It should read:

image=set

I updated the page just now.

from product-import.

chrisastley avatar chrisastley commented on May 30, 2024

Great, thanks for the updated info. I'd managed to find it digging into the source code and also found another option I can't find in the documentation.

In this file vendor/bigbridge/product-import/Api/ImportConfig.php

public $categoryStrategy = self::CATEGORY_STRATEGY_ADD; const CATEGORY_STRATEGY_ADD = 'add'; // Only add and update category links const CATEGORY_STRATEGY_SET = 'set'; // Add and update category links; and also remove existing category links not named in the import

But I can't see this option in the following file;
vendor/bigbridge/product-import/Api/ProductImportWebApi.php

Is this as simple as me adding the option in or is the functionality not working?

from product-import.

chrisastley avatar chrisastley commented on May 30, 2024

Great, will keep an eye out for the next release.

from product-import.

patrick-bigbridge avatar patrick-bigbridge commented on May 30, 2024

I went through all options in the cli command and the Rest API. I put the options in the same order and added documentation.

Created a new release: 1.5.3

from product-import.

chrisastley avatar chrisastley commented on May 30, 2024

Thank you, all working as expected now.

from product-import.

garfix avatar garfix commented on May 30, 2024

That's good to hear. For now I'll close this issue, and if you find anything else, just open a new issue.

from product-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.