Giter VIP home page Giter VIP logo

Comments (13)

wagnert avatar wagnert commented on June 3, 2024

@serik303 Hm, for sure it is ;-) You can replace the CSV adapter with whatever you want. There is no documentation, but if you explain me what to do and give me some example data, I can guide you through the implementation :)

from import.

serik303 avatar serik303 commented on June 3, 2024

Tim, you are the best :)
example is very simple, i have, for example, one row from csv as array:

$attribute_set_to_import = (
        "attribute_set_name" => "Bag",
        "based_on" => "Default",
        "entity_type_code" => "catalog_product"
...
u s w
...
);

how can I import $attribute_set_to_import without saving an csv file?

thanks you

from import.

serik303 avatar serik303 commented on June 3, 2024

can you pls label issue as a question?

from import.

wagnert avatar wagnert commented on June 3, 2024

Hi @serik303, done. As I’m not in office today, please give me a couple of times to investigate into that topic 🙂

from import.

serik303 avatar serik303 commented on June 3, 2024

it's ok :)

a little bit more what i mean: possibility to use import from external script like:

<?php
include(some/magic/m2if-php-file);
$attribute_set = an multidimensional array with attribute set(s) based on CSV File Structure 
$categories = an multidimensional array with categories based on CSV File Structure
... etc. for all core components

then something like

$import_result = m2if_import($some_array, "command", "operation", "some_other_options");

where
"command" is categories, attributes, products etc.,
"operation" is one from add-update, replace and delete,
"some_other_options" - maybe something what i don't know yet :)

from import.

wagnert avatar wagnert commented on June 3, 2024

@serik303 Good morning. I have been thinking about your question. Can you give me a little bit more context about what you plan to do? What you wrote about is something like a function wrapper around the import command, right? Where do you plan to integrate it and what is the reason why you want to do it this way?

from import.

serik303 avatar serik303 commented on June 3, 2024

Moin, Tim!

Plan? It's simple - import/save my products, but why this way?
Because I save it single, one by one, most of the time one configurable + a couple of simple products at a time, but this applies not only to products: attribute set, attributes with values and categories too... single for each product.

Way how I can do it now, is to save csv files each for attribute set, attributes, categories and products and import it one by one. It’s better to be able to do it "on the fly" without saving the scv files.

Yes, i can do it other ways, bootstrap magento app, or use rest/soap api, but this is not my way :)

from import.

wagnert avatar wagnert commented on June 3, 2024

Ok, understand so far :) But where did you get the data - in your case the array from? A webservice?

from import.

serik303 avatar serik303 commented on June 3, 2024

I parse html files from supplier to this array

from import.

wagnert avatar wagnert commented on June 3, 2024

Ok, I would recommend to switch to the Gitter chat, what do you think?

from import.

serik303 avatar serik303 commented on June 3, 2024

ja, chat ist besser
habe noch niemals Gitter chat benutz, aber habe schon installiert

from import.

wagnert avatar wagnert commented on June 3, 2024

Dann schreib mich mal kurz in einem privaten Chat an, dann können wir das detaillierter diskutieren :)

from import.

wagnert avatar wagnert commented on June 3, 2024

@serik303 I'll close this issue in favor of techdivision/import-cli-simple#236.

from 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.