• Resolved romfeo

    (@romfeo)


    In my site I have some custom fields with data from my accounting software on each variation of a variable product. I mean that each variation has a different numeric value on a custom field called accSoftID

    For my import I am using an XML and my variations are child XML elements, as you describe in your guide.

    I cant find a way to add custom fields to the variation each self… Is there a way to do it?

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

    (@wpallimport)

    Hi @romfeo

    For my import I am using an XML and my variations are child XML elements, as you describe in your guide.

    Unfortunately, there’s currently no easy way to import custom fields to variations when using the child XML elements option. You’d have to write custom code that uses our API to copy the data from your file to the variations: https://www.wpallimport.com/documentation/developers/action-reference/.

    Here is an example snippet that you can modify as needed: https://d.pr/n/wenSvE.

    Thread Starter romfeo

    (@romfeo)

    This is some seriously good support! I am amazed. I was able to amend your code to suit my needs and it worked perfectly! Thank you so much!

    Hey Hey, i have a similar problem, but, in my case, i want to import from a .CSV file, and with that code, can’t really find a work around, would appreciate some help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import custom fields to variation’ is closed to new replies.