Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2818

product options shows name as field label instead of description

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.1.0
    • Component/s: Shopping Experience
    • Labels:
      None

      Description

      Hi,

      testing the use of product options I created a template then applied it to a product, for example a text field, and give it a name 'text field test' with a description 'description': i found documentation saying that 

      Description: This text can be displayed on the product page.

      but in the product page it always displays the value for the name, is there any configuration I'm missing or it is not supposed to work like this?

       

      If i'm not wrong, the method 

      private DDMForm _getDDMForm(private DDMForm _getDDMForm( long cpDefinitionId, Locale locale, boolean ignoreSKUCombinations, boolean skuContributor, boolean optional, boolean publicStore) in the class 
      com.liferay.commerce.product.internal.util.CPInstanceHelperImpl

      is responsible for the creation of the ddmform that is then rendered in the product detail page and if I understand well the value for the label comes from the option's name property, shouldn't be the description ?

       

      localizedValue.addString(localizedValue.addString( locale, cpDefinitionOptionRel.getName(locale));
      ddmFormField.setLabel(localizedValue);

       

      Regards,

      Davide Polli

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            davide.polli davide polli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                2.1.0