// 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

February’s Full Moon in Virgo & Your Zodiac Sign

February’s Full Moon in Virgo shines a spotlight on self-reflection, organization, and emotional balance. This earthy lunation encourages us to release old patterns, focus on self-care, and bring harmony to our inner and outer worlds. Each zodiac sign will feel the Full Moon’s influence uniquely, offering an opportunity for growth and grounding.


Here’s how the Virgo Full Moon will impact your sign and a mantra to guide your meditation practice:

ree

Aries

The Full Moon highlights your health and daily routines. It’s time to reassess your habits and prioritize balance in your busy life.

Mantra: “I honor my body and mind by creating space for peace.”


ree

Taurus

Creativity and self-expression take center stage. This is a great time to explore hobbies and embrace your passions.

Mantra: “I allow my creativity to flow freely and inspire my path.”


ree

Gemini

Home and family matters may need your attention. Focus on creating a nurturing environment and strengthening connections.

Mantra: “I find peace and harmony in my home and relationships.”


ree

Cancer

Your communication skills are heightened. It’s a great time to speak your truth and resolve lingering misunderstandings.

Mantra: “I express myself clearly, confidently, and with compassion.”


ree

Leo

This Full Moon focuses on your finances and self-worth. Take time to organize your resources and affirm your abundance.

Mantra: “I attract prosperity and value the gifts I already have.”


ree

Virgo

With the Full Moon in your sign, self-reflection and personal growth are key themes. Embrace self-love and let go of perfectionism.

Mantra: “I am enough just as I am, and I trust my journey.”


ree

Libra

Rest and recharge are essential under this Full Moon. Reflect on your spiritual path and release what no longer serves you.

Mantra: “I find clarity in stillness and peace in letting go.”


ree

Scorpio

Friendships and community connections come into focus. Reflect on the balance between giving and receiving support.

Mantra: “I nurture relationships that align with my highest good.”


ree

Sagittarius

Career and long-term goals are in the spotlight. Take a practical approach to your ambitions and embrace your potential.

Mantra: “I am capable of achieving my dreams with focus and determination.”


ree

Capricorn

This Full Moon invites you to explore new philosophies or spiritual practices. Expand your mind and trust your intuition.

Mantra: “I am open to growth and guided by wisdom.”


ree

Aquarius

Deep emotional healing is on the horizon. Let the Full Moon guide you to release old wounds and reclaim your power.

Mantra: “I release what no longer serves me and embrace my inner strength.”


ree

Pisces

Relationships take center stage. Focus on balance and understanding in your partnerships.

Mantra: “I honor love and harmony in all my connections.”


Use the energy of the Virgo Full Moon to ground yourself, release what no longer serves you, and create space for fresh opportunities. Meditate on your mantra to align with the universe’s flow and make the most of this magical time!

Comments


bottom of page