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

comments on ordering products should be store driven

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: ecommerce
    • Labels:
      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-widgets.patch
          53 kB
          Pierre Smits
        2. OFBIZ-6924-product-entitymodel.xml.patch
          1.0 kB
          Pierre Smits

          Activity

            People

            • Assignee:
              pfm.smits Pierre Smits
              Reporter:
              pfm.smits Pierre Smits
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: