Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6924

comments on ordering products should be store driven

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 16.11.01
    • ecommerce
    • None

    Description

      Currently, in ecommerce/tiny-gismo-GZ-1000-p a comment field is shown.

      This is a result of the following code in productdetail.ftl

      <#assign commentEnable = Static["org.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.comment.enable", delegator)>
                  <#if commentEnable.equals("Y")>
                      <#assign orderItemAttr = Static["org.ofbiz.entity.util.EntityUtilProperties"].getPropertyValue("order", "order.item.attr.prefix", delegator)>
                      ${uiLabelMap.CommonComment}&nbsp;<input type="text" name="${orderItemAttr}comment"/>
                  </#if>
      

      Based on the code excerpt this is set by a property value in the order component. However this should be based on a configuration setting in the store.

      Attachments

        1. OFBIZ-6924-product-entitymodel.xml.patch
          1.0 kB
          Pierre Smits
        2. OFBIZ-6924-widgets.patch
          53 kB
          Pierre Smits

        Activity

          People

            pierresmits Pierre Smits
            pierresmits Pierre Smits
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: