top of page
bottom of page
export function addDefaultItems() { const itemsToAdd = [ { productId: 'productVM.product.id', quantity: 1 }, { productId: 'productVM.product.id', quantity: 1 } ]; const cartOptions = { suppressHooks: true // This ensures that the hooks for the cart update are not triggered. }; return wixStores.addToCart(itemsToAdd, cartOptions); }