Start a conversation

Product Configurations Not Appearing in Deal Management Due to Custom JS Sorter Plugin

Symptom

Product configurations are not showing in Deal Management for a specific basket. The product code attribute is not blank and product/solution definitions are active.

Cause

A custom JS sorter function (e.g., HV_DM_ProductConfigSorter) receives valid input (configTree) but returns a blank configTree due to a logic error. This causes Deal Management to display no configurations.

Resolution

Step 1: Open the affected basket in Deal Management

Step 2: Open browser Developer Tools (F12) > Console

Step 4: Look for custom JS sorter functions (e.g., HV_DM_ProductConfigSorter or similar custom sorters registered in the Deal Management plugin)

Step 5: Debug the sorter: verify the input configTree contains valid data and check the return value

Step 6: Fix the custom sorter logic to correctly return the processed configTree instead of a blank/undefined value

Step 7: If the basket appears to not be "patched," verify that necessary data migration or patching scripts have been applied to the basket data

Additional Notes

  • Custom JS sorter plugins must return the processed configTree; returning a blank or undefined value prevents configurations from rendering in Deal Management.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments