Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3347 As a buyer, I want to see the price of individual product bundle options
  3. COMMERCE-3571

Update price calculation code in product-service modules and update with price delta calculation

    Details

      Description

      Latest work was calculation that does minimal product bundle price.

      Goal 1:
      for given product bundle's cProductId or cpDefinitionId algorithm should return minimal price that user can get when price is composed from option values with minimal price.

      Example:
      Bundle: Desktop PC - price 200$
      Option Keyboard: k1 - 20$, k2 - 30$, k3 - 40$
      Option Mouse: m1 - 10$, m2 - 40$, m3 - 100$

      Minimal price: 200$ + price(k1) + price(m1) = 230$

      This should be applicable to all Required OR SKU Contributor Options.

      Goal 2:
      for given product bundle configuration designated by specific cpInstanceId and its cpDefinnitionOption configuration provide utility that can tell if given cpDefinitionOptionValue's price (either it is static or dynamic) - increases or decreases given product bundle instance price
      (please be aware that cpInstanceOptionValueRel may help here but be aware that some methods filter out NON-SKU Contributor option values)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor.beslic Igor Beslic
              Reporter:
              igor.beslic Igor Beslic
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package