[ https://issues.apache.org/jira/browse/OFBIZ-11955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183950#comment-17183950 ]
Jacques Le Roux commented on OFBIZ-11955: ----------------------------------------- ProductSummary.ftl generates only 1 displayProductVirtualId call and 1 product_id_display We miss to iterate over mainProducts: {code:java} <#if mainProducts?has_content> "mainProducts================"${mainProducts} <input type="hidden" name="product_id" value=""/> <select name="productVariantId" onchange="javascript:displayProductVirtualId(this.value, '${product.productId}', this.form);"> <option value="">Select Unit Of Measure</option> <#list mainProducts as mainProduct> <option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option> </#list> </select> <div style="display: inline-block;"> <strong><span id="product_id_display"> </span></strong> <strong><span id="variant_price_display"> </span></strong> </div> </#if> {code} ProductSummary.groovy could be also implied, see {{jsBuf.append("</script>")}} It seems tobe a complicate case of having several virtualVariants on the same page. I let you handle it Alex? > display/selection of unit of measure is broken > ---------------------------------------------- > > Key: OFBIZ-11955 > URL: https://issues.apache.org/jira/browse/OFBIZ-11955 > Project: OFBiz > Issue Type: Bug > Components: ecommerce, order > Affects Versions: Release Branch 17.12, Trunk > Reporter: Alex Bodnaru > Priority: Major > Attachments: Image 002.png, Image 002.png, Image damned.png, > Image1.png, image-2020-08-22-13-00-44-947.png, > image-2020-08-22-13-00-57-856.png, image-2020-08-22-13-03-22-775.png, > image-2020-08-22-13-04-07-722.png, variantinfojs-data.xml > > > checkAmtReq and getVariantPrice are broken for similar reasons, too. > the display and selection of alternative uom elements occur in multiple > forms, one for each product: whether detailed or in summary. thus, they > should be marked by names and classes, not by ids, that are unique in the > entire document. > the bug did not manifest in demo data, since only one product has alternative > packaging. > i did duplicate wg-1111* products and arranged their relations. is, btw, a > way to export product trees in order to share them? > the fix does span the framework and ecommerce repositories. -- This message was sent by Atlassian Jira (v8.3.4#803005)