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

Can't see a product bundle with two options and if is visible is not possible to do the checkout

    Details

    • Application Servers:
      Apache Tomcat 9.0.x
    • Browsers:
      Chrome (latest)
    • Databases:
      MySQL 5.7
    • Device Type:
      Desktop
    • Search:
      Elasticsearch 6.x
    • Portal Version/s:
      7.1.x

      Description

      Assumptions

      • a Minium Site

      Steps to Reproduce

      • Go to Control Panel → Commerce → Products → (Products) eg. Abs Sensor.
      • Go in the "Options" tab.
      • Add two options eg. Option 1 and Option 2.
      • Edit Option 1.
      • Set Price Type on Static and check the Required toggle.
      • Click on "Save" button.
      • Add one value and add a linked product, and don't change the delta price (0.00$).
      • For Option 2 do the same steps but don't link the option to a SKU.
      • Go on the Minium Site

      Expected Result

       Everything works.

      Actual Result

       The Abs Sensor Minium card does not appear.

      This is the log error:

       

      Current URL /group/minium generates exception: java.lang.NullPointerExceptionCurrent URL /group/minium generates exception: java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.commerce.internal.price.BaseCommerceProductPriceCalculation._getCPDefinitionOptionValueFinalPrice(BaseCommerceProductPriceCalculation.java:447) at com.liferay.commerce.internal.price.BaseCommerceProductPriceCalculation._getCPDefinitionOptionMinStaticPrice(BaseCommerceProductPriceCalculation.java:417) at com.liferay.commerce.internal.price.BaseCommerceProductPriceCalculation.getCPDefinitionMinimumPrice(BaseCommerceProductPriceCalculation.java:81) at com.liferay.commerce.frontend.internal.util.ProductHelperImpl.getMinPrice(ProductHelperImpl.java:63) at com.liferay.commerce.theme.minium.internal.product.renderer.list.entry.MiniumCPContentListEntryRenderer.render(MiniumCPContentListEntryRenderer.java:268) at org.apache.jsp.product_005flist_005fentry_005frenderer.page_jsp._jspService(page_jsp.java:121) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:369) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380) at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153) at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62) at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120) at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48) at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67) at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:202)
      

      If you change the Delta Price for the options the Minium card is now present

       But if you try to do the checkout with this product (Abs Sensor) this is what happens:

      This is the log error:

      https://gist.github.com/Pietro69/c4690281ecd6420b4bb7962facb7c06a

       

       

        Attachments

        1. screen1.png
          screen1.png
          29 kB
        2. screen2.png
          screen2.png
          110 kB
        3. screen3.png
          screen3.png
          126 kB

          Issue Links

            Activity

              People

              Assignee:
              pietro.bocale Pietro Bocale
              Reporter:
              pietro.bocale Pietro Bocale
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.2