Skip to content

Product Picker breaks when product has no price #730

@ProworksDevTeam

Description

@ProworksDevTeam

Which component is this issue related to?

Umbraco Commerce (Core)

Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)

15.3.4

Bug summary

When one or more products which match the searched criteria have an empty/null price, the product picker fails to display any results for selection.

Specifics

This has been reproduced in the following projects:

  1. v15.3.4 Custom project based on the demo store
  2. v16.0.0 Demo store
Image Image

Steps to reproduce

Using a product with variants

  1. Using the demo store 16.0.0 project
  2. Go to Commerce Section -> Carts
  3. Create a new cart
  4. Click "Add a Product"
  5. Enter "JT002" or "JT002-13" in search box and search
  6. No results are displayed, despite JT002 and JT002-13 products existing (Jones Tea and Co -> Ever So English Breakfast) and the following error occurs in the browser console:
Image

Using a product without variants

  1. Using the demo store 16.0.0 project
  2. Go to Commerce Section -> Carts
  3. Create a new cart
  4. Click "Add a Product"
  5. Enter "GP002" in search box and search
  6. Good and Proper - Breakfast Tea Set is found
  7. Go to product GP002 (Good and Proper - Breakfast Tea Set) in content tree
  8. Remove prices for both currencies and save
  9. Return to Commerce Section -> Carts
  10. Create a new cart (or edit existing)
  11. Enter "GP002" in search box and search
  12. No products are found and the following error occurs
Image

Expected result / actual result

Expected to find products even though price is empty. This is especially true for products with variants as the parent product should not be purchasable and thus should not have a price. However, this prevents the user from being able to access the variants in the product picker.

Dependencies

No response


This item has been added to our backlog AB#54576

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions