All things Shopify and commerce
Hi there.
I recently came accross some issues with my `variant.next_incoming_date` returning null, while I have active POs with date on it. It's very random, but it's happening on multiple POs, for different products. But I cannot figure out any logic. We've developped some custom logic for preorder using the `variant.next_incoming_date` attribute, and this is causing issues on our website 😕 Anybody else is experiencing that ?
The issue of variant.next_incoming_date returning null despite having active Purchase Orders (POs) with dates could be caused by several factors. Below are potential reasons and solutions:
Shopify's variant.next_incoming_date relies on data syncing with your inventory system. If the sync between your system and Shopify is delayed or incomplete, the attribute might return null.
Your custom code may not account for all scenarios, such as:
The issue could stem from the way the preorder logic interacts with variant.next_incoming_date. For instance, if your custom logic requires additional PO states or stock conditions, it might not properly retrieve the next_incoming_date.
If you're caching the output of variant.next_incoming_date, outdated or stale data may be displayed even if the POs are updated.
Shopify's backend might have limitations or delays in updating the variant.next_incoming_date attribute, especially for products with frequent updates.
If the issue is critical and you need a quick fix:
If you'd like, I can help you adjust your code or suggest a fallback mechanism for this logic. Let me know!
Hi @Ahmad31 and thanks for your replies ! Helas none of these are fixing it. The issue is not at the preorder logic, I don't do any caching, and I'm not using any external inventory system.
The issue is really variant.next_incoming_date for all Products on two specifics POs. All other POs are working fine.
In liquid for these products I can see that variant.incoming is returning true, but it's variant.next_incoming_date that is returning null. And only for Products on 2 specifics POs. My assumption is that there was a glitch somehow at PO creation.
We are suppose to receive and accept the PO this week, so hopefully this was a one time issue, and it won't happen again 🤞
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024