Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C1E49200CE0 for ; Fri, 11 Aug 2017 08:01:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C05FF16C4AD; Fri, 11 Aug 2017 06:01:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11F3716C4AB for ; Fri, 11 Aug 2017 08:01:56 +0200 (CEST) Received: (qmail 65902 invoked by uid 500); 11 Aug 2017 06:01:51 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 65890 invoked by uid 99); 11 Aug 2017 06:01:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 06:01:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 600581A0876 for ; Fri, 11 Aug 2017 06:01:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.301 X-Spam-Level: X-Spam-Status: No, score=-0.301 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotwaxsystems-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TIpZ3aU6yOgK for ; Fri, 11 Aug 2017 06:01:48 +0000 (UTC) Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 32AF65F245 for ; Fri, 11 Aug 2017 06:01:48 +0000 (UTC) Received: by mail-ua0-f171.google.com with SMTP id k43so11502467uaf.3 for ; Thu, 10 Aug 2017 23:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotwaxsystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=LKibfCMBQ12oEWLViMVIZqGjr35Fl5kL5T1sc7r1Scc=; b=A8jwBKz4ZjjtA2OE7FhrtOwoVGRpn6+HdEjS+s1XV+cQvFMW6CF2OAOTOtoJ8WTawU lqY1Pq0bqWrlI9BacC8bqpuqWuE8H3XTQLt8vBrUVm9LV2lrQDaEFAKXlHbRXksHSX5B S4V5cTA7wlJW04NgW00fuRGxML4/XK9iyWyzDayYmC/qcD7Qm9v8OrSq8GMzp75p7gg9 yRqUDBI0QWvwufbS4h48OzlVVr1MHeJciA3xzN7+4Q9wzRO5eTTY/r1cJ0RIKaCMZsI7 on+r6sksaFR1z4fiT+RtCC7lBlrtcu2R58/Ha6f/GOCmd3fRgyvorIR6DQ8Vz1r0Gxig BKOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=LKibfCMBQ12oEWLViMVIZqGjr35Fl5kL5T1sc7r1Scc=; b=K0PV/fSm4+I9q2GEdFU8xh/yLShrHJzFTB9AXDpD5F4ZBw51b5Qul/z0Il1zSFByLo NQ1vSyefpeNtBujW1qXPpQgcTBB5QukaK55b3c068KDrFs/IowVDHbFjXE0AWGgW1knl WRjYx7PiVXa2S+qjAPp3Hj4/A5YHnUH4JrbWuC//9B60DY0aPGZIRvI5QJl4xLzxjOXR 9KfGcnyYEFrgNIvb8lDNrCrWlpyyleeTiuWVB572lJeGmJLFYPpdp+Y1TqkJ+vjIU/WL ppy5G5xxxY1eAQd1YeEV92AVJH6E39jMHyisGtuAgDCg0cDBf3abJfdzJKTLXi/xSAit Z/7A== X-Gm-Message-State: AHYfb5h/PeN6ZlsA1RfbHTiwkHnMLtGHFzKLPpw0ahE7qMqRdLn5BQfK SIn6gpmL2BQBmzLXGjNugitvGnAL8ajBClc= X-Received: by 10.159.50.40 with SMTP id x37mr2573231uad.207.1502431306801; Thu, 10 Aug 2017 23:01:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.71.132 with HTTP; Thu, 10 Aug 2017 23:01:06 -0700 (PDT) From: Swapnil Mane Date: Fri, 11 Aug 2017 11:31:06 +0530 Message-ID: Subject: [Proposal] - Leverage the CMS capability for Product Store's Email To: Dev list Cc: Swapnil Mane Content-Type: multipart/alternative; boundary="001a1146fa76577dfe0556740c94" archived-at: Fri, 11 Aug 2017 06:01:57 -0000 --001a1146fa76577dfe0556740c94 Content-Type: text/plain; charset="UTF-8" Hello Devs, While looking into the support of email templates for Product Store, we found it is managed by screens. Like for Order Completion Here you can see, we are having dependency on screens (i.e. templates defined in file system) Due to this, the user is unable to edit the email template on the fly. We can enhance this mechanism by making the template as content driven. Here is the design plan, We can extend the ProductStoreEmailSetting entity by contentId field. While rendering email based on its type, if the contentId is present, this content will render, else system will look for bodyScreenLocation (our existing implementation) Using this we can leverage the CMS capability of the OFBiz. Right now if end user (client) wants to make any change in the email template, it required the changes in the file. If we manage this by content, the user can edit this on the fly with the help of CMS. All the inputs and suggestions are welcome! - Best Regards, Swapnil M Mane www.hotwaxsystems.com www.hotwax.co --001a1146fa76577dfe0556740c94--