• Resolved emmepassa

    (@emmepassa)


    Hi,
    i would ike to kwon if exist a solution for my problem:
    importing products with Wpallimport, in my file the structure of categories is (example):
    HOME>child1>child2
    How can i set the import to EXCLUDE the HOME category? thx.

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

    (@wpallimport)

    Hi @emmepassa

    How can i set the import to EXCLUDE the HOME category?

    You can use a custom PHP function to do this: http://www.wpallimport.com/documentation/developers/execute-php/. Example function:

    function my_exclude_first_cat( $cats ) {
    	$cats = explode( ">", $cats );
    	array_shift( $cats );
    	return implode( ">", $cats );
    }
    Thread Starter emmepassa

    (@emmepassa)

    Great, it works.
    I used another script starting from your suggestion.

    But now i have other problem:
    the cvs the i receive from my dropshipper have a “bad” structure:
    “man-clothes-t-shirt”

    categories separated by “-“.
    I tried to create a function the replace text “t-shirt” with “t shirt”. Works good, i create the child category “t shirt” but wpallimport create also the “T” child and the “SHIRT” child.
    Seem that when import begin, before create all categories and childs splitting by “-“.
    May u help me?

    Plugin Author WP All Import

    (@wpallimport)

    Hey @emmepassa

    Seem that when import begin, before create all categories and childs splitting by “-“.

    If you’re removing the “-” from t-shirt with a function, then this shouldn’t happen. Please replicate this issue at http://www.wpallimport.com/debug/ and open a ticket with more details at http://www.wpallimport.com/support/ so that we can have a look.

    Thread Starter emmepassa

    (@emmepassa)

    You are right.
    Now works good.
    There was categories in db that was hidden. (when i remove all categories, in the admin panel there was 37 categories but i didn’t seen). I clean the db and all goes good.
    Thx.

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

The topic ‘wpallimport categories’ is closed to new replies.