Liquid, JavaScript, themes, sales channels
So we’re using the variant.incoming attribute in our theme to display "Coming Soon" instead of "Sold Out" if there is incoming inventory.
However, we noticed when we created a transfer for some products but then deleted the transfer the variant.incoming is still "true" for those same products. Looking at the product in admin it shows Incoming: 0 so this must be some bug.
Solved! Go to the solution
This is an accepted solution.
For anyone running into this problem, here’s a solution:
Simply create a transfer including the production with the "phantom" incoming inventory, add some quantity to it, and finally delete the transfer. This will fix the variant.incoming value.
Here are the steps to reproduce this bug:
Also, more or less related: If you copy a product that is a in a transfer (and so has incoming inventory), the variant.incoming is also copied into the new product. This new product has variant.incoming = true but you will not find in a transfer and you are not able to accept it unless you create and finish a new transfer.
It took me hours to find out why I had products with incoming inventory while in fact there wasn't any incoming stock.
This is an accepted solution.
For anyone running into this problem, here’s a solution:
Simply create a transfer including the production with the "phantom" incoming inventory, add some quantity to it, and finally delete the transfer. This will fix the variant.incoming value.
Here are the steps to reproduce this bug:
Thank you for the workaround. I was just hitting this today!
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024