Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Drilldown View does not respect Inventory Mode #510

Open
1 of 4 tasks
alex-pommier opened this issue Dec 12, 2024 · 0 comments
Open
1 of 4 tasks

Category Drilldown View does not respect Inventory Mode #510

alex-pommier opened this issue Dec 12, 2024 · 0 comments

Comments

@alex-pommier
Copy link

Sponsorship

If this request requires additional support (e.g., such as direct email/phone/meeting/development), I have the following interest in helping to sponsor the effot via GitHub Sponsors:

  • None, please continute to work for me for free :P
  • Absolutely, I get value out of this!
  • Maybe later
  • I'm already a sponsor... Woot!

Describe the bug

The drilldown view model does not respect the "When Out of Stock, Show but Don't Allow Purchaases" setting option. Products with this inventory mode setting are expected to show on the category drilldown view even if inventory is zero. The product when set with a positive inventory integer does show in the view and it still shows after setting it to zero but it dissapears once the HCC cache is cleared. It's not in the JSON once cache is cleared either which is what's used to populate the view.

Software Versions

TESTED ON 2 VERSION of DNN & HCC

  • DNN: 09.13.06 & 09.13.02
  • Hotcakes: 03.08.02 & 03.06.00

To Reproduce

Steps to reproduce the behavior:

  1. HCC Category module should be set to drilldown view
  2. A product's Inventory Mode should be set to "When Out of Stock, Show but Don't Allow Purchaases" with a positive inventory count.
  3. Observe the product does appear in the category module.
  4. Set the inventory to 0, observe the product still appears in the category module.
  5. Clear the cache, the product no longer shows on the category module.

Expected behavior

The product with inventory mode set to: "When Out of Stock, Show but Don't Allow Purchaases" is expected to still show or be in the JSON for the Category Module's DrillDown View Model even if inventory is at 0 regardless of cache.

Actual behavior

The product no longer appears in the category module drilldown view when inventory is set to 0 after clearing cache.

Screenshots

If applicable, add screenshots to help explain your problem.
Video recording of the steps to reproduce the bug
https://www.dropbox.com/scl/fi/gyltgz5evfe749enf8b7q/HCC_Bug_InventoryMode.mp4?rlkey=4bst9ob2rxu5copeps17y226d&st=mxrrfk68&dl=0

@alex-pommier alex-pommier changed the title Drilldown View does not respect Inventory Mode Category Drilldown View does not respect Inventory Mode Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant