[ 
https://issues.apache.org/jira/browse/OFBIZ-2106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bruno Busco updated OFBIZ-2106:
-------------------------------

    Attachment: vt_multiflex.zip
                BrowseCategoryCSS.patch
                EcommerceVisualTheme.patch

Hi devs,
I have completed my work on the VisualTheme for ecommerce and I have attached 
to this issues two patches ready for reviewing and eventually commiting.
In addition you can find an example of an alternative theme that can be 
installed and used for the ecommerce once the two patches are applied.

Here a detailed description of the patches:
1) EcommerceVisualTheme.patch
This patch has been already described before. In this version I added a 
visualThemeTypeId field to the VisualTheme entity that is now used to filter 
for the visual theme for the ecommerce and for the backoffice.

2) BrowseCategoryCSS.patch
This is a CSS cleanup patch that removes many style attribute in the browse 
category.
Basically this tag <div style='margin-left: 10px;'> is replaced by <div 
class="browsecategorylist">
and the new browsecategorylist rule has been added to both maincss.css and 
ecomcss.css
Another change is the replacement of the "-&nbsp;" in the html with a CSS that 
allows to replace the "-" with anything else in the theme.
This change allows the themes to have more control on the presentation.
Many occurrence of "tabletext" have been eliminated and replaced with a <p> 
tag. The tabletext elimination has been indicated in the UI refactor guideline 
on Confluence.

3) vt_multiflex.zip is an example theme that can be used for the ecommerce. It 
is intended for a demo and I did not developed it interely. But it is a good 
example. A screenshot is also attached to this issue.

4) An additional file "bin.zip" is attached to this patch in order to add a 
screenshot for the default ecommerce theme



> Visual Themes for Ecommerce
> ---------------------------
>
>                 Key: OFBIZ-2106
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2106
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ecommerce
>    Affects Versions: SVN trunk
>            Reporter: Bruno Busco
>         Attachments: bin.zip, BrowseCategoryCSS.patch, 
> EcommerceVisualTheme.patch, EcommerceVisualTheme.patch, vt_multiflex.zip
>
>
> Hi,
> in the attached patch a simple implementation of selectable visual themes for 
> the ecommerce application.
> I have added the "visualThemeId" to the ProductStore entity. The user can 
> select one of the available themes in the EditProductStore screen.
> I have defined the actual ecommerce theme as the default theme that is 
> "EC_DEFAULT".
> I have followed for the ecommerce main-decorator screen a pattern similar to 
> what done for the back-end.
> One thing that we could think to do (but I would like to hear someone about) 
> is to add a "typeId" field or similar to the VisualTheme entity that could be 
> used to distinguish between the themes for the back-end and for the ecommerce.
> Right now it is possible to select all of the available themes for bost 
> application and this results in a mess if, for example, a theme for ecommerce 
> is selected for the back-end and viceversa.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to