Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3481 As a store administrator, I want to dynamically calculate shipping information of a bundled product
  3. COMMERCE-3577

Adding product bundles with static option values to cart should result with order items that have parent order ID

    Details

      Description

      Action of adding product bundle to cart should result in more than one commerce order item:
      1. One order item must always be created and it relates to product instance (SKU) of product bundle
      2. One ore more order items should be created to reflect chargeable option value (option value can be standalone price or link to valid bundleable product instance whose price is overriden in cpOptionValueRel (cpDefinitionOption has priceType = static)

      CHALLENGE: what is minimum to create commerce order item from cpDefinitionValue or CommerceOptionValue DTO? Do they together with info from product bundle instance have enough data to form useful child commerce order item?

      NOTE1: Case of option value that links to valid product instance but overrides its price should not differ (except the price override) from the case of priceType=dynamic described by COMMERCE-3573
      NOTE2: inventory checks are not part of this ticket. Assume that validation passed (product and child options are available)

      After completion the task, adding item to the cart should cause DB commerceOrderItem table to contain two or more records

      NOTE4: cover described case with integration tests:
      a) test number of created commerceOrderItems compared to bundle product content
      b) validate proper data mapping from product bundle to order item - pay special attention to price overrides and to chargeable option values that do not link to cp instances

        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
                  2.1.1