Insert/update collection PRODUCTS from wix store via Code

Currently, the database collection PRODUCTS that is created automatically when you add a wix store to you site is READ ONLY. This mean that a 3rd party software or even yourself in code cannot create or update any products in the inventory database. You need to go and use the interface that is located in the wix platform for being able to add or modify a product in your store database.

This would be needed for many of my client.

1 Like

Hi @universinformatiquei can you please elaborate on your use case?
Do your clients manage the same products on a different service?
Do you need to update the complete product or only the inventory?

Shay

is is possible to update in inventory of a product via wix code?

Same problem for Stores/Orders, have to be able to mark them PAID or FULFILLED somehow, also whant to change product’s PRICE, created request, please help!! https://www.wix.com/corvid/forum/community-feature-request/update-orders-endpoint-1

@aromaster HI Roman, I fixed my inventory issue by using a database as inventory and using an on check out event in the event.js file to adjust inventory based on users purchase. As far as your other needs you may be better off using the wix pay API. For me the only deal breaker is that the payment processsor is like a lightbox and not it’s own dedicated page.