Comments (13)
@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.
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.
can you pls label issue as a question?
from import.
Hi @serik303, done. As I’m not in office today, please give me a couple of times to investigate into that topic 🙂
from import.
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.
@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.
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.
Ok, understand so far :) But where did you get the data - in your case the array from? A webservice?
from import.
I parse html files from supplier to this array
from import.
Ok, I would recommend to switch to the Gitter chat, what do you think?
from import.
ja, chat ist besser
habe noch niemals Gitter chat benutz, aber habe schon installiert
from import.
Dann schreib mich mal kurz in einem privaten Chat an, dann können wir das detaillierter diskutieren :)
from import.
@serik303 I'll close this issue in favor of techdivision/import-cli-simple#236.
from import.
Related Issues (20)
- Interrupt rendering of validation errors up from a configurable number
- Slash in category name HOT 9
- Extract functionality to clean-up empty columns from AbstractOberserver::mergeEntity() method HOT 2
- Refactor PAC-96 image override option
- Mandatory ok file on import:products:price
- Clean-up-empty-columns not work on EAV attributes not serialized in addtional_attributes
- Disable the stock observer on the fly if there are no columns defined that are related to stock. HOT 5
- Call to undefined method TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessor::removeUrlRewrite() HOT 2
- Empty .OK file results in error message
- Change default import directory from var/importexport to var/pacemaker/import
- GLOB_BRACE is not available on Alpine Linux HOT 5
- Add support for NativeMailerHandler
- "Integrity constraint violation: 1048 Column 'entity_id' cannot be null" while importing products HOT 9
- Importing files with CRLF line endings leads to unexpected results HOT 2
- Stricter validation of column 'categories' in product import
- Attribute set group sortorder is not taken into consideration HOT 1
- Attribute visual swatch unable to render properly HOT 2
- Add functionality to pass an exit code when stopping the application HOT 11
- Properly support slashes in Category names HOT 1
- url_rewrite key constraint violation when the database has old rewrites HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from import.