Hi Everybody,
I am wondering if anyone here is facing the following issue and has an optimal solution for it?
In the Store admin, after deleting certain option values of a product, the following issues still happen:
-
When accessing the Variant Settings of the product >> clicking the “Add variant” button >> selecting the option that has had option values deleted >> the deleted option values are still displayed.
For example:
Initially, in the Store admin, we added the following values: S, M, L, XL, 2XL, 3XL, 4XL, 5XL, Small, Medium, Large, X Large for the Size option of a product. However, after deleting the Size option values: Small, Medium, Large, X Large, they still show up when we click the “Add variant” button for this product >> and then click the Size option.
-
However, the most critical issue for us here is that we’ve developed a mobile app sales channel using the Shopify Storefront GraphQL API (product - Storefront API) to fetch and display product information on this sales channel. However, we’ve noticed that this Storefront API is still returning both the deleted option values and the corresponding variants of the product.
Before submitting this post to ask you guys for help, I did some research and also contacted the Shopify Support team. And I found out that it is possible to completely delete option values using the Shopify Admin API (productOptionUpdate - GraphQL Admin). However, this approach comes with several limitations, such as:
1. We need to find a way to automatically trigger the deletion of option values using the Shopify Admin API above for products that will have option values deleted from the Store admin in the future.
2. We need to find a way to identify and delete all previously deleted option values in/from the admin store.
…
I sincerely hope that you guys as Shopify partners here, as well as Shopify staff, can share your opinions and provide solutions to help. Honestly, I believe this to be a rather inconvenient issue.
Thank you very much.