• Resolved rafiktech

    (@rafiktech)


    hello, I hope you have a nice day

    I just want to ask about how I can remove the symbol before my categories when I import from my file like this

    {category}|my baby|{/category} I need to remove this two || symbols

    I make this on mapping option but not succeed ???

    the second issue can I integrate category from XML file in a specific category that I have in my store ??

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

    (@wpallimport)

    Hi @rafiktech

    {category}|my baby|{/category} I need to remove this two || symbols

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

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

    the second issue can I integrate category from XML file in a specific category that I have in my store ??

    Yes – WP All Import converts the category name that you import to its slug value and searches for existing categories to use before it creates it as a new one. If you’re trying to match an existing child category then make sure to import the full hierarchy: see documentation.

    Thread Starter rafiktech

    (@rafiktech)

    thank you for your reply

    I tried to write this function a lot of times without successful

    like this in the function editor

    [str_replace(“|”,””,{KategoriAdi[1]})] and show me error then in this

    [str_replace(‘|’,’ ‘,'{KategoriAdi[1]}’)]

    not work

    see this image

    https://ibb.co/C9CB97V

    for the second issue I mean if I have my own category how I can insert the products in that category the example B in the documentation I don’t know what I should write in
    that filed!!!

    from where I will give the wpallimport my category???

    Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    I tried to write this function a lot of times without successful

    This is a core PHP function, so you don’t have to put anything in the Function Editor, you just need to call it from the category field. It should be:

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

    for the second issue I mean if I have my own category how I can insert the products in that category

    I think we’ll need to see your data file and a manually created example of the existing category to properly advise on this. Please manually create the category you’re trying to import into on a demo site at https://www.wpallimport.com/debug/, then open a ticket at https://www.wpallimport.com/support/ with the details (link to demo site, copy of import file, etc).

    Thread Starter rafiktech

    (@rafiktech)

    thank you for your reply

    the problem when I add the function as you write the editor shows me this error message

    https://ibb.co/w43Z7yP

    and this one of my product to look for it

    https://ibb.co/qspXhg6

    Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    the problem when I add the function as you write the editor shows me this error message

    The function needs to be in the import template inside the “Taxonomies, Categories, Tags” section, not in the Function Editor. See: https://d.pr/i/mPY5kN.

    Thread Starter rafiktech

    (@rafiktech)

    thank you for replying to me

    if I have two filed like Parkwood and brand name how I can import them from file XML to my products

    also if I want to add some word in the description just add them before the {(description)} from a file

    Plugin Author WP All Import

    (@wpallimport)

    Hi @rafiktech

    if I have two filed like Parkwood and brand name how I can import them from file XML to my products

    Where would you save these values if you were manually creating the product?

    also if I want to add some word in the description just add them before the {(description)} from a file

    Yes, you could do that. Are you running into issues when trying this?

    Plugin Author WP All Import

    (@wpallimport)

    I’m marking this as resolved because we haven’t heard back. @rafiktech if you still have questions about this issue please post them here. Anyone else, please start a new thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘customize my categories’ is closed to new replies.