// Código para personalizar la tienda de productos en Wix con Velo import wixData from 'wix-data'; import wixLocation from 'wix-location'; $w.onReady(function () { loadCategories(); $w("#categoryDropdown").onChange((event) => { filterProducts(event.target.value); }); }); function loadCategories() { wixData.query("Categories") .find() .then((results) => { let options = [{ label: "Todas", value: "" }]; results.items.forEach(category => { options.push({ label: category.title, value: category._id }); }); $w("#categoryDropdown").options = options; }); } function filterProducts(categoryId) { let filter = wixData.filter(); if (categoryId) { filter = filter.eq("category", categoryId); } $w("#productsRepeater").data = []; wixData.query("Products") .filter(filter) .find() .then((results) => { $w("#productsRepeater").data = results.items; }); } // Agregar botón de carrito a cada producto $w("#productsRepeater").onItemReady(($item, itemData) => { $item("#addToCartButton").onClick(() => { // Lógica para agregar al carrito console.log(`Producto agregado: ${itemData.title}`); }); // Mostrar cinta de oferta si el producto tiene descuento if (itemData.discount) { $item("#offerRibbon").show(); } else { $item("#offerRibbon").hide(); } });
top of page

Un clásico noruego: el aceite de higado de bacalao que lo originó todo

ARCTIC-D COD LIVER OIL

S/.135.00Precio
Cantidad
  • 5 ml diariamente con las comidas.
    Para obtener mejores resultados, refrigere y consuma en un plazo de tres meses luego de abrir el envase.

Acerca de

Párrafo. Haz clic aquí para agregar tu propio texto y editar. Aquí puedes contar tu historia y permitir que tus usuarios sepan más sobre ti.

Síguenos

  • Twitter
  • Facebook
  • Pinterest

Únete a nuestra lista de correo

¡Gracias por tu mensaje!

© 2035 Creado por Sofía con Wix.com

bottom of page