• Resolved juanjer

    (@juanjer)


    Hello!
    I have several xml files. One with product data (simple products and variable products with a parent SKU) and one with prices.

    My problem is that the prices xml only has the parents SKU since all the variations have the same price. How can I assign all the variable products the price of the parents SKU?

Viewing 2 replies - 1 through 2 (of 2 total)
  • RandomDude

    (@gazuots)

    I saw in WPAI documentation there is code how to merge 2 import files into one

    Plugin Author WP All Import

    (@wpallimport)

    Hi @juanjer,

    How can I assign all the variable products the price of the parents SKU?

    You can do that with custom code and our API: https://www.wpallimport.com/documentation/action-reference/.

    I saw in WPAI documentation there is code how to merge 2 import files into one

    Yes, but it would probably be easier to hook into ‘pmxi_saved_post’ (see the link above) and programmatically copy the prices to the product variations instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I assign all the variable products the price of the parents SKU?’ is closed to new replies.