Creates a new product.
The createProduct()
function receives a ProductInfo
object and returns a Promise that resolves to a Product
object when the product has been created.
Creating a product is the first step in the process of enabling visitors to buy your products. After you create a product, you can add choices and variants to the product.
Notes:
"1000"
milliseconds (1 second) before calling wix-stores.cart.addProducts()
. While this slows down the operation slightly, it also ensures proper retrieval of the newly created product before adding it to the cart.
Information for the product being created.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.