Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

163
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda