ho-nl / magento2-Ho_Import

38 stars 20 forks source link

Profile creating #9

Closed narmontase closed 4 years ago

narmontase commented 6 years ago

Hi, Can't create profile. I used example http://cloud.h-o.nl/500cacad72dc As I understand this part has to be different for me:

ReachDigital\Waardijak\Import\ProductImport

For example how to create profile for ExampleProfile.php that you have included?

paales commented 6 years ago
  1. Create your own module.
  2. Add your profile to your di.xml
  3. flush cache
  4. Should now turn up in the ho:import:run command
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Ho\Import\Model\ImportProfilePool">
        <arguments>
            <argument name="profiles" xsi:type="array">
                <item name="my_import" xsi:type="object">Company\ImportModule\Import\ ExampleProfile </item>
            </argument>
        </arguments>
    </type>
</config>
Puigdemunt commented 4 years ago

I get "Profile not in profilelist: my_import"

paales commented 4 years ago

Please check if the module is enabled and working properly.