-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
Product Stock Levels not Updating for Producer Shop - if product was added and then hidden from own inventory #4355
Comments
An additional note. We've experienced this in the UK on two different shopfronts. They are BOTH single producer shopfronts. This seems relevant as we don't have many active single producer shops in the UK so it is notable that we have two with issues. |
there's high probability this is related to cache... |
Downgrading this to a severity 2 as it's only 1 customer experiencing this on 1 product. Should be fixed by the pagination, and this is going live on Monday. @lin-d-hop and @lbwright22 feel free to dispute this if it doesn't seem right 🙂 |
👍 |
Awaiting retest after #4345 |
@lbwright22 can you keep an eye on this and test after the next release? There will be a notification of the release in #instance-managers or #deployment channel |
@Matt-Yorkley @lin-d-hop @luisramos0 |
Yeah shopfront pagination is in the next release, it will probably be deployed on Tuesday the coming week |
@lbwright22 time to test, the correct release is up on the UK server now :) |
Blocked by deployment of pagination fix #4417 |
@lbwright22 hello! 2.6.1 is now on UK you can retest this :-) |
@RachL @sigmundpetersen tested this morning.
|
I can see it live. It's a producer shop. I'll try to understand what's going on now. EDITED: removed my vegan rant... |
Looks like this is related to products that are or have been added to own inventory.
impact in UK: this is affecting 897 products in 31 different enterprises. this is how the variants that have been in the inventory are removed from the shop: see the code here |
@luisramos0 is this something we can create an automated test for or a test we should add manually in release testing? |
Looks like this got prioritized. I am clearing the assignee for now as it may be picked up by another dev now. |
I'll take a little look at this now. It's not clear from the discussion whether this is working as intended or not, or whether some users want one thing and some want another, so I think we need to proceed carefully here... Related Slack conversation for reference: https://openfoodnetwork.slack.com/archives/CDLKH9MM0/p1573041910137500 |
Matt, I think it's clear:
|
Ok, so for OCs that use inventory only, we don't need any change, right? The default is to use the regular catalogue, and that also includes scoping variants with overrides. The issue is that we need to exclude hidden overrides from the scoping process when fetching products to show in the shop, if the OC has |
Now I see what you mean. Using the catalog "also includes scoping the variants". It feels like this could be a feature, not a bug... WAIT, why do we want to do this? Product wizards? does this make sense? |
Yeah, it's not super clear here. I'm still slightly concerned that a change to the core logic for showing/hiding products could potentially be an unwelcome surprise for some other users who are not expecting it, if they are depending on the logic we have currently. And we can't know if that's the case or not until we change it in production and they complain... |
Another perspective: the problem from the user's point of view is that these variants with hidden overrides can be added to the OC from the OC edit page, but they don't then show up in the shop. The discrepancy between what they expect and what happens is the cause of the annoyance. So an alternate approach would be to make it clearer in the UI of the OC edit page that those variants have been hidden via overrides, and will not appear in the shopfront. That way it's clearer what is happening, and the user will not be surprised/annoyed by unmet expectations. Does that make sense? I'm not sure this is the optimal solution, just throwing it out there. |
I wonder if that is a problem with all hidden variants (can be added to OC but dont show up in shopfront) or just for overridden own variants? |
Otherwise the solution is something like: If: the coordinator of an OC (which is set to use the catalogue) is also a producer and is selling their own products, and some of those products have been overridden, but the overrides are set to hidden... Is that right? I think the required code changes will be horrible... |
I'll take a look... |
In the above example (sorry it's not vegan, @luisramos0) I guess that the |
Another thing here is in the inventory UI: after you've added an override for a variant, you have the option to hide it, but you don't have an option to remove the override, eg "stop" overriding it... |
great investigation Matt! on this last comment: you cant stop overriding but you can unhide it and define the override to use the catalog values (it's the current workaround for this issue). |
I'm leaning towards some conclusions here:
There are 3 distinct issues here that need to be worked on:
|
I can confirm that it works exactly the same for overrides for an enterprise's "own" inventory. The variant shows in the incoming products page (and is selectable), but doesn't have a checkbox to select it in the outgoing products page. If it's overridden and hidden, it's overridden and hidden. |
nice! " If it's overridden and hidden, it's overridden and hidden." |
I suspect that's the case...
I think this requires some inception around how we will enable this in the UI. The user can unhide it now (from the inventory page) and go back to the OC and add it. Do we want to add an unhide button in the OC edit UI somehow? Or just a clear indication that the variant is hidden via inventory? I think these questions need some product input... |
I agree this needs product input. If the original issue "user can add hidden variant to OC (and variant doesnt show on shopfront)" is not applicable any longer I think we should close this issue and open other issues for different problems. |
I've been following this issue because its happened to simple farm shops here multiple times. I'm so glad you are onto it!!! Users do not realize that they have a variant 'hidden' in their inventory. They can't figure out why the product won't show in the shop. So from a support perspective - it would be great to have some kind of message to the user setting up an OC with hidden products. ie - you have products hidden in your inventory and need to unhide these before they will show in your shopfront. I'm not sure it matter if they can do it right in the OC or if they need to go to their inventory. (In a way - I think its good for them to go to inventory because it will show them that its there, and that inventory does not equal product list.) |
Ok, if there's no objections I'll split this into three new issues that are easier to follow and more clearly scoped, and close this one. |
nice, very clear now in each issue 👍 For the new issues, I guess we need re-evaluate their priorities. |
Description
Burnt Edge Farm Produce in UK added a new product to their order cycle but it is not showing on the shop front even though it is in stock.
The enterprise has no products in their inventory and so shop stock levels are taken from master list.
The enterprise does not require products to be in the inventory to be listed on the shop front.
Similar issues have occurred in the recent past with Sole of Discretion (another UK producer shop) #4143 and #3961 and were thought to be due to cache update problems.
Expected Behavior
Stock level of product > 0 and product is listed in an order cycle.
Product appears for sale on shop front.
Actual Behaviour
Stock level of Breakfast Pack = 2. Product is listed in active order cycle but does not appear on shop front for customers to purchase.
Steps to Reproduce
Animated Gif/Screenshot
Workaround
Severity
S1
This is a critical feature (product which is in stock not available for customer to purchase). No work around. This has occurred in the past too.
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: