Support » Plugin: WPC Product Bundles for WooCommerce » Import/export product bundles

  • kon30fyllou

    (@kon30fyllou)


    I tried to export product bundles and import them to another site with the same products. The problem is that the product ids are different and even though all data is imported, the relation between bunles and bundled products is not correct. Any possible solutions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kon30fyllou

    (@kon30fyllou)

    Maybe one solution would be to also import the ids of all products. I am not sure if this is a good practice though. The website where I will import the products is a fresh install. If I mess up with ids would it cause any problem in the WordPress installation?

    Plugin Author WPClever

    (@wpclever)

    Hi @kon30fyllou

    Yes, that is right. Our plugin saves the bundled product IDs in the configuration, so the product IDs on the target site need to be the same as the source site to make it works correctly.

    If not, please add the below snippet (How to add custom code?):

    add_filter( 'woosb_use_sku', '__return_true' );

    Then the bundle will save the SKUs instead of IDs and it will be corrected during exporting/importing.

    In this case, you need to set the SKU for all bundled products. Edit the bundles and save the changes then you can export/import them.

    Thread Starter kon30fyllou

    (@kon30fyllou)

    Thank you for your answer. Which solution is better? Since the new site is a fresh install, I think that it is better not to import all product ids, right? I will try the SKU solution.

    Plugin Author WPClever

    (@wpclever)

    Even it’s a fresh website, the IDs weren’t the same as the original website. So, you should use the SKU instead.

    Thread Starter kon30fyllou

    (@kon30fyllou)

    I tried to use your code in both sites and export-import the smart bundles. It did work but the connected products aren’t shown in product page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Import/export product bundles’ is closed to new replies.