applications/shop/widget/ContactListScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<!-- SCIPIO: Duplicated from: component://marketing/widget/ContactListScreens.xml#DefaultOptOutScreen -->
<screen name="DefaultOptOutScreen">
<section>
<widgets>
<decorator-screen name="CommonShopAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="Opt-Out Results">
<label style="common-msg-info-important" text="You have been successfully removed from the ${contactList.contactListName} mailing list!"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- SCIPIO: Duplicated from: component://marketing/widget/ContactListScreens.xml#OptOutResponse -->
<screen name="OptOutResponse">
<section>
<actions>
<service service-name="optOutOfListFromCommEvent" result-map="optOutResult"/>
<entity-one entity-name="ContactList" value-field="contactList">
<field-map field-name="contactListId" from-field="optOutResult.contactListId"/>
</entity-one>
<set field="contactListId" from-field="contactList.contactListId"/>
<set field="screenName" from-field="contactList.optOutScreen" default-value="component://shop/widget/ContactListScreens.xml#DefaultOptOutScreen"/>
</actions>
<widgets>
<include-screen name="${screenName}" share-scope="true"/>
</widgets>
</section>
</screen>
</screens>