The current way of exporting discounts via Entity module directly makes discounts be deleted and recreated, resulting in their ids being changed and thus breaking relationship with promo codes.
The current way of exporting discounts via Entity module directly makes discounts be deleted and recreated, resulting in their ids being changed and thus breaking relationship with promo codes.
Comments
Comment #2
recidive commentedAttached patch fix this by overriding standard entities exporting and making it only update existing coupon codes, keeping discount/promo codes relationship.
Comment #3
recidive commentedFixed inc file description.
Comment #4
recidive commentedSimplified how $discount->status is set.
Comment #5
recidive commentedUpdated patch.
Comment #6
recidive commentedUpdated patch.
Comment #7
rszrama commentedComment #9
recidive commentedCommitted patch in #6.