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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form