Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
Display alt product/json data via shopify app proxy in existing shopify product theme

I want to display a modified version of a product page - for example, something as simple as not displaying the buy button, based on an external validation/check. theoretically, it's not that complicated, but I'm stuck.

Here is what I know/see/understand. In liquid code, there is templates -> product.json sections -> main-product.liquid

I created templates -> product.alternate.json (a duplicate of product.json minus the buy button) snippets -> alternate-product.liquid (which is just content_for_layout)

changes in template.liquid to handle the a product template

If I change the product template to alternate - my snippet correctly loads and the alternate product without the buy button is displayed correct.

I change alternate-product.liquid to do an ajax call to to get app proxy.

On app proxy I've tried

  • returning the same data as product.json, liquid content type this didn't show anything in the body (header and footer are there)
  • using the site access token to fetch a hardcoded product by id and returning this json (content-type json), same, it's just header and footer.

What I'm trying to do is use a $.get('/apps/s/serve/some-unique-id') that will render the correct json/liquid that shows or doesn't show, the buy now button "some-unique-id" is a client side id.

I know we can manually create the needed HTML tags server side and send them - but this doesn't use the theme/style that's already applied for the rest of the shopify site.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda