• Resolved strarsis

    (@strarsis)


    I assigned a field from CSV to an attribute field and enabled “Is Taxonomy” and “Auto-Create Terms”. The values in CSV field are comma separated (Term 1, Term 2, Term 3, …).
    However, the importer doesn’t split these terms by comma, for each product the whole string is used as new term.
    I could use the taxonomy feature instead, but then this wouldn’t be a WooCommerce product attribute anymore, but become an unrelated generic taxonomy.

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @strarsis

    The attribute value field requires that the terms are separated by the pipe symbol “|”. To fix this without editing your import file, you can use the str_replace function like so:

    [str_replace( ",", "|", {colors[1]} )]

    Just replace {colors[1]} with the element from your file that contains the term values. You can read more about PHP functions in imports here: http://www.wpallimport.com/documentation/developers/execute-php/.

    Thread Starter strarsis

    (@strarsis)

    Awesome feature, thanks!

    i have same problem

    my csv is

    attributes
    Τύπος θήκης:: για λαμπτήρες;; Είδος στελέχους:: BA15S;; Έξοδοι:: Καλώδια;; Κατασκευαστής:: ELTA

    so i have to import 4 attributes from above the :: operator saparates name from value and the ;; separates the attributes. SO HOW DO I MPORT ?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Auto-Create terms for attribute field doesn’t split’ is closed to new replies.