Author: jleroux
Date: Tue Jan 21 16:30:45 2014
New Revision: 1560069
URL:
http://svn.apache.org/r1560069Log:
Fixes an issue with the product link to ecommerce from catalog.
Modified:
ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/CatalogMenus.xml
ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/ProductScreens.xml
Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/CatalogMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/CatalogMenus.xml?rev=1560069&r1=1560068&r2=1560069&view=diff==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/CatalogMenus.xml (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/CatalogMenus.xml Tue Jan 21 16:30:45 2014
@@ -532,9 +532,7 @@ under the License.
<condition>
<not><if-empty field="product"/></not>
</condition>
- <link target="/ecommerce/control/product" url-mode="inter-app">
- <parameter param-name="product_id" from-field="productId"/>
- </link>
+ <link target="/ecommerce/product/${ecomLink}" url-mode="inter-app" />
</menu-item>
<menu-item name="ProductBarCode" title="${uiLabelMap.ProductBarcode}">
<condition>
Modified: ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/ProductScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/ProductScreens.xml?rev=1560069&r1=1560068&r2=1560069&view=diff==============================================================================
--- ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/ProductScreens.xml (original)
+++ ofbiz/branches/OFBIZ-5312-ofbiz-ecommerce-seo-2013-10-23/applications/product/widget/catalog/ProductScreens.xml Tue Jan 21 16:30:45 2014
@@ -33,6 +33,8 @@ under the License.
<set field="productId" from-field="parameters.productId" global="true"/>
<entity-one entity-name="Product" value-field="product"/>
<set field="product" from-field="product" global="true"/>
+ <set field="ecomLink" value="${groovy: product.internalName.replace(' ', org.ofbiz.product.category.ftl.CatalogUrlSeoTransform.URL_HYPHEN)
+ + org.ofbiz.product.category.ftl.CatalogUrlSeoTransform.URL_HYPHEN + productId + '.html'}"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">