I'm encountering a strange issue when creating new products through the Miva API. Here's my process:
However, immediately after this, the product returns a 404 error when I try to access it on the storefront.
Troubleshooting steps I've tried:
It seems like something isn't being triggered properly when the product is activated via the API.
My question:
Is there a way to "force update" a product via the API or some other method to avoid this manual step? I'm managing a large number of products, and manually updating each one in the admin isn't feasible.
Any help or insights would be greatly appreciated!
Miva Merchant 10.11.01
api-sdk-php 2.6.0
- Create the product: I use the API to create the initial product with "active" set to false.
- Populate product data: I update all the necessary product information (name, description, price, images, etc.) via the API.
- Activate the product: I set the product's "active" status to true using the API.
However, immediately after this, the product returns a 404 error when I try to access it on the storefront.
Troubleshooting steps I've tried:
- Flushing the Miva cache: I've manually flushed the cache within the Miva admin, but this doesn't resolve the issue.
- Manually updating the product: If I go into the Miva admin and simply click the "Update" button on the product page, it magically starts working.
It seems like something isn't being triggered properly when the product is activated via the API.
My question:
Is there a way to "force update" a product via the API or some other method to avoid this manual step? I'm managing a large number of products, and manually updating each one in the admin isn't feasible.
Any help or insights would be greatly appreciated!
Miva Merchant 10.11.01
api-sdk-php 2.6.0
Comment