ilscipio/scipio-erp

View on GitHub
applications/shop/widget/EmailOrderScreens.xml

Summary

Maintainability
Test Coverage
<?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">

    <screen name="OrderConfirmNoticePdf">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderConfirmationNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}"/>
                <set field="title" value="Order"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/CompanyHeader.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
                    <!-- at the top left of every page we put the logo and company information -->
                    <decorator-section name="topLeft">
                        <!-- the contach mechanisms, terms, payment and shipping methods are shown in the first page -->
                        <platform-specific>
                            <xsl-fo><html-template location="component://order/webapp/ordermgr/order/orderReportContactMechs.fo.ftl"/></xsl-fo>
                        </platform-specific>
                    </decorator-section>
                    <!-- at the top right of every page we put the order information -->
                    <decorator-section name="topRight">
                        <include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml"/>
                        <platform-specific>
                            <xsl-fo><html-template location="component://order/webapp/ordermgr/order/orderReportHeaderInfo.fo.ftl"/></xsl-fo>
                        </platform-specific>
                    </decorator-section>
                    <decorator-section name="body">
                        <!-- order items and totals -->
                        <platform-specific>
                            <xsl-fo><html-template location="component://order/webapp/ordermgr/order/orderReportBody.fo.ftl"/></xsl-fo>
                        </platform-specific>
                        <!-- return policies and notes are shown in the last page -->
                        <platform-specific>
                            <xsl-fo><html-template location="component://order/webapp/ordermgr/order/orderReportConditions.fo.ftl"/></xsl-fo>
                        </platform-specific>
                    </decorator-section>
                    <decorator-section name="footer">
                       <platform-specific>
                           <xsl-fo><html-template location="component://order/webapp/ordermgr/order/pdf/ScipioOrderFooter.fo.ftl"/></xsl-fo>
                       </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OrderConfirmNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderConfirmationNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}"/>
                <set field="allowAnonymousView" value="Y"/>  <!-- this field will instruction OrderStatus.groovy to allow an anonymous order to be viewed by anybody, so the email confirmation screen will work -->
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/OrderNoticeEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OrderCompleteNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderCompleteNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/OrderNoticeEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="BackorderNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderBackorderNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <set field="allowAnonymousView" value="Y"/>  <!-- this field will instruction OrderStatus.groovy to allow an anonymous order to be viewed by anybody, so the email confirmation screen will work -->
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/OrderNoticeEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="OrderChangeNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderChangeNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <set field="allowAnonymousView" value="Y"/>  <!-- this field will instruction OrderStatus.groovy to allow an anonymous order to be viewed by anybody, so the email confirmation screen will work -->
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/OrderNoticeEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="PaymentRetryNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderPaymentRetryNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/emailpayretry.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="PaymentChangeNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderPaymentRetryNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/emailpaychange.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="PaymentCompletedNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleOrderPaymentRetryNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/emailpaycompleted.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <!-- SCIPIO: added 2.1.0: New email notification for abandoned carts -->
    <screen name="RecoverAbandonedCart">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleCartRecoveryReminder}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/cart/PrepareCartRecovery.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/RecoverAbandonedCart.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <!-- SCIPIO: added 2.0.0: Added new email notification for shipment sent -->
    <screen name="ShipmentSentNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleShipmentSentNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/ShipmentStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/ShipmentNotificationEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ShipmentCompleteNotice">
        <section>
            <actions>
                <property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="title" value="${uiLabelMap.PageTitleShipmentCompleteNotice}"/>
                <set field="baseEcommerceSecureUrl" value="${baseSecureUrl}${baseWebappPath}/control"/>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/ShipmentStatus.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="ScipioEmailDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <platform-specific><email><html-template location="component://shop/templates/email/ShipmentNotificationEmail.ftl"/></email></platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    
    <!-- SCIPIO -->
    <screen name="orderheader">
        <section>
            <widgets>
                <platform-specific><email><html-template location="component://shop/webapp/shop/order/orderheader.ftl"/></email></platform-specific>
            </widgets>
        </section>
    </screen>

    <screen name="orderitems">
        <section>
            <actions>
                <script location="component://shop/webapp/shop/WEB-INF/actions/order/OrderItems.groovy"/>
            </actions>
            <widgets>
                <platform-specific><email><html-template location="component://shop/webapp/shop/order/orderitems.ftl"/></email></platform-specific>
            </widgets>
        </section>
    </screen>

    <screen name="emailcart">
        <section>
            <actions>
<!--                <script location="component://shop/webapp/shop/WEB-INF/actions/cart/ShowCart.groovy"/>-->
            </actions>
            <widgets>
                <platform-specific><email><html-template location="component://shop/templates/email/emailcart.ftl"/></email></platform-specific>
            </widgets>
        </section>
    </screen>
</screens>