How to get product's attributes and their value from product id in Magento 1.9 Soap Api v1How to get custom attributes from customer via SOAP API?Magento SOAP (v1) API causes fatal error getSelect() after completed orderHow Secure Are User Made PHP Files?Can I make Soap V1 Api Calls from a magento 2. version?How to test a Magento SOAP API call using Postmanmagento1.9 soap api to get invoice informationmagento 1.9 soap api errorHow to get category image in magento 1.9 soap APIHow to get cms content via magento1.9 soap api v1How to get product detail from product id in Magento 1.9 Soap Api v1

Strategy to pay off revolving debt while building reserve savings fund?

What happens if there is no space for entry stamp in the passport for US visa?

How fast does a character need to move to be effectively invisible?

Why don't commercial aircraft adopt a slightly more seaplane-like design to allow safer ditching in case of emergency?

Why is Katakana not pronounced Katagana?

A scene of Jimmy diversity

At which point can a system be compromised when downloading archived data from an untrusted source?

Why doesn't philosophy have higher standards for its arguments?

Did Voldemort kill his father before finding out about Horcruxes?

What are the basics of commands in Minecraft Java Edition?

Can you perfectly wrap a cube with this blocky shape?

Was Jacobi the first to notice the ambiguity in the partial derivatives notation? And did anyone object to his fix?

Is there an English equivalent for "Les carottes sont cuites", while keeping the vegetable reference?

What were the problems on the Apollo 11 lunar module?

Wordplay addition paradox

How could an animal "smell" carbon monoxide?

Random piece of plastic

Should I be able to keep my company purchased standing desk when I leave my job?

Is passive Investigation essentially truesight against illusions?

How possible is a successful landing just with 1 wing?

Why is Google approaching my VPS machine?

What is the word for "event executor"?

Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?

How can electric field be defined as force per charge, if the charge makes its own, singular electric field?



How to get product's attributes and their value from product id in Magento 1.9 Soap Api v1


How to get custom attributes from customer via SOAP API?Magento SOAP (v1) API causes fatal error getSelect() after completed orderHow Secure Are User Made PHP Files?Can I make Soap V1 Api Calls from a magento 2. version?How to test a Magento SOAP API call using Postmanmagento1.9 soap api to get invoice informationmagento 1.9 soap api errorHow to get category image in magento 1.9 soap APIHow to get cms content via magento1.9 soap api v1How to get product detail from product id in Magento 1.9 Soap Api v1






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















All i need is product total no of attributes and their value ...via passing product id(code is given below).



<?php
require_once('../app/Mage.php');
Mage::app();

$client = new SoapClient('http://localhost/project/api/soap/?wsdl');


$user_name = $_POST["user_name"];
$password = $_POST["password"];
$prod_id = $_POST["prod_id"];

$response = array();

$session = $client->login($user_name, $password);
//$product = $client->call($session,"catalog_product.info" ,$prod_id);
$listAttributes = $client->call($session,'product.listOfAdditionalAttributes',array('simple',$prod_id));

$response = array(
"status" => "1",
"message" => "suceess",
"products" => $listAttributes
);

ob_start();
header('Content-type: application/json');
header('Pragma: public');
header('Cache-control: private');
header('Expires: -1');

echo json_encode($response);
exit;
?>









share|improve this question




























    1















    All i need is product total no of attributes and their value ...via passing product id(code is given below).



    <?php
    require_once('../app/Mage.php');
    Mage::app();

    $client = new SoapClient('http://localhost/project/api/soap/?wsdl');


    $user_name = $_POST["user_name"];
    $password = $_POST["password"];
    $prod_id = $_POST["prod_id"];

    $response = array();

    $session = $client->login($user_name, $password);
    //$product = $client->call($session,"catalog_product.info" ,$prod_id);
    $listAttributes = $client->call($session,'product.listOfAdditionalAttributes',array('simple',$prod_id));

    $response = array(
    "status" => "1",
    "message" => "suceess",
    "products" => $listAttributes
    );

    ob_start();
    header('Content-type: application/json');
    header('Pragma: public');
    header('Cache-control: private');
    header('Expires: -1');

    echo json_encode($response);
    exit;
    ?>









    share|improve this question
























      1












      1








      1








      All i need is product total no of attributes and their value ...via passing product id(code is given below).



      <?php
      require_once('../app/Mage.php');
      Mage::app();

      $client = new SoapClient('http://localhost/project/api/soap/?wsdl');


      $user_name = $_POST["user_name"];
      $password = $_POST["password"];
      $prod_id = $_POST["prod_id"];

      $response = array();

      $session = $client->login($user_name, $password);
      //$product = $client->call($session,"catalog_product.info" ,$prod_id);
      $listAttributes = $client->call($session,'product.listOfAdditionalAttributes',array('simple',$prod_id));

      $response = array(
      "status" => "1",
      "message" => "suceess",
      "products" => $listAttributes
      );

      ob_start();
      header('Content-type: application/json');
      header('Pragma: public');
      header('Cache-control: private');
      header('Expires: -1');

      echo json_encode($response);
      exit;
      ?>









      share|improve this question














      All i need is product total no of attributes and their value ...via passing product id(code is given below).



      <?php
      require_once('../app/Mage.php');
      Mage::app();

      $client = new SoapClient('http://localhost/project/api/soap/?wsdl');


      $user_name = $_POST["user_name"];
      $password = $_POST["password"];
      $prod_id = $_POST["prod_id"];

      $response = array();

      $session = $client->login($user_name, $password);
      //$product = $client->call($session,"catalog_product.info" ,$prod_id);
      $listAttributes = $client->call($session,'product.listOfAdditionalAttributes',array('simple',$prod_id));

      $response = array(
      "status" => "1",
      "message" => "suceess",
      "products" => $listAttributes
      );

      ob_start();
      header('Content-type: application/json');
      header('Pragma: public');
      header('Cache-control: private');
      header('Expires: -1');

      echo json_encode($response);
      exit;
      ?>






      magento-1.9 php api soap-api-v1






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 9 at 7:03









      Pranav PatelPranav Patel

      235 bronze badges




      235 bronze badges




















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281304%2fhow-to-get-products-attributes-and-their-value-from-product-id-in-magento-1-9-s%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281304%2fhow-to-get-products-attributes-and-their-value-from-product-id-in-magento-1-9-s%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?