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

Antique Photo Album 1865 from one of the creators of the Periodic Table. RARE and valuable piece of history

THIS IS YOUR CHANCE TO OWN A VALUABLE PIECE OF HISTORY!
Victorian Antique Photo Album 1865 from one of the creators of the Periodic Table. RARE and valuable piece of history.

This album documents RARE photos NOT found online of Gustavus Detlef Hinrichs' family
(BOTH  his wives who happen to be sisters, are photographed here with signatures time stamps and RED 2 cent STAMPS dating civil war, their photos are NOT documented online)

Gustavus Hinrichs, a member of the University of Iowa science faculty, non other than the man who was the first scientist to identify the straight-line thunderstorms that can produce winds in excess of 100 mph, and gave it the name derecho.
Hinrichs was a prolific author. Between 1856 and 1913, he published twenty-five books and hundreds of articles. Among historians of science, Hinrichs is best known as one of several contributors to the development of the PERIODIC TABLE OF ELEMENTS!!
He taught at Washington University in St. Louis until retiring in 1907, and he also became an entrepreneur selling an embalming fluid of his own invention to morticians, according to the Biographical Dictionary.
He also started the first state weather service. In addition to chemistry, Hinrichs studied and published in physics, astronomy, meteorology, and geology. He was quite prolific, authoring an extensive number of books and articles in different languages, as he was fluent in Danish, French, German, Italian, and English, and knew some Greek and Latin. In all respects, Hinrichs was a true man of science showing an almost religious-like zealousness in his pursuits and efforts to share his findings with the professional scientific community, his students, and the general public.

THIS ALBUM CONTAINS ORIGINAL PHOTOS FROM WETHERBY'S GALLERY AND 3 ORIGINAL RED 2 CENT STAMPS FROM CIVIL WAR
The stamp was issued to fulfill a need for a reduced rate, 2-Cent denomination for newspaper, magazine, and local deliveries; and was often used to "make up" higher rates, or split in half to make up lower ones (a 1-Cent stamp) due to shortages at the local post office

Antique Photo Album 1865 from one of the creators of the Periodic Table. RARE an

$1,300.00Price
Quantity
    bottom of page