When a contact who has received a newsletter via magnews unsubscribes, they move from the Subscribed status to the Unsubscribed status on the platform.
It is possible to ensure that this information is simultaneously updated in PrestaShop to prevent the magnews contact from reverting to the Subscribed status during the next synchronization.
To perform this operation, it is necessary to modify the Unsubscribe automated flow of the considered database.
- Access the page of the Unsubscribe automated flow of the database synchronized with PrestaShop:
Contacts > DatabaseName > Manage Contacts > Service flows - Click on Unsubscribe
- From the Result section, open the Confirm button.
- Create a new button action. There are two types of unsubscribe actions for PrestaShop:
- PrestaShop: Set the Newsletter field to NO.
- PrestaShop: Set the Opt-in field to NO.
Attention
once you have created the new unsubscribe flow, remember to save but do not republish the flow to avoid losing the customizations you have made.
once you have created the new unsubscribe flow, remember to save but do not republish the flow to avoid losing the customizations you have made.
Note
To avoid re-importing previously unsubscribed contacts on PrestaShop as active contacts of the platform, ensure that in the synchronization configuration, the flag is set to Unsubscribe contacts not registered to the newsletter or Unsubscribe contacts not registered to the Opt-in partner, consistent with the button action inserted in the unsubscribe flow.
To avoid re-importing previously unsubscribed contacts on PrestaShop as active contacts of the platform, ensure that in the synchronization configuration, the flag is set to Unsubscribe contacts not registered to the newsletter or Unsubscribe contacts not registered to the Opt-in partner, consistent with the button action inserted in the unsubscribe flow.
Next article
Learn how to Subscribe contacts both on PrestaShop and on magnews