// Page Code for /checkout-link import { cart } from 'wix-stores'; import wixLocation from 'wix-location'; /** * Accepts `products` query parameter in Meta format: * - Encoded: products=112233%3A1%2C445566%3A2 * - Unencoded: products=112233:1,445566:2 (still works) * * Each entry is ID:QTY. Colons/commas may be RFC 3986-escaped. * Example final URL for Meta: * https://mysticalcrow.com/checkout-link?products=112233%3A1%2C445566%3A2 */ function parseProductsParam(rawParam) { if (!rawParam || typeof rawParam !== 'string') return []; // Try to decode once; if it throws or changes nothing, we still continue safely let decoded = rawParam; try { // decodeURIComponent will convert %3A -> ":", %2C -> "," decoded = decodeURIComponent(rawParam); } catch (_e) { // If decoding fails, we’ll proceed with the original string } // Split by commas (now that we normalized to ":" and ",") // Trim spaces just in case. return decoded .split(',') .map(s => s.trim()) .filter(Boolean) .map(pair => { const [id, qty] = pair.split(':').map(x => (x || '').trim()); const quantity = Number(qty); return (id && !Number.isNaN(quantity) && quantity > 0) ? { productId: id, quantity } : null; }) .filter(Boolean); } async function addAllToCart(items) { // Wix Stores cart.addProducts accepts an array of product objects. // We’ll add one by one to ensure each promise resolves, but you can batch if desired. for (const item of items) { // If a product has variants/options, you’ll need to pass the relevant // selection data here (e.g., options: [{ optionName, selection }]). // For simple products, productId + quantity is sufficient. await cart.addProducts([{ productId: item.productId, quantity: item.quantity }]); } } $w.onReady(async function () { const { products } = wixLocation.query; if (!products) { // No parameter present; go to cart so the user isn't stuck. wixLocation.to('/cart'); return; } const items = parseProductsParam(products); if (!items.length) { // Parameter present but invalid/empty after parsing wixLocation.to('/cart'); return; } try { await addAllToCart(items); // Success: go straight to checkout wixLocation.to('/checkout'); } catch (_err) { // If anything fails (bad ID, etc.), fall back to cart wixLocation.to('/cart'); } });
top of page

Herbal Magic offers a directory of magical herbs (both rare and common) alongside 36 spells using herbs to amplify casts for attraction, enchantment, trust, friendship, fortune, and success.

The plant kingdom is one of the oldest magical tools in existence. Known for millennia to have beneficial properties for both physical and spiritual well-being, many species of plants have been incorporated into the spiritual and healing practices of cultures around the world. These magical herbs are considered incredible gifts by shamans, green witches, hedge witches, and every wild woman and wild man.

This guide introduces the magical properties of plants, how to use them, and how to source them, including detailed step-by-step instructions on how to blend them seamlessly into magical recipes to harness their intrinsic powers. Tips for the budding witch cover:
Uses for both common and rare magical plants
Connecting with nature through the process of growing your own plants
Herbal magic lore and herbal magic spell tools
Tea recipes that can enhance your psychic abilities
Spells for attractions, trust, fortune, and friendship
Work with the energies and properties of magical plants to connect deeply with the earth and all the greenery in her dominion and magnify the power of your magic spells.

The Mystical Handbook series from Wellfleet takes you on a magical journey through the wonderful world of spellcraft and spellcasting. Explore a new practice with each volume and learn how to incorporate spells, rituals, blessings, and cleansings into your daily routine. These portable companions feature beautiful foil-detail covers and color-saturated interiors on a premium paper blend.

Other titles in the series include: Witchcraft, Moon Magic, Love Spells, Knot Magic, Superstitions, and House Magic

Herbal Magic: A Handbook of Natural Spells, Charms, and Potions

$17.00Price
Quantity
    bottom of page