wix-stores-backend
The wix-stores-backend module contains functionality for working with your site's store from backend code. Learn more.
Additional information about this section
Perform actions on an object
- createProduct( )
Creates a new product.
- addProductMedia( )
Adds media items by ID to a product.
- addProductMediaToChoices( )
Adds media items by ID to product options.
- addProductsToCollection( )
Adds products by ID to a product collection.
- updateProductFields( )
Updates an existing product by ID.
- bulkUpdateProductProperty( )
Updates a property for up to 100 products at a time.
- bulkAdjustProductProperty( )
Adjusts a numeric property for up to 100 products at a time.
- getProductVariants( )
Gets a product's available variants based on the specified product ID and either option choices or variant IDs.
- getProductOptionsAvailability( )
Gets the availability of a product based on the specified option choices.
- deleteProduct( )
Deletes an existing product.
- removeProductMedia( )
Removes media items by ID from a product.
- removeProductMediaFromChoices( )
Removes media items by ID from a product's options.
- removeProductsFromCollection( )
Removes products by ID from a collection.
- deleteProductOptions( )
Deletes all options for an existing product.
- createOrder( )
Creates a new order.
- getOrdersLink( )
Generates a link to a PDF file containing information about one or more specified orders, up to 1000 orders.
- getPackingSlipLink( )
Generates a link to a PDF file containing an order's packing slip.
- createFulfillment( )
Creates a new fulfillment in an order.
- updateFulfillment( )
Updates an existing fulfillment in an order.
- deleteFulfillment( )
Deletes a fulfillment from an order.
- sendFulfillmentEmail( )
Sends a fulfillment email to a specified custom fulfiller of a line item in a given order.
- getCurrentCart( )
Deprecated. This function will continue to work, but a newer version is available at wix-ecom-backend.CurrentCart.getCurrentCart().
- updateVariantData( )
Updates the data (such as the price and the weight) of an existing product variant in the store.
- resetVariantData( )
Resets the data (such as the price and the weight) of all variants for a given product to their default values.
- updateInventoryVariantFields( )
Updates an existing inventory item's variants by inventory ID.
- updateInventoryVariantFieldsByProductId( )
Updates an existing inventory item's variants by product ID.
- incrementInventory( )
Adds a set number of items from inventory.
- decrementInventory( )
Subtracts a set number of items from inventory.
- Events
Events that are fired from a Wix Store.
Related Content