Hi,

Congratulations on the module, looks very promising and easy to use.

Does it handle taxonomy hierarchies and if yes how should the data be formatted?

Regards,

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mellowtothemax created an issue. See original summary.

DavorHorvacki’s picture

Hi, thank you,
For now you can't create hierarchies directly from CSV.
I thought about this, and once created function but never integrated it, at the time I thought parent->child is nice format. But I'll think about format.
Until I add support for this you can create hierarchical structure before you start importing and just put name of child taxonomy that should be used for field.
If you have any suggestions about format tell me here.

mellowtothemax’s picture

Ok thanks. Yes I did do that, it works the way you state but sometimes there is a need for hierarchical import due to some shops having duplicate child names for terms under different parents.

Regards,

suganthisam made their first commit to this issue’s fork.

suganthisam’s picture

Hi,

I am a Drupal developer, I am facing a challenge in the "Commerce Smart Import-Module". Importing category and subcategory with same name of subcategory we need to use that time we try to import it's not supported, even with category we specified also.

Details are given below, we are using:

Drupal version: 9.3

Commerce Smart import - module :^1.0@alpha

Apache & php : 8.1 version

Mysql :10 version

Eg:

Multiple taxonomy hierarchy:

-Home
--Accessories
--Kitchen
--Office

-OutDoors
--Accessories

-Beach
--Accessories

Importing the taxonamy categories form csv :

Home|Accessories
OutDoors|Accessories
Beach|Accessories

Has to pointed like this but is not working as this, instead of that Car is selected and motorcyles - brakes is getting selected

Original Module Output:

-Home -->selected in selectbox after imported
--Accessories
--Kitchen
--Office

-OutDoors
--Accessories -->selected in selectbox after imported

-Beach
--Accessories

Expected Output :

eg:1

-Home -->selected in selectbox after imported
--Accessories -->selected in selectbox after imported
--Kitchen
--Office

-OutDoors
--Accessories

-Beach
--Accessories

OR

eg:2

-Home
--Accessories
--Kitchen
--Office

-OutDoors -->selected in selectbox after imported
--Accessories -->selected in selectbox after imported

-Beach
--Accessories

OR

eg:3

-Home -->selected in selectbox after imported
--Accessories -->selected in selectbox after imported
--Kitchen
--Office

-OutDoors -->selected in selectbox after imported
--Accessories -->selected in selectbox after imported

-Beach -->selected in selectbox after imported
--Accessories -->selected in selectbox after imported

Please support us we are waiting for you suggestions ,

Advance Thanks,