I'm facing some problem
can anybody help me if possible i have created a plugin and extended the ecommerce plugin i successful created templates and view-map in controller.xml but when i saw the source of html page i notice that the page is using my templets as well as the existing templets of the ecommerce after creating Theme.xml and fixing header and footer in the html page source is still showing me the same thing it's header and footer are still coming from ecommerce In simple words how can i use my own created templete rather than using the templete of existing ecommerce application in my own application |
Hi Shrilesh Korgaonkar
Your email has been moderaed, Please subscribe mailing list https://ofbiz.apache.org/mailing-lists.html Regarding your query, Please check the main-decorator, you can find main decorator location in web.xml in your plugin. Thanks & Regards — Deepak Dixit On Tue, 18 Sep 2018 at 5:31 AM, Shrilesh Korgaonkar < [hidden email]> wrote: > I'm facing some problem > can anybody help me if possible > i have created a plugin and extended the ecommerce plugin > i successful created templates and view-map in controller.xml > but when i saw the source of html page > i notice that the page is using my templets as well as the existing > templets of the ecommerce > after creating Theme.xml and fixing header and footer in the html page > source is still showing me the same thing it's header and footer are still > coming from ecommerce > > In simple words > how can i use my own created templete rather than using the templete of > existing ecommerce application > in my own application > Thanks & Regards -- Deepak Dixit |
In reply to this post by Shrilesh Korgaonkar
Hello Shrilesh,
Check the decorator screens locations in view-map path screens. You will need to create/use your custom decorator. Kind Regards, Arun Patidar Director of Information Systems *HotWax CommerceReal OmniChannel. Real Results.* m: +91 9827353082 w: www.hotwax.co <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.facebook.com/HotWaxCommerce/> <https://twitter.com/hotwaxcommerce> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < [hidden email]> wrote: > I'm facing some problem > can anybody help me if possible > i have created a plugin and extended the ecommerce plugin > i successful created templates and view-map in controller.xml > but when i saw the source of html page > i notice that the page is using my templets as well as the existing > templets of the ecommerce > after creating Theme.xml and fixing header and footer in the html page > source is still showing me the same thing it's header and footer are still > coming from ecommerce > > In simple words > how can i use my own created templete rather than using the templete of > existing ecommerce application > in my own application > |
Yup I tried hard coding it
But I need help in theme.xml file it not loading with my plugin If I can load it I will able to edit without disturbing decorator screen On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> wrote: > Hello Shrilesh, > > Check the decorator screens locations in view-map path screens. You will > need to create/use your custom decorator. > > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> > <https://www.facebook.com/HotWaxCommerce/> > <https://twitter.com/hotwaxcommerce> > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > [hidden email]> wrote: > > > I'm facing some problem > > can anybody help me if possible > > i have created a plugin and extended the ecommerce plugin > > i successful created templates and view-map in controller.xml > > but when i saw the source of html page > > i notice that the page is using my templets as well as the existing > > templets of the ecommerce > > after creating Theme.xml and fixing header and footer in the html page > > source is still showing me the same thing it's header and footer are > still > > coming from ecommerce > > > > In simple words > > how can i use my own created templete rather than using the templete of > > existing ecommerce application > > in my own application > > > |
Did you read and follow file [1] shared by Nicolas in another email thread
of you? https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/themes/README.md Kind Regards, Arun Patidar Director of Information Systems *HotWax CommerceReal OmniChannel. Real Results.* m: +91 9827353082 w: www.hotwax.co <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.facebook.com/HotWaxCommerce/> <https://twitter.com/hotwaxcommerce> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < [hidden email]> wrote: > Yup I tried hard coding it > But I need help in theme.xml file it not loading with my plugin > If I can load it I will able to edit without disturbing decorator screen > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> wrote: > > > Hello Shrilesh, > > > > Check the decorator screens locations in view-map path screens. You will > > need to create/use your custom decorator. > > > > > > > > Kind Regards, > > > > Arun Patidar > > Director of Information Systems > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > m: +91 9827353082 > > w: www.hotwax.co > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > <https://www.facebook.com/HotWaxCommerce/> > > <https://twitter.com/hotwaxcommerce> > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > [hidden email]> wrote: > > > > > I'm facing some problem > > > can anybody help me if possible > > > i have created a plugin and extended the ecommerce plugin > > > i successful created templates and view-map in controller.xml > > > but when i saw the source of html page > > > i notice that the page is using my templets as well as the existing > > > templets of the ecommerce > > > after creating Theme.xml and fixing header and footer in the html page > > > source is still showing me the same thing it's header and footer are > > still > > > coming from ecommerce > > > > > > In simple words > > > how can i use my own created templete rather than using the templete of > > > existing ecommerce application > > > in my own application > > > > > > |
Yup I read that also created but still it's unable to load with my plugin
Path of Theme.xml file:: plugins/application-name/widget/Theme.xml On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> wrote: > Did you read and follow file [1] shared by Nicolas in another email thread > of you? > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/themes/README.md > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> > <https://www.facebook.com/HotWaxCommerce/> > <https://twitter.com/hotwaxcommerce> > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > [hidden email]> wrote: > > > Yup I tried hard coding it > > But I need help in theme.xml file it not loading with my plugin > > If I can load it I will able to edit without disturbing decorator screen > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> > wrote: > > > > > Hello Shrilesh, > > > > > > Check the decorator screens locations in view-map path screens. You > will > > > need to create/use your custom decorator. > > > > > > > > > > > > Kind Regards, > > > > > > Arun Patidar > > > Director of Information Systems > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > m: +91 9827353082 > > > w: www.hotwax.co > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > <https://www.facebook.com/HotWaxCommerce/> > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > [hidden email]> wrote: > > > > > > > I'm facing some problem > > > > can anybody help me if possible > > > > i have created a plugin and extended the ecommerce plugin > > > > i successful created templates and view-map in controller.xml > > > > but when i saw the source of html page > > > > i notice that the page is using my templets as well as the existing > > > > templets of the ecommerce > > > > after creating Theme.xml and fixing header and footer in the html > page > > > > source is still showing me the same thing it's header and footer are > > > still > > > > coming from ecommerce > > > > > > > > In simple words > > > > how can i use my own created templete rather than using the templete > of > > > > existing ecommerce application > > > > in my own application > > > > > > > > > > |
Hello Shrilesh,
Did you use the component location for plugin file like: component://myplugin/template/Header.ftl You can also share your example code so that someone can catch the missing things in it. Kind Regards, Arun Patidar Director of Information Systems *HotWax CommerceReal OmniChannel. Real Results.* m: +91 9827353082 w: www.hotwax.co <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.facebook.com/HotWaxCommerce/> <https://twitter.com/hotwaxcommerce> On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < [hidden email]> wrote: > Yup I read that also created but still it's unable to load with my plugin > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> wrote: > > > Did you read and follow file [1] shared by Nicolas in another email > thread > > of you? > > > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/themes/README.md > > > > > > Kind Regards, > > > > Arun Patidar > > Director of Information Systems > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > m: +91 9827353082 > > w: www.hotwax.co > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > <https://www.facebook.com/HotWaxCommerce/> > > <https://twitter.com/hotwaxcommerce> > > > > > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > > [hidden email]> wrote: > > > > > Yup I tried hard coding it > > > But I need help in theme.xml file it not loading with my plugin > > > If I can load it I will able to edit without disturbing decorator > screen > > > > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> > > wrote: > > > > > > > Hello Shrilesh, > > > > > > > > Check the decorator screens locations in view-map path screens. You > > will > > > > need to create/use your custom decorator. > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > Arun Patidar > > > > Director of Information Systems > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > m: +91 9827353082 > > > > w: www.hotwax.co > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > > [hidden email]> wrote: > > > > > > > > > I'm facing some problem > > > > > can anybody help me if possible > > > > > i have created a plugin and extended the ecommerce plugin > > > > > i successful created templates and view-map in controller.xml > > > > > but when i saw the source of html page > > > > > i notice that the page is using my templets as well as the existing > > > > > templets of the ecommerce > > > > > after creating Theme.xml and fixing header and footer in the html > > page > > > > > source is still showing me the same thing it's header and footer > are > > > > still > > > > > coming from ecommerce > > > > > > > > > > In simple words > > > > > how can i use my own created templete rather than using the > templete > > of > > > > > existing ecommerce application > > > > > in my own application > > > > > > > > > > > > > > > |
Theme.xml
<theme name="my_visualtheme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=" http://ofbiz.apache.org/dtds/widget-theme.xsd"> <visual-themes> <visual-theme id="MY_VISUALTHEME" display-name="My Visual Theme"/> </visual-themes> <extends location="component://common-theme/widget/Theme.xml"/> <theme-properties> <!--Css style--> <property name="VT_STYLESHEET['add']" value="/application-name/images/blog.css"/> <property name="VT_STYLESHEET['add']" value="/application-name/css/custom.css"/> <property name="VT_STYLESHEET['add']" value="/contentimages/css/contentForum.css"/> <!--header image --> <property name="VT_HDR_IMAGE_URL" value="/images/ofbiz_logo.png"/> <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> <!--template location--> <property name="VT_HDR_TMPLT_LOC" value="component://application-name/template/includes/Header.ftl"/> <property name="VT_FTR_TMPLT_LOC" value="component://application-name/template/includes/Footer.ftl"/> </theme-properties> </theme> On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar <[hidden email]> wrote: > Hello Shrilesh, > > Did you use the component location for plugin file > like: component://myplugin/template/Header.ftl > > You can also share your example code so that someone can catch the missing > things in it. > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> > <https://www.facebook.com/HotWaxCommerce/> > <https://twitter.com/hotwaxcommerce> > > > > On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < > [hidden email]> wrote: > > > Yup I read that also created but still it's unable to load with my plugin > > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> > wrote: > > > > > Did you read and follow file [1] shared by Nicolas in another email > > thread > > > of you? > > > > > > > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > trunk/themes/README.md > > > > > > > > > Kind Regards, > > > > > > Arun Patidar > > > Director of Information Systems > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > m: +91 9827353082 > > > w: www.hotwax.co > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > <https://www.facebook.com/HotWaxCommerce/> > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > > > [hidden email]> wrote: > > > > > > > Yup I tried hard coding it > > > > But I need help in theme.xml file it not loading with my plugin > > > > If I can load it I will able to edit without disturbing decorator > > screen > > > > > > > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> > > > wrote: > > > > > > > > > Hello Shrilesh, > > > > > > > > > > Check the decorator screens locations in view-map path screens. You > > > will > > > > > need to create/use your custom decorator. > > > > > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > Arun Patidar > > > > > Director of Information Systems > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > m: +91 9827353082 > > > > > w: www.hotwax.co > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > > > [hidden email]> wrote: > > > > > > > > > > > I'm facing some problem > > > > > > can anybody help me if possible > > > > > > i have created a plugin and extended the ecommerce plugin > > > > > > i successful created templates and view-map in controller.xml > > > > > > but when i saw the source of html page > > > > > > i notice that the page is using my templets as well as the > existing > > > > > > templets of the ecommerce > > > > > > after creating Theme.xml and fixing header and footer in the html > > > page > > > > > > source is still showing me the same thing it's header and footer > > are > > > > > still > > > > > > coming from ecommerce > > > > > > > > > > > > In simple words > > > > > > how can i use my own created templete rather than using the > > templete > > > of > > > > > > existing ecommerce application > > > > > > in my own application > > > > > > > > > > > > > > > > > > > > > |
Did you prepare and load VisualTheme data?
Also, please check the name and path mention in this code block: <property name="VT_HDR_TMPLT_LOC" value="component://application-name/template/includes/Header.ftl"/> Kind Regards, Arun Patidar Director of Information Systems *HotWax CommerceReal OmniChannel. Real Results.* m: +91 9827353082 w: www.hotwax.co <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.facebook.com/HotWaxCommerce/> <https://twitter.com/hotwaxcommerce> On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < [hidden email]> wrote: > Theme.xml > > <theme name="my_visualtheme" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation=" > http://ofbiz.apache.org/dtds/widget-theme.xsd"> > <visual-themes> > <visual-theme id="MY_VISUALTHEME" display-name="My Visual Theme"/> > </visual-themes> > > <extends location="component://common-theme/widget/Theme.xml"/> > <theme-properties> > <!--Css style--> > <property name="VT_STYLESHEET['add']" > value="/application-name/images/blog.css"/> > <property name="VT_STYLESHEET['add']" > value="/application-name/css/custom.css"/> > <property name="VT_STYLESHEET['add']" > value="/contentimages/css/contentForum.css"/> > <!--header image --> > <property name="VT_HDR_IMAGE_URL" value="/images/ofbiz_logo.png"/> > <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> > <!--template location--> > <property name="VT_HDR_TMPLT_LOC" > value="component://application-name/template/includes/Header.ftl"/> > <property name="VT_FTR_TMPLT_LOC" > value="component://application-name/template/includes/Footer.ftl"/> > </theme-properties> > </theme> > > On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar <[hidden email]> > wrote: > > > Hello Shrilesh, > > > > Did you use the component location for plugin file > > like: component://myplugin/template/Header.ftl > > > > You can also share your example code so that someone can catch the > missing > > things in it. > > > > > > Kind Regards, > > > > Arun Patidar > > Director of Information Systems > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > m: +91 9827353082 > > w: www.hotwax.co > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > <https://www.facebook.com/HotWaxCommerce/> > > <https://twitter.com/hotwaxcommerce> > > > > > > > > On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < > > [hidden email]> wrote: > > > > > Yup I read that also created but still it's unable to load with my > plugin > > > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > > > > > > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> > > wrote: > > > > > > > Did you read and follow file [1] shared by Nicolas in another email > > > thread > > > > of you? > > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > > trunk/themes/README.md > > > > > > > > > > > > Kind Regards, > > > > > > > > Arun Patidar > > > > Director of Information Systems > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > m: +91 9827353082 > > > > w: www.hotwax.co > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > > > > [hidden email]> wrote: > > > > > > > > > Yup I tried hard coding it > > > > > But I need help in theme.xml file it not loading with my plugin > > > > > If I can load it I will able to edit without disturbing decorator > > > screen > > > > > > > > > > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email] > > > > > > wrote: > > > > > > > > > > > Hello Shrilesh, > > > > > > > > > > > > Check the decorator screens locations in view-map path screens. > You > > > > will > > > > > > need to create/use your custom decorator. > > > > > > > > > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > > > Arun Patidar > > > > > > Director of Information Systems > > > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > > m: +91 9827353082 > > > > > > w: www.hotwax.co > > > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > > > > [hidden email]> wrote: > > > > > > > > > > > > > I'm facing some problem > > > > > > > can anybody help me if possible > > > > > > > i have created a plugin and extended the ecommerce plugin > > > > > > > i successful created templates and view-map in controller.xml > > > > > > > but when i saw the source of html page > > > > > > > i notice that the page is using my templets as well as the > > existing > > > > > > > templets of the ecommerce > > > > > > > after creating Theme.xml and fixing header and footer in the > html > > > > page > > > > > > > source is still showing me the same thing it's header and > footer > > > are > > > > > > still > > > > > > > coming from ecommerce > > > > > > > > > > > > > > In simple words > > > > > > > how can i use my own created templete rather than using the > > > templete > > > > of > > > > > > > existing ecommerce application > > > > > > > in my own application > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
In reply to this post by Shrilesh Korgaonkar
Hello,
If I'm not wrong, there is some step that you must follow to apply a theme in ecommerce. 1 - Create your theme (I suggest to clone actual ecommerce theme, rename correctly files and correct path in files.) 2 - Modify your theme (just modify one or two visual things for testing) 3 - Import theme data (actually 1 line) (after this step, don't forgot to restart OFBiz before going further) 4 - _Define this new theme as the default theme for your productStore_ Normally, you could see in page source code the path of your new ecommerce theme (like Header, footer, etc.) if you inspect it HTH, Julien. Le 19/09/2018 à 11:16, Shrilesh Korgaonkar a écrit : > Yup I read that also created but still it's unable to load with my plugin > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> wrote: > >> Did you read and follow file [1] shared by Nicolas in another email thread >> of you? >> >> >> https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/themes/README.md >> >> >> Kind Regards, >> >> Arun Patidar >> Director of Information Systems >> >> *HotWax CommerceReal OmniChannel. Real Results.* >> m: +91 9827353082 >> w: www.hotwax.co >> >> <https://www.linkedin.com/company/hotwaxcommerce/> >> <https://www.facebook.com/HotWaxCommerce/> >> <https://twitter.com/hotwaxcommerce> >> >> >> >> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < >> [hidden email]> wrote: >> >>> Yup I tried hard coding it >>> But I need help in theme.xml file it not loading with my plugin >>> If I can load it I will able to edit without disturbing decorator screen >>> >>> >>> On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, <[hidden email]> >> wrote: >>>> Hello Shrilesh, >>>> >>>> Check the decorator screens locations in view-map path screens. You >> will >>>> need to create/use your custom decorator. >>>> >>>> >>>> >>>> Kind Regards, >>>> >>>> Arun Patidar >>>> Director of Information Systems >>>> >>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>> m: +91 9827353082 >>>> w: www.hotwax.co >>>> >>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>> <https://www.facebook.com/HotWaxCommerce/> >>>> <https://twitter.com/hotwaxcommerce> >>>> >>>> >>>> >>>> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < >>>> [hidden email]> wrote: >>>> >>>>> I'm facing some problem >>>>> can anybody help me if possible >>>>> i have created a plugin and extended the ecommerce plugin >>>>> i successful created templates and view-map in controller.xml >>>>> but when i saw the source of html page >>>>> i notice that the page is using my templets as well as the existing >>>>> templets of the ecommerce >>>>> after creating Theme.xml and fixing header and footer in the html >> page >>>>> source is still showing me the same thing it's header and footer are >>>> still >>>>> coming from ecommerce >>>>> >>>>> In simple words >>>>> how can i use my own created templete rather than using the templete >> of >>>>> existing ecommerce application >>>>> in my own application >>>>> |
In reply to this post by Arun Patidar-3
Already checked the path and step to create a theme
On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> wrote: > Did you prepare and load VisualTheme data? > > Also, please check the name and path mention in this code block: > > <property name="VT_HDR_TMPLT_LOC" > value="component://application-name/template/includes/Header.ftl"/> > > > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> > <https://www.facebook.com/HotWaxCommerce/> > <https://twitter.com/hotwaxcommerce> > > > > On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < > [hidden email]> wrote: > > > Theme.xml > > > > <theme name="my_visualtheme" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation=" > > http://ofbiz.apache.org/dtds/widget-theme.xsd"> > > <visual-themes> > > <visual-theme id="MY_VISUALTHEME" display-name="My Visual > Theme"/> > > </visual-themes> > > > > <extends location="component://common-theme/widget/Theme.xml"/> > > <theme-properties> > > <!--Css style--> > > <property name="VT_STYLESHEET['add']" > > value="/application-name/images/blog.css"/> > > <property name="VT_STYLESHEET['add']" > > value="/application-name/css/custom.css"/> > > <property name="VT_STYLESHEET['add']" > > value="/contentimages/css/contentForum.css"/> > > <!--header image --> > > <property name="VT_HDR_IMAGE_URL" > value="/images/ofbiz_logo.png"/> > > <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> > > <!--template location--> > > <property name="VT_HDR_TMPLT_LOC" > > value="component://application-name/template/includes/Header.ftl"/> > > <property name="VT_FTR_TMPLT_LOC" > > value="component://application-name/template/includes/Footer.ftl"/> > > </theme-properties> > > </theme> > > > > On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar <[hidden email]> > > wrote: > > > > > Hello Shrilesh, > > > > > > Did you use the component location for plugin file > > > like: component://myplugin/template/Header.ftl > > > > > > You can also share your example code so that someone can catch the > > missing > > > things in it. > > > > > > > > > Kind Regards, > > > > > > Arun Patidar > > > Director of Information Systems > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > m: +91 9827353082 > > > w: www.hotwax.co > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > <https://www.facebook.com/HotWaxCommerce/> > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < > > > [hidden email]> wrote: > > > > > > > Yup I read that also created but still it's unable to load with my > > plugin > > > > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > > > > > > > > > > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email]> > > > wrote: > > > > > > > > > Did you read and follow file [1] shared by Nicolas in another email > > > > thread > > > > > of you? > > > > > > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > > > trunk/themes/README.md > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > Arun Patidar > > > > > Director of Information Systems > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > m: +91 9827353082 > > > > > w: www.hotwax.co > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > > > > > [hidden email]> wrote: > > > > > > > > > > > Yup I tried hard coding it > > > > > > But I need help in theme.xml file it not loading with my plugin > > > > > > If I can load it I will able to edit without disturbing decorator > > > > screen > > > > > > > > > > > > > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < > [hidden email] > > > > > > > > wrote: > > > > > > > > > > > > > Hello Shrilesh, > > > > > > > > > > > > > > Check the decorator screens locations in view-map path screens. > > You > > > > > will > > > > > > > need to create/use your custom decorator. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > > > > > Arun Patidar > > > > > > > Director of Information Systems > > > > > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > > > m: +91 9827353082 > > > > > > > w: www.hotwax.co > > > > > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > > > > > [hidden email]> wrote: > > > > > > > > > > > > > > > I'm facing some problem > > > > > > > > can anybody help me if possible > > > > > > > > i have created a plugin and extended the ecommerce plugin > > > > > > > > i successful created templates and view-map in controller.xml > > > > > > > > but when i saw the source of html page > > > > > > > > i notice that the page is using my templets as well as the > > > existing > > > > > > > > templets of the ecommerce > > > > > > > > after creating Theme.xml and fixing header and footer in the > > html > > > > > page > > > > > > > > source is still showing me the same thing it's header and > > footer > > > > are > > > > > > > still > > > > > > > > coming from ecommerce > > > > > > > > > > > > > > > > In simple words > > > > > > > > how can i use my own created templete rather than using the > > > > templete > > > > > of > > > > > > > > existing ecommerce application > > > > > > > > in my own application > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
Hi Shrilesh,
Please check ProductStore entity, you should set visulaThemeId in ProductStore entity else it will pick the default ecommerce theme. You can check this in ecommerce main decorator. <set field="visualThemeId" from-field="productStore.visualThemeId" default-value="EC_DEFAULT"/> Thanks & Regards -- Deepak Dixit On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar < [hidden email]> wrote: > Already checked the path and step to create a theme > > On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> wrote: > > > Did you prepare and load VisualTheme data? > > > > Also, please check the name and path mention in this code block: > > > > <property name="VT_HDR_TMPLT_LOC" > > value="component://application-name/template/includes/Header.ftl"/> > > > > > > > > > > Kind Regards, > > > > Arun Patidar > > Director of Information Systems > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > m: +91 9827353082 > > w: www.hotwax.co > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > <https://www.facebook.com/HotWaxCommerce/> > > <https://twitter.com/hotwaxcommerce> > > > > > > > > On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < > > [hidden email]> wrote: > > > > > Theme.xml > > > > > > <theme name="my_visualtheme" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:noNamespaceSchemaLocation=" > > > http://ofbiz.apache.org/dtds/widget-theme.xsd"> > > > <visual-themes> > > > <visual-theme id="MY_VISUALTHEME" display-name="My Visual > > Theme"/> > > > </visual-themes> > > > > > > <extends location="component://common-theme/widget/Theme.xml"/> > > > <theme-properties> > > > <!--Css style--> > > > <property name="VT_STYLESHEET['add']" > > > value="/application-name/images/blog.css"/> > > > <property name="VT_STYLESHEET['add']" > > > value="/application-name/css/custom.css"/> > > > <property name="VT_STYLESHEET['add']" > > > value="/contentimages/css/contentForum.css"/> > > > <!--header image --> > > > <property name="VT_HDR_IMAGE_URL" > > value="/images/ofbiz_logo.png"/> > > > <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> > > > <!--template location--> > > > <property name="VT_HDR_TMPLT_LOC" > > > value="component://application-name/template/includes/Header.ftl"/> > > > <property name="VT_FTR_TMPLT_LOC" > > > value="component://application-name/template/includes/Footer.ftl"/> > > > </theme-properties> > > > </theme> > > > > > > On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar <[hidden email] > > > > > wrote: > > > > > > > Hello Shrilesh, > > > > > > > > Did you use the component location for plugin file > > > > like: component://myplugin/template/Header.ftl > > > > > > > > You can also share your example code so that someone can catch the > > > missing > > > > things in it. > > > > > > > > > > > > Kind Regards, > > > > > > > > Arun Patidar > > > > Director of Information Systems > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > m: +91 9827353082 > > > > w: www.hotwax.co > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < > > > > [hidden email]> wrote: > > > > > > > > > Yup I read that also created but still it's unable to load with my > > > plugin > > > > > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > > > > > > > > > > > > > > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] > > > > > > wrote: > > > > > > > > > > > Did you read and follow file [1] shared by Nicolas in another > > > > > thread > > > > > > of you? > > > > > > > > > > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > > > > trunk/themes/README.md > > > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > > > Arun Patidar > > > > > > Director of Information Systems > > > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > > m: +91 9827353082 > > > > > > w: www.hotwax.co > > > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > > > > > > [hidden email]> wrote: > > > > > > > > > > > > > Yup I tried hard coding it > > > > > > > But I need help in theme.xml file it not loading with my plugin > > > > > > > If I can load it I will able to edit without disturbing > decorator > > > > > screen > > > > > > > > > > > > > > > > > > > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < > > [hidden email] > > > > > > > > > > wrote: > > > > > > > > > > > > > > > Hello Shrilesh, > > > > > > > > > > > > > > > > Check the decorator screens locations in view-map path > screens. > > > You > > > > > > will > > > > > > > > need to create/use your custom decorator. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Kind Regards, > > > > > > > > > > > > > > > > Arun Patidar > > > > > > > > Director of Information Systems > > > > > > > > > > > > > > > > *HotWax CommerceReal OmniChannel. Real Results.* > > > > > > > > m: +91 9827353082 > > > > > > > > w: www.hotwax.co > > > > > > > > > > > > > > > > <https://www.linkedin.com/company/hotwaxcommerce/> > > > > > > > > <https://www.facebook.com/HotWaxCommerce/> > > > > > > > > <https://twitter.com/hotwaxcommerce> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > > > > > > > > [hidden email]> wrote: > > > > > > > > > > > > > > > > > I'm facing some problem > > > > > > > > > can anybody help me if possible > > > > > > > > > i have created a plugin and extended the ecommerce plugin > > > > > > > > > i successful created templates and view-map in > controller.xml > > > > > > > > > but when i saw the source of html page > > > > > > > > > i notice that the page is using my templets as well as the > > > > existing > > > > > > > > > templets of the ecommerce > > > > > > > > > after creating Theme.xml and fixing header and footer in > the > > > html > > > > > > page > > > > > > > > > source is still showing me the same thing it's header and > > > footer > > > > > are > > > > > > > > still > > > > > > > > > coming from ecommerce > > > > > > > > > > > > > > > > > > In simple words > > > > > > > > > how can i use my own created templete rather than using the > > > > > templete > > > > > > of > > > > > > > > > existing ecommerce application > > > > > > > > > in my own application > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
+1
Le 21/09/2018 à 15:04, Deepak Dixit a écrit : > Hi Shrilesh, > > Please check ProductStore entity, you should set visulaThemeId in > ProductStore entity else it will pick the default ecommerce theme. > > You can check this in ecommerce main decorator. > > <set field="visualThemeId" from-field="productStore.visualThemeId" > default-value="EC_DEFAULT"/> > > > > Thanks & Regards > -- > Deepak Dixit > > > On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar < > [hidden email]> wrote: > >> Already checked the path and step to create a theme >> >> On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> wrote: >> >>> Did you prepare and load VisualTheme data? >>> >>> Also, please check the name and path mention in this code block: >>> >>> <property name="VT_HDR_TMPLT_LOC" >>> value="component://application-name/template/includes/Header.ftl"/> >>> >>> >>> >>> >>> Kind Regards, >>> >>> Arun Patidar >>> Director of Information Systems >>> >>> *HotWax CommerceReal OmniChannel. Real Results.* >>> m: +91 9827353082 >>> w: www.hotwax.co >>> >>> <https://www.linkedin.com/company/hotwaxcommerce/> >>> <https://www.facebook.com/HotWaxCommerce/> >>> <https://twitter.com/hotwaxcommerce> >>> >>> >>> >>> On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < >>> [hidden email]> wrote: >>> >>>> Theme.xml >>>> >>>> <theme name="my_visualtheme" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:noNamespaceSchemaLocation=" >>>> http://ofbiz.apache.org/dtds/widget-theme.xsd"> >>>> <visual-themes> >>>> <visual-theme id="MY_VISUALTHEME" display-name="My Visual >>> Theme"/> >>>> </visual-themes> >>>> >>>> <extends location="component://common-theme/widget/Theme.xml"/> >>>> <theme-properties> >>>> <!--Css style--> >>>> <property name="VT_STYLESHEET['add']" >>>> value="/application-name/images/blog.css"/> >>>> <property name="VT_STYLESHEET['add']" >>>> value="/application-name/css/custom.css"/> >>>> <property name="VT_STYLESHEET['add']" >>>> value="/contentimages/css/contentForum.css"/> >>>> <!--header image --> >>>> <property name="VT_HDR_IMAGE_URL" >>> value="/images/ofbiz_logo.png"/> >>>> <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> >>>> <!--template location--> >>>> <property name="VT_HDR_TMPLT_LOC" >>>> value="component://application-name/template/includes/Header.ftl"/> >>>> <property name="VT_FTR_TMPLT_LOC" >>>> value="component://application-name/template/includes/Footer.ftl"/> >>>> </theme-properties> >>>> </theme> >>>> >>>> On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar <[hidden email] >>>> wrote: >>>> >>>>> Hello Shrilesh, >>>>> >>>>> Did you use the component location for plugin file >>>>> like: component://myplugin/template/Header.ftl >>>>> >>>>> You can also share your example code so that someone can catch the >>>> missing >>>>> things in it. >>>>> >>>>> >>>>> Kind Regards, >>>>> >>>>> Arun Patidar >>>>> Director of Information Systems >>>>> >>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>> m: +91 9827353082 >>>>> w: www.hotwax.co >>>>> >>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>> <https://twitter.com/hotwaxcommerce> >>>>> >>>>> >>>>> >>>>> On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < >>>>> [hidden email]> wrote: >>>>> >>>>>> Yup I read that also created but still it's unable to load with my >>>> plugin >>>>>> Path of Theme.xml file:: plugins/application-name/widget/Theme.xml >>>>>> >>>>>> >>>>>> >>>>>> On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] >>>>> wrote: >>>>>>> Did you read and follow file [1] shared by Nicolas in another >>>>>> thread >>>>>>> of you? >>>>>>> >>>>>>> >>>>>>> >>>>>> https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ >>>>> trunk/themes/README.md >>>>>>> >>>>>>> Kind Regards, >>>>>>> >>>>>>> Arun Patidar >>>>>>> Director of Information Systems >>>>>>> >>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>>> m: +91 9827353082 >>>>>>> w: www.hotwax.co >>>>>>> >>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>>> <https://twitter.com/hotwaxcommerce> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < >>>>>>> [hidden email]> wrote: >>>>>>> >>>>>>>> Yup I tried hard coding it >>>>>>>> But I need help in theme.xml file it not loading with my plugin >>>>>>>> If I can load it I will able to edit without disturbing >> decorator >>>>>> screen >>>>>>>> >>>>>>>> On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < >>> [hidden email] >>>>>>> wrote: >>>>>>>>> Hello Shrilesh, >>>>>>>>> >>>>>>>>> Check the decorator screens locations in view-map path >> screens. >>>> You >>>>>>> will >>>>>>>>> need to create/use your custom decorator. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Kind Regards, >>>>>>>>> >>>>>>>>> Arun Patidar >>>>>>>>> Director of Information Systems >>>>>>>>> >>>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>>>>> m: +91 9827353082 >>>>>>>>> w: www.hotwax.co >>>>>>>>> >>>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>>>>> <https://twitter.com/hotwaxcommerce> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < >>>>>>>>> [hidden email]> wrote: >>>>>>>>> >>>>>>>>>> I'm facing some problem >>>>>>>>>> can anybody help me if possible >>>>>>>>>> i have created a plugin and extended the ecommerce plugin >>>>>>>>>> i successful created templates and view-map in >> controller.xml >>>>>>>>>> but when i saw the source of html page >>>>>>>>>> i notice that the page is using my templets as well as the >>>>> existing >>>>>>>>>> templets of the ecommerce >>>>>>>>>> after creating Theme.xml and fixing header and footer in >> the >>>> html >>>>>>> page >>>>>>>>>> source is still showing me the same thing it's header and >>>> footer >>>>>> are >>>>>>>>> still >>>>>>>>>> coming from ecommerce >>>>>>>>>> >>>>>>>>>> In simple words >>>>>>>>>> how can i use my own created templete rather than using the >>>>>> templete >>>>>>> of >>>>>>>>>> existing ecommerce application >>>>>>>>>> in my own application >>>>>>>>>> |
<set field="visualThemeId" from-field="productStore.visualThemeId"
default-value="MY_VISUALTHEME"/> tried still on the same problem On Fri, Sep 21, 2018 at 4:00 PM Julien NICOLAS <[hidden email]> wrote: > +1 > > > Le 21/09/2018 à 15:04, Deepak Dixit a écrit : > > Hi Shrilesh, > > > > Please check ProductStore entity, you should set visulaThemeId in > > ProductStore entity else it will pick the default ecommerce theme. > > > > You can check this in ecommerce main decorator. > > > > <set field="visualThemeId" from-field="productStore.visualThemeId" > > default-value="EC_DEFAULT"/> > > > > > > > > Thanks & Regards > > -- > > Deepak Dixit > > > > > > On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar < > > [hidden email]> wrote: > > > >> Already checked the path and step to create a theme > >> > >> On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> > wrote: > >> > >>> Did you prepare and load VisualTheme data? > >>> > >>> Also, please check the name and path mention in this code block: > >>> > >>> <property name="VT_HDR_TMPLT_LOC" > >>> value="component://application-name/template/includes/Header.ftl"/> > >>> > >>> > >>> > >>> > >>> Kind Regards, > >>> > >>> Arun Patidar > >>> Director of Information Systems > >>> > >>> *HotWax CommerceReal OmniChannel. Real Results.* > >>> m: +91 9827353082 > >>> w: www.hotwax.co > >>> > >>> <https://www.linkedin.com/company/hotwaxcommerce/> > >>> <https://www.facebook.com/HotWaxCommerce/> > >>> <https://twitter.com/hotwaxcommerce> > >>> > >>> > >>> > >>> On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < > >>> [hidden email]> wrote: > >>> > >>>> Theme.xml > >>>> > >>>> <theme name="my_visualtheme" > >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >>>> xsi:noNamespaceSchemaLocation=" > >>>> http://ofbiz.apache.org/dtds/widget-theme.xsd"> > >>>> <visual-themes> > >>>> <visual-theme id="MY_VISUALTHEME" display-name="My Visual > >>> Theme"/> > >>>> </visual-themes> > >>>> > >>>> <extends location="component://common-theme/widget/Theme.xml"/> > >>>> <theme-properties> > >>>> <!--Css style--> > >>>> <property name="VT_STYLESHEET['add']" > >>>> value="/application-name/images/blog.css"/> > >>>> <property name="VT_STYLESHEET['add']" > >>>> value="/application-name/css/custom.css"/> > >>>> <property name="VT_STYLESHEET['add']" > >>>> value="/contentimages/css/contentForum.css"/> > >>>> <!--header image --> > >>>> <property name="VT_HDR_IMAGE_URL" > >>> value="/images/ofbiz_logo.png"/> > >>>> <property name="VT_SHORTCUT_ICON" value="/images/ofbiz.ico"/> > >>>> <!--template location--> > >>>> <property name="VT_HDR_TMPLT_LOC" > >>>> value="component://application-name/template/includes/Header.ftl"/> > >>>> <property name="VT_FTR_TMPLT_LOC" > >>>> value="component://application-name/template/includes/Footer.ftl"/> > >>>> </theme-properties> > >>>> </theme> > >>>> > >>>> On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar < > [hidden email] > >>>> wrote: > >>>> > >>>>> Hello Shrilesh, > >>>>> > >>>>> Did you use the component location for plugin file > >>>>> like: component://myplugin/template/Header.ftl > >>>>> > >>>>> You can also share your example code so that someone can catch the > >>>> missing > >>>>> things in it. > >>>>> > >>>>> > >>>>> Kind Regards, > >>>>> > >>>>> Arun Patidar > >>>>> Director of Information Systems > >>>>> > >>>>> *HotWax CommerceReal OmniChannel. Real Results.* > >>>>> m: +91 9827353082 > >>>>> w: www.hotwax.co > >>>>> > >>>>> <https://www.linkedin.com/company/hotwaxcommerce/> > >>>>> <https://www.facebook.com/HotWaxCommerce/> > >>>>> <https://twitter.com/hotwaxcommerce> > >>>>> > >>>>> > >>>>> > >>>>> On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < > >>>>> [hidden email]> wrote: > >>>>> > >>>>>> Yup I read that also created but still it's unable to load with my > >>>> plugin > >>>>>> Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > >>>>>> > >>>>>> > >>>>>> > >>>>>> On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] > >>>>> wrote: > >>>>>>> Did you read and follow file [1] shared by Nicolas in another > >>>>>> thread > >>>>>>> of you? > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > >>>>> trunk/themes/README.md > >>>>>>> > >>>>>>> Kind Regards, > >>>>>>> > >>>>>>> Arun Patidar > >>>>>>> Director of Information Systems > >>>>>>> > >>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* > >>>>>>> m: +91 9827353082 > >>>>>>> w: www.hotwax.co > >>>>>>> > >>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> > >>>>>>> <https://www.facebook.com/HotWaxCommerce/> > >>>>>>> <https://twitter.com/hotwaxcommerce> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < > >>>>>>> [hidden email]> wrote: > >>>>>>> > >>>>>>>> Yup I tried hard coding it > >>>>>>>> But I need help in theme.xml file it not loading with my plugin > >>>>>>>> If I can load it I will able to edit without disturbing > >> decorator > >>>>>> screen > >>>>>>>> > >>>>>>>> On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < > >>> [hidden email] > >>>>>>> wrote: > >>>>>>>>> Hello Shrilesh, > >>>>>>>>> > >>>>>>>>> Check the decorator screens locations in view-map path > >> screens. > >>>> You > >>>>>>> will > >>>>>>>>> need to create/use your custom decorator. > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> Kind Regards, > >>>>>>>>> > >>>>>>>>> Arun Patidar > >>>>>>>>> Director of Information Systems > >>>>>>>>> > >>>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* > >>>>>>>>> m: +91 9827353082 > >>>>>>>>> w: www.hotwax.co > >>>>>>>>> > >>>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> > >>>>>>>>> <https://www.facebook.com/HotWaxCommerce/> > >>>>>>>>> <https://twitter.com/hotwaxcommerce> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < > >>>>>>>>> [hidden email]> wrote: > >>>>>>>>> > >>>>>>>>>> I'm facing some problem > >>>>>>>>>> can anybody help me if possible > >>>>>>>>>> i have created a plugin and extended the ecommerce plugin > >>>>>>>>>> i successful created templates and view-map in > >> controller.xml > >>>>>>>>>> but when i saw the source of html page > >>>>>>>>>> i notice that the page is using my templets as well as the > >>>>> existing > >>>>>>>>>> templets of the ecommerce > >>>>>>>>>> after creating Theme.xml and fixing header and footer in > >> the > >>>> html > >>>>>>> page > >>>>>>>>>> source is still showing me the same thing it's header and > >>>> footer > >>>>>> are > >>>>>>>>> still > >>>>>>>>>> coming from ecommerce > >>>>>>>>>> > >>>>>>>>>> In simple words > >>>>>>>>>> how can i use my own created templete rather than using the > >>>>>> templete > >>>>>>> of > >>>>>>>>>> existing ecommerce application > >>>>>>>>>> in my own application > >>>>>>>>>> > > |
Thank guys
I hard code it <set field="visualThemeId" value="MY_VISUALTHEME"/> On Sat, Sep 22, 2018 at 8:19 AM Shrilesh Korgaonkar < [hidden email]> wrote: > <set field="visualThemeId" from-field="productStore.visualThemeId" > default-value="MY_VISUALTHEME"/> > tried still on the same problem > > On Fri, Sep 21, 2018 at 4:00 PM Julien NICOLAS <[hidden email]> > wrote: > >> +1 >> >> >> Le 21/09/2018 à 15:04, Deepak Dixit a écrit : >> > Hi Shrilesh, >> > >> > Please check ProductStore entity, you should set visulaThemeId in >> > ProductStore entity else it will pick the default ecommerce theme. >> > >> > You can check this in ecommerce main decorator. >> > >> > <set field="visualThemeId" from-field="productStore.visualThemeId" >> > default-value="EC_DEFAULT"/> >> > >> > >> > >> > Thanks & Regards >> > -- >> > Deepak Dixit >> > >> > >> > On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar < >> > [hidden email]> wrote: >> > >> >> Already checked the path and step to create a theme >> >> >> >> On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> >> wrote: >> >> >> >>> Did you prepare and load VisualTheme data? >> >>> >> >>> Also, please check the name and path mention in this code block: >> >>> >> >>> <property name="VT_HDR_TMPLT_LOC" >> >>> value="component://application-name/template/includes/Header.ftl"/> >> >>> >> >>> >> >>> >> >>> >> >>> Kind Regards, >> >>> >> >>> Arun Patidar >> >>> Director of Information Systems >> >>> >> >>> *HotWax CommerceReal OmniChannel. Real Results.* >> >>> m: +91 9827353082 >> >>> w: www.hotwax.co >> >>> >> >>> <https://www.linkedin.com/company/hotwaxcommerce/> >> >>> <https://www.facebook.com/HotWaxCommerce/> >> >>> <https://twitter.com/hotwaxcommerce> >> >>> >> >>> >> >>> >> >>> On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < >> >>> [hidden email]> wrote: >> >>> >> >>>> Theme.xml >> >>>> >> >>>> <theme name="my_visualtheme" >> >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >>>> xsi:noNamespaceSchemaLocation=" >> >>>> http://ofbiz.apache.org/dtds/widget-theme.xsd"> >> >>>> <visual-themes> >> >>>> <visual-theme id="MY_VISUALTHEME" display-name="My Visual >> >>> Theme"/> >> >>>> </visual-themes> >> >>>> >> >>>> <extends location="component://common-theme/widget/Theme.xml"/> >> >>>> <theme-properties> >> >>>> <!--Css style--> >> >>>> <property name="VT_STYLESHEET['add']" >> >>>> value="/application-name/images/blog.css"/> >> >>>> <property name="VT_STYLESHEET['add']" >> >>>> value="/application-name/css/custom.css"/> >> >>>> <property name="VT_STYLESHEET['add']" >> >>>> value="/contentimages/css/contentForum.css"/> >> >>>> <!--header image --> >> >>>> <property name="VT_HDR_IMAGE_URL" >> >>> value="/images/ofbiz_logo.png"/> >> >>>> <property name="VT_SHORTCUT_ICON" >> value="/images/ofbiz.ico"/> >> >>>> <!--template location--> >> >>>> <property name="VT_HDR_TMPLT_LOC" >> >>>> value="component://application-name/template/includes/Header.ftl"/> >> >>>> <property name="VT_FTR_TMPLT_LOC" >> >>>> value="component://application-name/template/includes/Footer.ftl"/> >> >>>> </theme-properties> >> >>>> </theme> >> >>>> >> >>>> On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar < >> [hidden email] >> >>>> wrote: >> >>>> >> >>>>> Hello Shrilesh, >> >>>>> >> >>>>> Did you use the component location for plugin file >> >>>>> like: component://myplugin/template/Header.ftl >> >>>>> >> >>>>> You can also share your example code so that someone can catch the >> >>>> missing >> >>>>> things in it. >> >>>>> >> >>>>> >> >>>>> Kind Regards, >> >>>>> >> >>>>> Arun Patidar >> >>>>> Director of Information Systems >> >>>>> >> >>>>> *HotWax CommerceReal OmniChannel. Real Results.* >> >>>>> m: +91 9827353082 >> >>>>> w: www.hotwax.co >> >>>>> >> >>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >> >>>>> <https://www.facebook.com/HotWaxCommerce/> >> >>>>> <https://twitter.com/hotwaxcommerce> >> >>>>> >> >>>>> >> >>>>> >> >>>>> On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < >> >>>>> [hidden email]> wrote: >> >>>>> >> >>>>>> Yup I read that also created but still it's unable to load with my >> >>>> plugin >> >>>>>> Path of Theme.xml file:: plugins/application-name/widget/Theme.xml >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] >> >>>>> wrote: >> >>>>>>> Did you read and follow file [1] shared by Nicolas in another >> >>>>>> thread >> >>>>>>> of you? >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>> https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ >> >>>>> trunk/themes/README.md >> >>>>>>> >> >>>>>>> Kind Regards, >> >>>>>>> >> >>>>>>> Arun Patidar >> >>>>>>> Director of Information Systems >> >>>>>>> >> >>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >> >>>>>>> m: +91 9827353082 >> >>>>>>> w: www.hotwax.co >> >>>>>>> >> >>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >> >>>>>>> <https://www.facebook.com/HotWaxCommerce/> >> >>>>>>> <https://twitter.com/hotwaxcommerce> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < >> >>>>>>> [hidden email]> wrote: >> >>>>>>> >> >>>>>>>> Yup I tried hard coding it >> >>>>>>>> But I need help in theme.xml file it not loading with my plugin >> >>>>>>>> If I can load it I will able to edit without disturbing >> >> decorator >> >>>>>> screen >> >>>>>>>> >> >>>>>>>> On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < >> >>> [hidden email] >> >>>>>>> wrote: >> >>>>>>>>> Hello Shrilesh, >> >>>>>>>>> >> >>>>>>>>> Check the decorator screens locations in view-map path >> >> screens. >> >>>> You >> >>>>>>> will >> >>>>>>>>> need to create/use your custom decorator. >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> Kind Regards, >> >>>>>>>>> >> >>>>>>>>> Arun Patidar >> >>>>>>>>> Director of Information Systems >> >>>>>>>>> >> >>>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >> >>>>>>>>> m: +91 9827353082 >> >>>>>>>>> w: www.hotwax.co >> >>>>>>>>> >> >>>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >> >>>>>>>>> <https://www.facebook.com/HotWaxCommerce/> >> >>>>>>>>> <https://twitter.com/hotwaxcommerce> >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < >> >>>>>>>>> [hidden email]> wrote: >> >>>>>>>>> >> >>>>>>>>>> I'm facing some problem >> >>>>>>>>>> can anybody help me if possible >> >>>>>>>>>> i have created a plugin and extended the ecommerce plugin >> >>>>>>>>>> i successful created templates and view-map in >> >> controller.xml >> >>>>>>>>>> but when i saw the source of html page >> >>>>>>>>>> i notice that the page is using my templets as well as the >> >>>>> existing >> >>>>>>>>>> templets of the ecommerce >> >>>>>>>>>> after creating Theme.xml and fixing header and footer in >> >> the >> >>>> html >> >>>>>>> page >> >>>>>>>>>> source is still showing me the same thing it's header and >> >>>> footer >> >>>>>> are >> >>>>>>>>> still >> >>>>>>>>>> coming from ecommerce >> >>>>>>>>>> >> >>>>>>>>>> In simple words >> >>>>>>>>>> how can i use my own created templete rather than using the >> >>>>>> templete >> >>>>>>> of >> >>>>>>>>>> existing ecommerce application >> >>>>>>>>>> in my own application >> >>>>>>>>>> >> >> |
Hi Shrilesh,
Hard-coded is rarely the best solution. Did you try to go to Catalog=>Stores, select your ecommerce product store <https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductStore?productStoreId=9000>, and set the "Visual Theme Store" to your visual theme ? I still explain it in a previous email in this thread but not sure you try it. HTH Julien. Le 22/09/2018 à 09:26, Shrilesh Korgaonkar a écrit : > Thank guys > I hard code it > <set field="visualThemeId" value="MY_VISUALTHEME"/> > > On Sat, Sep 22, 2018 at 8:19 AM Shrilesh Korgaonkar < > [hidden email]> wrote: > >> <set field="visualThemeId" from-field="productStore.visualThemeId" >> default-value="MY_VISUALTHEME"/> >> tried still on the same problem >> >> On Fri, Sep 21, 2018 at 4:00 PM Julien NICOLAS <[hidden email]> >> wrote: >> >>> +1 >>> >>> >>> Le 21/09/2018 à 15:04, Deepak Dixit a écrit : >>>> Hi Shrilesh, >>>> >>>> Please check ProductStore entity, you should set visulaThemeId in >>>> ProductStore entity else it will pick the default ecommerce theme. >>>> >>>> You can check this in ecommerce main decorator. >>>> >>>> <set field="visualThemeId" from-field="productStore.visualThemeId" >>>> default-value="EC_DEFAULT"/> >>>> >>>> >>>> >>>> Thanks & Regards >>>> -- >>>> Deepak Dixit >>>> >>>> >>>> On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar < >>>> [hidden email]> wrote: >>>> >>>>> Already checked the path and step to create a theme >>>>> >>>>> On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> >>> wrote: >>>>>> Did you prepare and load VisualTheme data? >>>>>> >>>>>> Also, please check the name and path mention in this code block: >>>>>> >>>>>> <property name="VT_HDR_TMPLT_LOC" >>>>>> value="component://application-name/template/includes/Header.ftl"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Kind Regards, >>>>>> >>>>>> Arun Patidar >>>>>> Director of Information Systems >>>>>> >>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>> m: +91 9827353082 >>>>>> w: www.hotwax.co >>>>>> >>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>> <https://twitter.com/hotwaxcommerce> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar < >>>>>> [hidden email]> wrote: >>>>>> >>>>>>> Theme.xml >>>>>>> >>>>>>> <theme name="my_visualtheme" >>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>> xsi:noNamespaceSchemaLocation=" >>>>>>> http://ofbiz.apache.org/dtds/widget-theme.xsd"> >>>>>>> <visual-themes> >>>>>>> <visual-theme id="MY_VISUALTHEME" display-name="My Visual >>>>>> Theme"/> >>>>>>> </visual-themes> >>>>>>> >>>>>>> <extends location="component://common-theme/widget/Theme.xml"/> >>>>>>> <theme-properties> >>>>>>> <!--Css style--> >>>>>>> <property name="VT_STYLESHEET['add']" >>>>>>> value="/application-name/images/blog.css"/> >>>>>>> <property name="VT_STYLESHEET['add']" >>>>>>> value="/application-name/css/custom.css"/> >>>>>>> <property name="VT_STYLESHEET['add']" >>>>>>> value="/contentimages/css/contentForum.css"/> >>>>>>> <!--header image --> >>>>>>> <property name="VT_HDR_IMAGE_URL" >>>>>> value="/images/ofbiz_logo.png"/> >>>>>>> <property name="VT_SHORTCUT_ICON" >>> value="/images/ofbiz.ico"/> >>>>>>> <!--template location--> >>>>>>> <property name="VT_HDR_TMPLT_LOC" >>>>>>> value="component://application-name/template/includes/Header.ftl"/> >>>>>>> <property name="VT_FTR_TMPLT_LOC" >>>>>>> value="component://application-name/template/includes/Footer.ftl"/> >>>>>>> </theme-properties> >>>>>>> </theme> >>>>>>> >>>>>>> On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar < >>> [hidden email] >>>>>>> wrote: >>>>>>> >>>>>>>> Hello Shrilesh, >>>>>>>> >>>>>>>> Did you use the component location for plugin file >>>>>>>> like: component://myplugin/template/Header.ftl >>>>>>>> >>>>>>>> You can also share your example code so that someone can catch the >>>>>>> missing >>>>>>>> things in it. >>>>>>>> >>>>>>>> >>>>>>>> Kind Regards, >>>>>>>> >>>>>>>> Arun Patidar >>>>>>>> Director of Information Systems >>>>>>>> >>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>>>> m: +91 9827353082 >>>>>>>> w: www.hotwax.co >>>>>>>> >>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>>>> <https://twitter.com/hotwaxcommerce> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar < >>>>>>>> [hidden email]> wrote: >>>>>>>> >>>>>>>>> Yup I read that also created but still it's unable to load with my >>>>>>> plugin >>>>>>>>> Path of Theme.xml file:: plugins/application-name/widget/Theme.xml >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] >>>>>>>> wrote: >>>>>>>>>> Did you read and follow file [1] shared by Nicolas in another >>>>>>>>> thread >>>>>>>>>> of you? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ >>>>>>>> trunk/themes/README.md >>>>>>>>>> Kind Regards, >>>>>>>>>> >>>>>>>>>> Arun Patidar >>>>>>>>>> Director of Information Systems >>>>>>>>>> >>>>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>>>>>> m: +91 9827353082 >>>>>>>>>> w: www.hotwax.co >>>>>>>>>> >>>>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>>>>>> <https://twitter.com/hotwaxcommerce> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar < >>>>>>>>>> [hidden email]> wrote: >>>>>>>>>> >>>>>>>>>>> Yup I tried hard coding it >>>>>>>>>>> But I need help in theme.xml file it not loading with my plugin >>>>>>>>>>> If I can load it I will able to edit without disturbing >>>>> decorator >>>>>>>>> screen >>>>>>>>>>> On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < >>>>>> [hidden email] >>>>>>>>>> wrote: >>>>>>>>>>>> Hello Shrilesh, >>>>>>>>>>>> >>>>>>>>>>>> Check the decorator screens locations in view-map path >>>>> screens. >>>>>>> You >>>>>>>>>> will >>>>>>>>>>>> need to create/use your custom decorator. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Kind Regards, >>>>>>>>>>>> >>>>>>>>>>>> Arun Patidar >>>>>>>>>>>> Director of Information Systems >>>>>>>>>>>> >>>>>>>>>>>> *HotWax CommerceReal OmniChannel. Real Results.* >>>>>>>>>>>> m: +91 9827353082 >>>>>>>>>>>> w: www.hotwax.co >>>>>>>>>>>> >>>>>>>>>>>> <https://www.linkedin.com/company/hotwaxcommerce/> >>>>>>>>>>>> <https://www.facebook.com/HotWaxCommerce/> >>>>>>>>>>>> <https://twitter.com/hotwaxcommerce> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar < >>>>>>>>>>>> [hidden email]> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> I'm facing some problem >>>>>>>>>>>>> can anybody help me if possible >>>>>>>>>>>>> i have created a plugin and extended the ecommerce plugin >>>>>>>>>>>>> i successful created templates and view-map in >>>>> controller.xml >>>>>>>>>>>>> but when i saw the source of html page >>>>>>>>>>>>> i notice that the page is using my templets as well as the >>>>>>>> existing >>>>>>>>>>>>> templets of the ecommerce >>>>>>>>>>>>> after creating Theme.xml and fixing header and footer in >>>>> the >>>>>>> html >>>>>>>>>> page >>>>>>>>>>>>> source is still showing me the same thing it's header and >>>>>>> footer >>>>>>>>> are >>>>>>>>>>>> still >>>>>>>>>>>>> coming from ecommerce >>>>>>>>>>>>> >>>>>>>>>>>>> In simple words >>>>>>>>>>>>> how can i use my own created templete rather than using the >>>>>>>>> templete >>>>>>>>>> of >>>>>>>>>>>>> existing ecommerce application >>>>>>>>>>>>> in my own application >>>>>>>>>>>>> >>> |
Thanks, I'll check it out.
On Mon, Sep 24, 2018 at 7:18 AM Julien NICOLAS <[hidden email]> wrote: > Hi Shrilesh, > > Hard-coded is rarely the best solution. > > Did you try to go to Catalog=>Stores, select your ecommerce product store > <https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductStore?productStoreId=9000>, > and set the "Visual Theme Store" to your visual theme ? > > I still explain it in a previous email in this thread but not sure you try > it. > > HTH > > Julien. > > Le 22/09/2018 à 09:26, Shrilesh Korgaonkar a écrit : > > Thank guys > I hard code it > <set field="visualThemeId" value="MY_VISUALTHEME"/> > > On Sat, Sep 22, 2018 at 8:19 AM Shrilesh Korgaonkar <[hidden email]> wrote: > > > <set field="visualThemeId" from-field="productStore.visualThemeId" > default-value="MY_VISUALTHEME"/> > tried still on the same problem > > On Fri, Sep 21, 2018 at 4:00 PM Julien NICOLAS <[hidden email]> <[hidden email]> > wrote: > > > +1 > > > Le 21/09/2018 à 15:04, Deepak Dixit a écrit : > > Hi Shrilesh, > > Please check ProductStore entity, you should set visulaThemeId in > ProductStore entity else it will pick the default ecommerce theme. > > You can check this in ecommerce main decorator. > > <set field="visualThemeId" from-field="productStore.visualThemeId" > default-value="EC_DEFAULT"/> > > > > Thanks & Regards > -- > Deepak Dixit > > > On Wed, Sep 19, 2018 at 6:57 PM, Shrilesh Korgaonkar <[hidden email]> wrote: > > > Already checked the path and step to create a theme > > On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <[hidden email]> <[hidden email]> > > wrote: > > Did you prepare and load VisualTheme data? > > Also, please check the name and path mention in this code block: > > <property name="VT_HDR_TMPLT_LOC" > value="component://application-name/template/includes/Header.ftl"/> > > > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.linkedin.com/company/hotwaxcommerce/><https://www.facebook.com/HotWaxCommerce/> <https://www.facebook.com/HotWaxCommerce/><https://twitter.com/hotwaxcommerce> <https://twitter.com/hotwaxcommerce> > > > > On Wed, Sep 19, 2018 at 4:28 PM Shrilesh Korgaonkar <[hidden email]> wrote: > > > Theme.xml > > <theme name="my_visualtheme" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance> > xsi:noNamespaceSchemaLocation=" > http://ofbiz.apache.org/dtds/widget-theme.xsd" <http://ofbiz.apache.org/dtds/widget-theme.xsd>> > <visual-themes> > <visual-theme id="MY_VISUALTHEME" display-name="My Visual > > Theme"/> > > </visual-themes> > > <extends location="component://common-theme/widget/Theme.xml"/> > <theme-properties> > <!--Css style--> > <property name="VT_STYLESHEET['add']" > value="/application-name/images/blog.css"/> > <property name="VT_STYLESHEET['add']" > value="/application-name/css/custom.css"/> > <property name="VT_STYLESHEET['add']" > value="/contentimages/css/contentForum.css"/> > <!--header image --> > <property name="VT_HDR_IMAGE_URL" > > value="/images/ofbiz_logo.png"/> > > <property name="VT_SHORTCUT_ICON" > > value="/images/ofbiz.ico"/> > > <!--template location--> > <property name="VT_HDR_TMPLT_LOC" > value="component://application-name/template/includes/Header.ftl"/> > <property name="VT_FTR_TMPLT_LOC" > value="component://application-name/template/includes/Footer.ftl"/> > </theme-properties> > </theme> > > On Wed, Sep 19, 2018 at 11:52 AM, Arun Patidar < > > [hidden email] > > wrote: > > > Hello Shrilesh, > > Did you use the component location for plugin file > like: component://myplugin/template/Header.ftl > > You can also share your example code so that someone can catch the > > missing > > things in it. > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.linkedin.com/company/hotwaxcommerce/><https://www.facebook.com/HotWaxCommerce/> <https://www.facebook.com/HotWaxCommerce/><https://twitter.com/hotwaxcommerce> <https://twitter.com/hotwaxcommerce> > > > > On Wed, Sep 19, 2018 at 2:46 PM Shrilesh Korgaonkar <[hidden email]> wrote: > > > Yup I read that also created but still it's unable to load with my > > plugin > > Path of Theme.xml file:: plugins/application-name/widget/Theme.xml > > > > On Wed 19 Sep, 2018, 2:12 PM Arun Patidar, <[hidden email] > > wrote: > > Did you read and follow file [1] shared by Nicolas in another > > > thread > > of you? > > > > > https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/ > > trunk/themes/README.md > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.linkedin.com/company/hotwaxcommerce/><https://www.facebook.com/HotWaxCommerce/> <https://www.facebook.com/HotWaxCommerce/><https://twitter.com/hotwaxcommerce> <https://twitter.com/hotwaxcommerce> > > > > On Tue, Sep 18, 2018 at 9:55 PM Shrilesh Korgaonkar <[hidden email]> wrote: > > > Yup I tried hard coding it > But I need help in theme.xml file it not loading with my plugin > If I can load it I will able to edit without disturbing > > decorator > > screen > > > On Tue 18 Sep, 2018, 7:06 PM Arun Patidar, < > > [hidden email] > > wrote: > > Hello Shrilesh, > > Check the decorator screens locations in view-map path > > screens. > > You > > will > > need to create/use your custom decorator. > > > > Kind Regards, > > Arun Patidar > Director of Information Systems > > *HotWax CommerceReal OmniChannel. Real Results.* > m: +91 9827353082 > w: www.hotwax.co > > <https://www.linkedin.com/company/hotwaxcommerce/> <https://www.linkedin.com/company/hotwaxcommerce/><https://www.facebook.com/HotWaxCommerce/> <https://www.facebook.com/HotWaxCommerce/><https://twitter.com/hotwaxcommerce> <https://twitter.com/hotwaxcommerce> > > > > On Tue, Sep 18, 2018 at 5:31 AM Shrilesh Korgaonkar <[hidden email]> wrote: > > > I'm facing some problem > can anybody help me if possible > i have created a plugin and extended the ecommerce plugin > i successful created templates and view-map in > > controller.xml > > but when i saw the source of html page > i notice that the page is using my templets as well as the > > existing > > templets of the ecommerce > after creating Theme.xml and fixing header and footer in > > the > > html > > page > > source is still showing me the same thing it's header and > > footer > > are > > still > > coming from ecommerce > > In simple words > how can i use my own created templete rather than using the > > templete > > of > > existing ecommerce application > in my own application > > > > > |
Free forum by Nabble | Edit this page |