Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22754

Make productDatatypeList configurable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2014.03
    • Fix Version/s: 5.3
    • Component/s: 5.x > Legacy IO
    • Labels:
      None

      Description

      This is a proposal coming from something i had to implement for one of our products

      Actually productDatatypeList is harcoded in the ezshopfunctions class. See
      https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/shop/classes/ezshopfunctions.php#L113

      It also happens that ezpricetype doesn't not override isIndexable function of ezdatatype and because of that, ezpricet can't be indexed by default.

      For one of our projects we really needed to have prices indexable in order to do Solr search for sorting results mainly. In order to not modify anything in the ez Publish kernel we created a custom datatype extending from ezprice and just adding the isIndexable function returning too.

      We called that datatype "customezprice". But as said at the very first of this explain, product data type list is hardcoded in the code and to tell eZ that our custom ezprice was in fact a price, we had to hack that class.

      So, i propose adding this product datatype list string to the site.ini under the shop settings group

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            desorden Carlos Revillo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: