Author: jleroux
Date: Thu Feb 5 10:57:26 2009 New Revision: 741073 URL: http://svn.apache.org/viewvc?rev=741073&view=rev Log: A patch from Amit Sharma "Extending the capability of configurable product in OFBiz with Freature tree generation technique" (https://issues.apache.org/jira/browse/OFBIZ-2161) - OFBIZ-2161 Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl?rev=741073&r1=741072&r2=741073&view=diff ============================================================================== --- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl (original) +++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl Thu Feb 5 10:57:26 2009 @@ -226,18 +226,17 @@ </script> </#if> -<#assign addedFeatureTreeJavaScript = requestAttributes.addedFeatureTreeJavaScript?default("N")/> -<#if product.virtualVariantMethodEnum?if_exists == "VV_FEATURETREE" && featureLists?has_content && ("N" == addedFeatureTreeJavaScript)> - ${setRequestAttribute("addedFeatureTreeJavaScript", "Y")} +<#if product.virtualVariantMethodEnum?if_exists == "VV_FEATURETREE" && featureLists?has_content> <script language="JavaScript" type="text/javascript"> - function checkRadioButtoninline(inlineCounter, productId) { + function checkRadioButtoninline${inlineCounter}(inlineCounter, productId) { var add_product_id = 'add_product_id' + inlineCounter; <#list featureLists as featureList> <#list featureList as feature> <#if feature_index == 0> var myList = document.getElementById("FT" +inlineCounter + "${feature.productFeatureTypeId}"); if (myList.options[0].selected == true) { - document.configform[add_product_id].value = 'NULL'; + document.configform[add_product_id].value = 'NULL'; + checkOption(inlineCounter); return; } <#break> @@ -272,7 +271,7 @@ <#list featureLists as featureList> <#list featureList as feature> <#if feature_index == 0> - <div>${feature.description}: <select id="FT${inlineCounter}${feature.productFeatureTypeId}" name="FT${inlineCounter}${feature.productFeatureTypeId}" onChange="javascript:checkRadioButtoninline('${inlineCounter}', '${product.productId}');"> + <div>${feature.description}: <select id="FT${inlineCounter}${feature.productFeatureTypeId}" name="FT${inlineCounter}${feature.productFeatureTypeId}" onChange="javascript:checkRadioButtoninline${inlineCounter}('${inlineCounter}', '${product.productId}');"> <option value="select" selected="selected"> select option </option> <#else> <option value="${feature.productFeatureId}">${feature.description} <#if feature.price?exists>(+ <@ofbizCurrency amount=feature.price?string isoCode=feature.currencyUomId/>)</#if></option> |
Free forum by Nabble | Edit this page |