Migrating Discount Codes and Order Discount Information from Shopify
When migrating your store using the SHOPLINE Multi-platform Store Migration app, SHOPLINE supports migrating discount codes and discount information within orders from Shopify.
This article explains the feature overview, operation steps, and related rules for migrating discount codes and order discount information.
Feature Overview
Discount codes are an important marketing tool used to apply order incentives, including product discounts, order discounts, and shipping discounts.
With this feature, you can:
- Migrate Shopify discount codes to SHOPLINE
- View usage data of active discount campaigns
- View applied discount codes and discount amounts within orders
Please take note of the following when migrating discount codes and orders:
- Discount code migration depends on product and customer data
- To migrate orders, you must migrate discount codes first or simultaneously.
How to Migrate Discount Codes and Order Discount Information
Follow the steps below when performing data migration:
- Log in to your SHOPLINE Admin and go to the Migration Tool page.
- In the left panel, select the following migration modules:
- Products
- Customers
- Discount Codes
- Orders
- In the Advanced Settings on the right panel, select Apply discount codes when creating orders.
| Important: If you want the migrated discount codes to display usage count, order volume, and order details, this option must be selected during the initial order migration. |
- Click Next > Relocate immediately to begin the task.
Discount Code Migration Rules
Please review the following rules before using this feature:
Supported Scope and Limitations
Expired or invalid discount codes are not supported for migration.
| Discount Type | Supported? |
| Order discount – order amount off | Yes |
| Product discount – product amount off | Yes |
| Product discount – Buy X Get Y | Yes |
| Shipping discount – Free shipping | Yes |
| Nth item discount | No |
| Bundle pricing (M items for N price) | No |
| Lowest price waiver | No |
Customer Segmentation Handling
Since customer segmentation rules are not currently supported, discount codes that include them will fail to migrate by default.
If you want to prioritize successful migration, follow these steps:
- Under Discount code relocation settings, select The "Customer Segment" conditional discount rule is relocated according to "All Users". The system will change the applicable scope to All customers and proceed with migration.
| Note: This will affect the original discount scope. Please proceed with caution. |
- After migration, you can reconfigure customer segmentation rules on the SHOPLINE Admin.
Discount Code Status Settings
| Scenario | System Behaviour |
| The default status of the relocated discount code is "Disabled" is enabled. | All discount codes will be set to “Disabled” after migration and require manual activation. |
| The default status of the relocated discount code is "Disabled" is disabled. | Discount code status remains the same as the original platform; active codes will take effect immediately. |
Order Discount Code Migration Rules
Whether to Redeem Discount Codes
When migrating orders, you can choose whether to redeem discount codes:
| Scenario | System Behavior |
| Apply discount codes when creating orders is not selected. |
|
| Apply discount codes when creating orders is selected. |
|
Handling Migration Failures
When Apply discount codes when creating orders option is selected, if a discount code in the order cannot be redeemed (e.g., expired, invalid, or campaign does not exist), the order migration will fail.
In this case, please first check whether the discount code used in the order is expired or invalid. If you would like to prioritize successful order migration:
- Restart the order migration task. Uncheck Apply discount codes when creating orders and run the migration again.
- Orders will be migrated successfully, but the discount codes will not be redeemed and usage data will not be recorded.
| Note: If discount codes are not redeemed, order amounts will not be affected, but the usage data (e.g., usage count, number of orders) will not be recorded. |
Frequently Asked Questions
Q1: Why were some discount codes not migrated successfully?
A1: This may be because the discount codes are expired, invalid, or contain customer segmentation rules, which are currently not supported.
Q2: Why did order migration fail?
A2: If Apply discount codes when creating orders is selected and the code cannot be redeemed (e.g., expired), order creation will fail.
Q3: Can I backfill discount usage data by re-running migration?
A3: No. Discount code redemption must be completed during the initial order migration.