FROM CACHE - es_header

AYUDA: error con botón de compra

SantiagoLeon
Visitante
2 0 0

Hola, 

estoy intentando integrar el boton de compra con shopify lite en mi página de wix. Ya agregué un producto y al pegar el código HTML se ve todo bien en mi página de wix. El problema surge cuando paso del carrito de compras a pagar, o a pagar directamente si es que tengo deshabilitado el carrito de compras. Al clickear checkout me aparece la siguiente pantalla:

 

SantiagoLeon_0-1598324682673.png

Alguien que haya tenido este problema o sepa resolverlo??

Lo agradecería mucho

saludos

Santiago

 

3 RESPUESTAS 3

Ramón
Shopify Staff (Retired)
412 65 81

Hola @SantiagoLeon,

Me gustaría poder ayudarte a resolver este error, ¿podrías compartir el URL de tu página de WIX con nosotros? De esta manera los miembros de comunidad y yo podemos visualizar tu página web y ver si el mismo error ocurre con el botón de compras.

Al mismo tiempo, ¿qué pasos sigues para generar el botón de compras dentro de tu administrador de Shopify? ¿Has seguido todos los pasos en nuestro Centro de Ayuda?

Quedamos atentos,

To learn more visit the Shopify Help Center or the Community Blog.

SantiagoLeon
Visitante
2 0 0

Hola Ramón, he seguido los pasos estandar que aparecen al crear el botón de pago, y actualmente lo tengo en modo prueba para verificar que todo funcione bien, el código lo copio y pego sin hacerle ninguna modificación y la página es frutcorp.com

<div id='collection-component-1598331606871'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src=scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'frutcorp.myshopify.com',
      storefrontAccessToken: 'e8103142c06238664eab31cf61ec7293',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('collection', {
        id: '214141993116',
        node: document.getElementById('collection-component-1598331606871'),
        moneyFormat: '%24%7B%7Bamount_no_decimals%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px",
          "width": "calc(25% - 20px)"
        },
        "img": {
          "height": "calc(100% - 15px)",
          "position": "absolute",
          "left": "0",
          "right": "0",
          "top": "0"
        },
        "imgWrapper": {
          "padding-top": "calc(75% + 15px)",
          "position": "relative",
          "height": "0"
        }
      },
      "button": {
        "border-radius": "31px"
      }
    },
    "text": {
      "button": "Add to cart"
    }
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "border-radius": "31px"
      }
    },
    "text": {
      "button": "Add to cart"
    }
  },
  "cart": {
    "styles": {
      "button": {
        "border-radius": "31px"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "popup": false
  }
},
      });
    });
  }
})();
/*]]>*/
</script>

 

 

Ramón
Shopify Staff (Retired)
412 65 81

Gracias por compartir estos detalles @SantiagoLeon. Solo para verificar, ¿puedes compartir tu URL de .myshopify.com también? Así podemos verificar que la cuenta esta activa y por si haya cualquier error con la conexión. 

To learn more visit the Shopify Help Center or the Community Blog.