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

Product page meta-tag does not contain i18n content

    XMLWordPrintableJSON

Details

    Description

      the groovy script that produces the content meta information is only partially using i18n information from the Content Wrapper. Namely, it does NOT use the Product or Category ContentWrapper to receive internationalized content for Product Name and Description or Category Description but rather the direct properties of the product entity.
      Using the ContentWrapper will overcome this shortcoming.

      The fix needs to be applied in applications/order/webapp/ordermgr/WEB-INF/actions/cart/catalog/Product.groovy

      It is assumed that ContentWrappers will handle primitive over related Content properly, ie. if there is no related Content entity but only primitive content, it will return that. And if there is i18n content missing in the desired (current session) locale, it will return the default locale translation.

      The attached fixes are for the most-used releases and trunk.

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            c_schinzer Carsten Schinzer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified