Hi all,
I tried to test the theme multiflex (for ecommerce) and detect a small problem as the following: (USING http://demo-trunk.ofbiz.apache.org) 1.connect to catalog manager 2.go to "store" tab and select the store with id 9000 3.change its viual theme to MULTIFLEX 4.open the ecommerce site (it's ok with new theme) 5.select a catagory from the categories menu on the left side. 6.select another language And the problem come up: The theme now is EC_DEFAULT instead of MULTIFLEX Please tell me what is the problem and how to fix it. Regards, Franck NGUYEN |
Administrator
|
It's related to a not finished change introduced with http://svn.apache.org/viewvc?view=revision&revision=1128983
I mean the addCheckValue request and sequel... It would be fixed by this patch Index: script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml =================================================================== --- script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml (revision 1426134) +++ script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml (working copy) @@ -126,10 +126,5 @@ <call-service service-name="createAffiliate" in-map-name="af_context"> <default-message resource="EcommerceUiLabels" property="EcommerceAffiliateCreatedSuccessfully"/> </call-service> - </simple-method> - <simple-method method-name="addCheckValue" short-description="Add field to request for investigation purpose" login-required="false"> - <set field="checkValue" value="check" type="PlainString"/> - <field-to-request field="checkValue" request-name="checkValue"/> - </simple-method> </simple-methods> Index: webapp/ecommerce/WEB-INF/controller.xml =================================================================== --- webapp/ecommerce/WEB-INF/controller.xml (revision 1426134) +++ webapp/ecommerce/WEB-INF/controller.xml (working copy) @@ -132,7 +132,7 @@ <request-map uri="setSessionLocale"> <security https="false" auth="false"/> <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/> - <response name="success" type="request-redirect" value="checkValue"/> + <response name="success" type="request-redirect" value="main"/> <response name="error" type="view" value="main"/> </request-map> Index: widget/CatalogScreens.xml =================================================================== --- widget/CatalogScreens.xml (revision 1426134) +++ widget/CatalogScreens.xml (working copy) @@ -534,7 +534,6 @@ <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/> <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/Category.groovy"/> - <set field="check" type="PlainString" value="${groovy: return request.getAttribute('checkValue');}"/> <set field="visualThemeId" from-field="productStore.visualThemeId" default-value="EC_DEFAULT"/> <service service-name="getVisualThemeResources"> <field-map field-name="visualThemeId"/> @@ -545,26 +544,16 @@ <widgets> <section> <condition> - <if-compare operator="equals" value="check" field="check" type="PlainString"/> + <if-empty field="category_id"/> </condition> <widgets> - <include-screen name="category"/> + <include-screen name="newbreadcrumbs" share-scope="true"/> </widgets> <fail-widgets> - <section> - <condition> - <if-empty field="category_id"/> - </condition> - <widgets> - <include-screen name="newbreadcrumbs" share-scope="true"/> - </widgets> - <fail-widgets> - <include-screen name="breadcrumbs" share-scope="true"/> - </fail-widgets> - </section> - <include-screen name="category-include" share-scope="true"/> + <include-screen name="breadcrumbs" share-scope="true"/> </fail-widgets> </section> + <include-screen name="category-include" share-scope="true"/> </widgets> <fail-widgets> <section> But then we return to main page (as it was before) instead of current category. Please open a Jira and let's see what we can do... https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices Jacques From: "Duc Trung NGUYEN" <[hidden email]> > Hi all, > I tried to test the theme multiflex (for ecommerce) and detect a small > problem as the following: (USING http://demo-trunk.ofbiz.apache.org) > > 1.connect to catalog manager > 2.go to "store" tab and select the store with id 9000 > 3.change its viual theme to MULTIFLEX > > 4.open the ecommerce site (it's ok with new theme) > 5.select a catagory from the categories menu on the left side. > 6.select another language > > And the problem come up: > The theme now is EC_DEFAULT instead of MULTIFLEX > > Please tell me what is the problem and how to fix it. > > Regards, > Franck NGUYEN > |
In reply to this post by Duc Trung NGUYEN
Hi Trung,
I am Duong, from Hanoi. I would like to start an OFBiz project for Vietnamese, so I want to contact you. Where are you? Duong. 2012/12/27 Duc Trung NGUYEN <[hidden email]> > Hi all, > I tried to test the theme multiflex (for ecommerce) and detect a small > problem as the following: (USING http://demo-trunk.ofbiz.apache.org) > > 1.connect to catalog manager > 2.go to "store" tab and select the store with id 9000 > 3.change its viual theme to MULTIFLEX > > 4.open the ecommerce site (it's ok with new theme) > 5.select a catagory from the categories menu on the left side. > 6.select another language > > And the problem come up: > The theme now is EC_DEFAULT instead of MULTIFLEX > > Please tell me what is the problem and how to fix it. > > Regards, > Franck NGUYEN > |
Chao Duong,
Ban co the lien lac voi minh qua mobile 0988993333. Minh dang lam viec tai Phap. Hien tai dang ve Vietnam dau thau du an BPM/ESB/SOA. Rat mong duoc cung chia se y tuong voi ban ! Trung On Fri, Dec 28, 2012 at 12:15 PM, Dương Nguyễn Hữu <[hidden email]> wrote: > Hi Trung, > > I am Duong, from Hanoi. > > I would like to start an OFBiz project for Vietnamese, so I want to contact > you. > > Where are you? > > Duong. > > > 2012/12/27 Duc Trung NGUYEN <[hidden email]> > > > Hi all, > > I tried to test the theme multiflex (for ecommerce) and detect a small > > problem as the following: (USING http://demo-trunk.ofbiz.apache.org) > > > > 1.connect to catalog manager > > 2.go to "store" tab and select the store with id 9000 > > 3.change its viual theme to MULTIFLEX > > > > 4.open the ecommerce site (it's ok with new theme) > > 5.select a catagory from the categories menu on the left side. > > 6.select another language > > > > And the problem come up: > > The theme now is EC_DEFAULT instead of MULTIFLEX > > > > Please tell me what is the problem and how to fix it. > > > > Regards, > > Franck NGUYEN > > > |
Administrator
|
In reply to this post by Jacques Le Roux
Fixed at revision: 1426787 in trunk
Jacques From: "Jacques Le Roux" <[hidden email]> > It's related to a not finished change introduced with http://svn.apache.org/viewvc?view=revision&revision=1128983 > I mean the addCheckValue request and sequel... > > It would be fixed by this patch > > Index: script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml > =================================================================== > --- script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml (revision 1426134) > +++ script/org/ofbiz/ecommerce/misc/AffiliateSimpleEvents.xml (working copy) > @@ -126,10 +126,5 @@ > <call-service service-name="createAffiliate" in-map-name="af_context"> > <default-message resource="EcommerceUiLabels" property="EcommerceAffiliateCreatedSuccessfully"/> > </call-service> > - > </simple-method> > - <simple-method method-name="addCheckValue" short-description="Add field to request for investigation purpose" login-required="false"> > - <set field="checkValue" value="check" type="PlainString"/> > - <field-to-request field="checkValue" request-name="checkValue"/> > - </simple-method> > </simple-methods> > Index: webapp/ecommerce/WEB-INF/controller.xml > =================================================================== > --- webapp/ecommerce/WEB-INF/controller.xml (revision 1426134) > +++ webapp/ecommerce/WEB-INF/controller.xml (working copy) > @@ -132,7 +132,7 @@ > <request-map uri="setSessionLocale"> > <security https="false" auth="false"/> > <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/> > - <response name="success" type="request-redirect" value="checkValue"/> > + <response name="success" type="request-redirect" value="main"/> > <response name="error" type="view" value="main"/> > </request-map> > > Index: widget/CatalogScreens.xml > =================================================================== > --- widget/CatalogScreens.xml (revision 1426134) > +++ widget/CatalogScreens.xml (working copy) > @@ -534,7 +534,6 @@ > <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> > <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/> > <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/Category.groovy"/> > - <set field="check" type="PlainString" value="${groovy: return request.getAttribute('checkValue');}"/> > <set field="visualThemeId" from-field="productStore.visualThemeId" default-value="EC_DEFAULT"/> > <service service-name="getVisualThemeResources"> > <field-map field-name="visualThemeId"/> > @@ -545,26 +544,16 @@ > <widgets> > <section> > <condition> > - <if-compare operator="equals" value="check" field="check" type="PlainString"/> > + <if-empty field="category_id"/> > </condition> > <widgets> > - <include-screen name="category"/> > + <include-screen name="newbreadcrumbs" share-scope="true"/> > </widgets> > <fail-widgets> > - <section> > - <condition> > - <if-empty field="category_id"/> > - </condition> > - <widgets> > - <include-screen name="newbreadcrumbs" share-scope="true"/> > - </widgets> > - <fail-widgets> > - <include-screen name="breadcrumbs" share-scope="true"/> > - </fail-widgets> > - </section> > - <include-screen name="category-include" share-scope="true"/> > + <include-screen name="breadcrumbs" share-scope="true"/> > </fail-widgets> > </section> > + <include-screen name="category-include" share-scope="true"/> > </widgets> > <fail-widgets> > <section> > > > But then we return to main page (as it was before) instead of current category. Please open a Jira and let's see what we can do... > https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices > > Jacques > > From: "Duc Trung NGUYEN" <[hidden email]> >> Hi all, >> I tried to test the theme multiflex (for ecommerce) and detect a small >> problem as the following: (USING http://demo-trunk.ofbiz.apache.org) >> >> 1.connect to catalog manager >> 2.go to "store" tab and select the store with id 9000 >> 3.change its viual theme to MULTIFLEX >> >> 4.open the ecommerce site (it's ok with new theme) >> 5.select a catagory from the categories menu on the left side. >> 6.select another language >> >> And the problem come up: >> The theme now is EC_DEFAULT instead of MULTIFLEX >> >> Please tell me what is the problem and how to fix it. >> >> Regards, >> Franck NGUYEN >> > |
Free forum by Nabble | Edit this page |