I am reporting a technical bug in the sample data for the “Mastering Storefronts with Liferay” course.
Problem: After running blade server init, Product Display Pages (PDP) return a blank screen and a console error: java.lang.ArithmeticException: BigInteger divide by zero at com.liferay.commerce.internal.price.CommerceProductPriceCalculationV2Impl.
Root Cause: The Price List Entries imported for the Clarity site have a value of 0 in the Quantity field. This causes the pricing engine to fail when calculating unit prices for the Display Page Templates.
Steps to Reproduce:
-
Initialize the project with
blade server init. -
Set “Product Details” as the default Display Page Template.
-
Visit a product like “Round Metal Sunglasses”.
Requested Fix: Please update the course’s sample data to ensure all Price List Entries have a minimum Quantity of 1 instead of 0. This will prevent the division-by-zero exception and allow students to complete the Storefront exercises without manual database/UI fixes.
Thank you for maintaining this material!