You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Shrilesh Korgaonkar <sh...@udyogmandir.in> on 2018/10/08 08:01:53 UTC

Re: Ecommerce

Thanks, I'll check it out.

On Mon, Sep 24, 2018 at 7:18 AM Julien NICOLAS <ju...@nereide.fr>
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 <sh...@udyogmandir.in> 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 <ju...@nereide.fr> <ju...@nereide.fr>
> 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 <sh...@udyogmandir.in> wrote:
>
>
> Already checked the path and step to create a theme
>
> On Wed 19 Sep, 2018, 4:44 PM Arun Patidar, <ar...@hotwax.co> <ar...@hotwax.co>
>
> 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 <sh...@udyogmandir.in> 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 <
>
> arun.patidar@hotwax.co
>
> 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 <sh...@udyogmandir.in> 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, <arun.patidar@hotwax.co
>
> 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.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 <sh...@udyogmandir.in> 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, <
>
> arun.patidar@hotwax.co
>
> 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 <sh...@udyogmandir.in> 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
>
>
>
>
>