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

161
Vistas
Using Ajax to POST to PHP Shopify API

Hi I am trying to create a button that will call a PHP function to add products to Shopify from web application.

File 1: http://codepad.org/MPs4y1Qu which has my Amazon Code and calling Amazon Products. This File has code which is calling that button on the rightside add which will import those products to my Shopify store.

P.S I have tested my shopify API separately and it is working 100%

<script type="text/javascript">
 $(document).ready(function(){
 $("button").click(function(){

 $.ajax({
 type: 'POST',
 url: 'create_product.php',
 success: function(data) {
 prompt(data);


 }
 });
 });
});
</script>

File 2: create_product.php http://codepad.org/at7LtcMK which has my Shopify API it has Arrays like Title, body_html which has static value but will replace it Amazon Title and so on..

Now the problem is upon testing when I click on button add nothing happens. even my ajax has 200 OK message but I need code to make it successful. I have tried above but not working.

about 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