WP All Import / Import
Permalink Import of existing vouchers
This sample file shows you how your file for importing your vouchers to our custom post types from Printy Coupons could be structured:
Here are some import instructions from WPAI that will certainly help you in general: https://www.wpallimport.com/documentation/woocommerce/overview/
Import example

Once you have completed your import file, go to your WordPress backend under:
All Import -> New Import
First select your import file and then click on “Vouchers” under “New Items”:

Go to “Set Up Import” and assign your fields in the next step.
1) Title & Content

{title[1]} = Voucher code
2) Custom Fields

value_total = Voucher value
value_remaining = Remaining value of the voucher
3) Other Gutschein Options

Under “Other Voucher Options,” you can also import the creation date under “Post Dates.”
4) Unique Identifier
The next step is to set your “unique identifier.”

and then start the import.
5) Backend-Overview
The vouchers should now be successfully imported and created under “Vouchers (Printy Coupons).” You just need to make sure to fill in the corresponding fields in Printy Coupons when importing.
Permalink Import without WP All Import
To import your existing vouchers, you would need to create your own import script that reads your vouchers from the database and then migrates them to our custom post types. By default, vouchers are created in “Printy Coupons” as follows:
$post_id = wp_insert_post( array(
'post_type' => 'im_voucher',
'post_status' => 'publish',
'post_title' => GUTSCHEINCODE,
) );
update_post_meta( $post_id, 'value_total', GUTSCHEIN_GESAMTBETRAG );
update_post_meta( $post_id, 'value_remaining', GUTSCHEIN_RESTBETRAG );
