An event that fires when a product collection is updated.
The onCollectionUpdated()
event handler runs when a product collection
is updated in a store.
Note: Backend events don't work when previewing your site.
Information about the product collection that was updated.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onFulfillmentsUpdated()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order fulfillment is created.
The onFulfillmentCreated()
event handler runs when one of the following occurs:
Note: Backend events don't work when previewing your site.
Information about a fulfillment that was created.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onFulfillmentsUpdated()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order fulfillment is deleted.
The onFulfillmentDeleted()
event handler runs when the deleteFulfillment() function is called.
Note: Backend events don't work when previewing your site.
Information about a fulfillment that was deleted.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onFulfillmentsUpdated()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order fulfillment is updated.
The onFulfillmentUpdated()
event handler runs when one of the following occurs:
Note: Backend events don't work when previewing your site.
Information about a fulfillment that was updated.
An event that fires when an inventory item's information is updated.
The onInventoryItemUpdated()
event handler runs when information for an inventory item
is updated in a store.
Note: Backend events don't work when previewing your site.
Information about the updated inventory item.
An event that fires when the inventory information of a product variant is updated.
The onInventoryVariantUpdated()
event handler runs when inventory information for a product
variant is updated in a store.
Note: Backend events don't work when previewing your site.
Information about the updated variant.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onOrderApproved()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when a new order is placed.
The onNewOrder()
event handler runs when a new order is placed in your site's store.
The received NewOrderEvent
object contains information about the new order that was placed.
Note: Backend events don't work when previewing your site.
The order data.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onOrderCanceled()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order is canceled.
The onOrderCanceled()
event handler runs when an order is canceled. For example, when an order is canceled in the site's Dashboard.
Note: Backend events don't work when previewing your site.
Order canceled event.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onOrderPaymentStatusUpdated()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order is marked as paid.
The onOrderPaid()
event handler runs when an order is paid either via customer checkout, or when marked as paid on your site's Dashboard.
Note: Backend events don't work when previewing your site.
Paid order data.
Deprecated.
This event will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.Events.onOrderTransactionsUpdated()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
An event that fires when an order is refunded.
The onOrderRefunded()
event handler runs when an order is refunded. For example, when an order is refunded in your site's Dashboard.
Note: Backend events don't work when previewing your site.
Order refunded event.
An event that fires when a product is created.
The onProductCreated()
event handler runs when a new product
is added to a store.
Note: Backend events don't work when previewing your site.
function onProductCreated(event: ProductCreatedEvent): void;
Information about the product that was created.
// Place this code in the events.js file
// of your site's Backend section.
export function wixStores_onProductCreated(event) {
let productId = event._id;
}
/* Full event object:
*
* {
* "_id": "5096485f-0239-3881-3f6a-63955708a4ec",
* "name": "New Product",
* "sku": "abc123",
* "formattedDiscountedPrice": "$100.00",
* "visible": true,
* "mainMedia": "wix:image://v1/6...6.jpg/file.jpg#originWidth=2700&originHeight=2186",
* "price": 100,
* "formattedPrice": "$100.00",
* "discountedPrice": 100,
* "pricePerUnit": 0.1,
* "formattedPricePerUnit": "$0.10",
* "mediaItems": [
* {
* "title": "Main Image",
* "description": "Main Image",
* "type": "IMAGE",
* "src": "wix:image://v1/6...6.jpg/file.jpg#originWidth=2700&originHeight=2186"
* }
* ],
* "currency": "USD",
* "productPageUrl": "/product-page/new-product",
* "ribbon": "New Arrival"
* }
*
*/