Discount name error
Duplicate name conflict
Last updated
Duplicate name conflict
Last updated
If you are experiencing an error when publishing a discount function, it can be due to a name conflict with another discount or function:
Conflicts may appear if your campaign name is already used as a Shopify Discount.
The Shopify Admin contains all discounts including discount functions created by Function Junction:
If you are experiencing a naming error when creating or publishing a discount, it's helpful to understand the type of discounts and how naming is affected.
When creating a discount function in Function Junction, the discount type is set to Automatic. If you manually build an Automatic discount in the Shopify Admin, it's necessary to use a unique or different name for the discount. The Shopify Admin will display an error if a Function Junction discount with the same campaign name is used:
Use unique names when building Function Junction discounts to avoid conflicts with other discounts in your Shopify Discounts folder.
When building a Discount Code type discount in the Shopify Admin, the discount code can be the same as the campaign name of a Function Junction function. However, this will supersede the Function Junction discount function and only execute the Shopify Platform discount code.
If you happen to use the same name, the Shopify discount will be triggered and not the function made in Function Junction. The platform will always supersede a third-party discount.
For test results, use a unique Discount Code from a Function Junction campaign name.