import { cart } from 'wix-stores'; import wixLocation from 'wix-location'; $w.onReady(async function () { // Get URL query parameters const query = wixLocation.query; const productsParam = query.products; const couponCode = query.coupon; if (!productsParam) { console.log("No products found in URL."); return; } try { // Decode the products parameter const decodedProducts = decodeURIComponent(productsParam); // Example decoded: "12345:3,23456:1" const productEntries = decodedProducts.split(','); let lineItems = []; productEntries.forEach(entry => { const [productId, quantity] = entry.split(':'); if (productId && quantity) { lineItems.push({ productId: productId, quantity: Number(quantity) }); } }); // Add products to cart await cart.addProducts(lineItems); // Apply coupon if exists if (couponCode) { await cart.applyCoupon(couponCode); } // Redirect to Wix native checkout await cart.showMiniCart(); await cart.checkout(); } catch (error) { console.error("Checkout error:", error); } });
top of page

Please note that we only provide free shipping to orders over $80. We apologize for the inconvenience! 

Una Fredricka Church Line

We are unveiling the Una Fredericka Church fragrance line inspired by my family history, the New Orleans bayou, and the journey that became Workshop Apothecary after my mother’s passing in 2015. More than scent, this collection is a tribute to her, a reconnection to my Creole roots, and a continuation of the legacy that shaped both my life and my work.
We are unveiling the Una Fredericka Church fragrance line inspired by my family history, the New Orleans bayou, and the journey that became Workshop Apothecary after my mother’s passing in 2015. More than scent, this collection is a tribute to her, a reconnection to my Creole roots, and a continuation of the legacy that shaped both my life and my work.
bottom of page