How to export bundle items title?How to get Bundle product id using bundle item?Bundle products - get default title for a bundle itemSOAP - how to Add SKU to Bundle product 'items' arrayCreate invoice and shipment in magento via cron based on store view and order ageCreate categories through installerHiding items in a bundle?Magento 1.9.1: Bundle Items Doesn't Show All Products For SelectionHow to update bundle product items programatically?Bundle product | Duplicate bundle item optionExport Category name in xml feed Magento 1.9.2

Why Is Death Allowed In the Matrix?

Set-theoretical foundations of Mathematics with only bounded quantifiers

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

Work Breakdown with Tikz

whey we use polarized capacitor?

I probably found a bug with the sudo apt install function

Why CLRS example on residual networks does not follows its formula?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?

Is it possible to do 50 km distance without any previous training?

Draw simple lines in Inkscape

If Manufacturer spice model and Datasheet give different values which should I use?

Email Account under attack (really) - anything I can do?

What is the offset in a seaplane's hull?

What typically incentivizes a professor to change jobs to a lower ranking university?

Schwarzchild Radius of the Universe

Can I make popcorn with any corn?

Are there any consumables that function as addictive (psychedelic) drugs?

How can bays and straits be determined in a procedurally generated map?

"which" command doesn't work / path of Safari?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

How can I hide my bitcoin transactions to protect anonymity from others?

declaring a variable twice in IIFE

How much RAM could one put in a typical 80386 setup?



How to export bundle items title?


How to get Bundle product id using bundle item?Bundle products - get default title for a bundle itemSOAP - how to Add SKU to Bundle product 'items' arrayCreate invoice and shipment in magento via cron based on store view and order ageCreate categories through installerHiding items in a bundle?Magento 1.9.1: Bundle Items Doesn't Show All Products For SelectionHow to update bundle product items programatically?Bundle product | Duplicate bundle item optionExport Category name in xml feed Magento 1.9.2






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








2















I have this script which gets all bundle products



$View = 2;

$products = Mage::getModel('catalog/product')
->setStoreId($View)
->getCollection()
->addAttributeToSelect('*')
->addAttributeToSelect('type')
->addFieldToFilter('type_id', array('eq' => 'bundle'))
;


Then I do this to cycle them and I try to get Store View Title (which is title)



foreach($products as $bundle)

$productId = $bundle->getId();

$bundled_product = new Mage_Catalog_Model_Product();
$bundled_product->load($productId);

$typeInstance = $bundled_product->getTypeInstance(true);

$selectionCollection = $typeInstance->getSelectionsCollection(
$typeInstance->getOptionsIds($bundled_product), $bundled_product
);

$optionCollection = $typeInstance->getOptionsCollection($bundled_product);

$_options = $optionCollection->appendSelections($selectionCollection, false, Mage::helper('catalog/product')->getSkipSaleableCheck());

$bundle_option = array();

foreach ($_options as $key => $value)

echo $value->getData('title'); //Doesn't work, print nothing
echo $value->getData('default_title'); //It Works




However, despite I set the store_id to be what I want, it seems like it still takes the default view.



How can I print the Store View Title then?










share|improve this question







New contributor




Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    2















    I have this script which gets all bundle products



    $View = 2;

    $products = Mage::getModel('catalog/product')
    ->setStoreId($View)
    ->getCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToSelect('type')
    ->addFieldToFilter('type_id', array('eq' => 'bundle'))
    ;


    Then I do this to cycle them and I try to get Store View Title (which is title)



    foreach($products as $bundle)

    $productId = $bundle->getId();

    $bundled_product = new Mage_Catalog_Model_Product();
    $bundled_product->load($productId);

    $typeInstance = $bundled_product->getTypeInstance(true);

    $selectionCollection = $typeInstance->getSelectionsCollection(
    $typeInstance->getOptionsIds($bundled_product), $bundled_product
    );

    $optionCollection = $typeInstance->getOptionsCollection($bundled_product);

    $_options = $optionCollection->appendSelections($selectionCollection, false, Mage::helper('catalog/product')->getSkipSaleableCheck());

    $bundle_option = array();

    foreach ($_options as $key => $value)

    echo $value->getData('title'); //Doesn't work, print nothing
    echo $value->getData('default_title'); //It Works




    However, despite I set the store_id to be what I want, it seems like it still takes the default view.



    How can I print the Store View Title then?










    share|improve this question







    New contributor




    Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      2












      2








      2








      I have this script which gets all bundle products



      $View = 2;

      $products = Mage::getModel('catalog/product')
      ->setStoreId($View)
      ->getCollection()
      ->addAttributeToSelect('*')
      ->addAttributeToSelect('type')
      ->addFieldToFilter('type_id', array('eq' => 'bundle'))
      ;


      Then I do this to cycle them and I try to get Store View Title (which is title)



      foreach($products as $bundle)

      $productId = $bundle->getId();

      $bundled_product = new Mage_Catalog_Model_Product();
      $bundled_product->load($productId);

      $typeInstance = $bundled_product->getTypeInstance(true);

      $selectionCollection = $typeInstance->getSelectionsCollection(
      $typeInstance->getOptionsIds($bundled_product), $bundled_product
      );

      $optionCollection = $typeInstance->getOptionsCollection($bundled_product);

      $_options = $optionCollection->appendSelections($selectionCollection, false, Mage::helper('catalog/product')->getSkipSaleableCheck());

      $bundle_option = array();

      foreach ($_options as $key => $value)

      echo $value->getData('title'); //Doesn't work, print nothing
      echo $value->getData('default_title'); //It Works




      However, despite I set the store_id to be what I want, it seems like it still takes the default view.



      How can I print the Store View Title then?










      share|improve this question







      New contributor




      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have this script which gets all bundle products



      $View = 2;

      $products = Mage::getModel('catalog/product')
      ->setStoreId($View)
      ->getCollection()
      ->addAttributeToSelect('*')
      ->addAttributeToSelect('type')
      ->addFieldToFilter('type_id', array('eq' => 'bundle'))
      ;


      Then I do this to cycle them and I try to get Store View Title (which is title)



      foreach($products as $bundle)

      $productId = $bundle->getId();

      $bundled_product = new Mage_Catalog_Model_Product();
      $bundled_product->load($productId);

      $typeInstance = $bundled_product->getTypeInstance(true);

      $selectionCollection = $typeInstance->getSelectionsCollection(
      $typeInstance->getOptionsIds($bundled_product), $bundled_product
      );

      $optionCollection = $typeInstance->getOptionsCollection($bundled_product);

      $_options = $optionCollection->appendSelections($selectionCollection, false, Mage::helper('catalog/product')->getSkipSaleableCheck());

      $bundle_option = array();

      foreach ($_options as $key => $value)

      echo $value->getData('title'); //Doesn't work, print nothing
      echo $value->getData('default_title'); //It Works




      However, despite I set the store_id to be what I want, it seems like it still takes the default view.



      How can I print the Store View Title then?







      magento-1.9 bundled-product bundle






      share|improve this question







      New contributor




      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 4 at 13:55









      DonnyDonny

      162




      162




      New contributor




      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Donny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Change below code



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->load($productId);


          To



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->setStoreId($storeId)->load($productId);





          share|improve this answer























          • Thanks but it is still not working. It still prints an empty string

            – Donny
            Apr 4 at 14:06











          • Please run indexing and flush cache and try again

            – Prashant Valanda
            Apr 4 at 14:16











          • I ran it but it won't work

            – Donny
            Apr 4 at 15:38











          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
          );



          );






          Donny is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268806%2fhow-to-export-bundle-items-title%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Change below code



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->load($productId);


          To



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->setStoreId($storeId)->load($productId);





          share|improve this answer























          • Thanks but it is still not working. It still prints an empty string

            – Donny
            Apr 4 at 14:06











          • Please run indexing and flush cache and try again

            – Prashant Valanda
            Apr 4 at 14:16











          • I ran it but it won't work

            – Donny
            Apr 4 at 15:38















          0














          Change below code



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->load($productId);


          To



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->setStoreId($storeId)->load($productId);





          share|improve this answer























          • Thanks but it is still not working. It still prints an empty string

            – Donny
            Apr 4 at 14:06











          • Please run indexing and flush cache and try again

            – Prashant Valanda
            Apr 4 at 14:16











          • I ran it but it won't work

            – Donny
            Apr 4 at 15:38













          0












          0








          0







          Change below code



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->load($productId);


          To



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->setStoreId($storeId)->load($productId);





          share|improve this answer













          Change below code



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->load($productId);


          To



          $bundled_product = new Mage_Catalog_Model_Product(); 
          $bundled_product->setStoreId($storeId)->load($productId);






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 4 at 14:02









          Prashant ValandaPrashant Valanda

          9,92212355




          9,92212355












          • Thanks but it is still not working. It still prints an empty string

            – Donny
            Apr 4 at 14:06











          • Please run indexing and flush cache and try again

            – Prashant Valanda
            Apr 4 at 14:16











          • I ran it but it won't work

            – Donny
            Apr 4 at 15:38

















          • Thanks but it is still not working. It still prints an empty string

            – Donny
            Apr 4 at 14:06











          • Please run indexing and flush cache and try again

            – Prashant Valanda
            Apr 4 at 14:16











          • I ran it but it won't work

            – Donny
            Apr 4 at 15:38
















          Thanks but it is still not working. It still prints an empty string

          – Donny
          Apr 4 at 14:06





          Thanks but it is still not working. It still prints an empty string

          – Donny
          Apr 4 at 14:06













          Please run indexing and flush cache and try again

          – Prashant Valanda
          Apr 4 at 14:16





          Please run indexing and flush cache and try again

          – Prashant Valanda
          Apr 4 at 14:16













          I ran it but it won't work

          – Donny
          Apr 4 at 15:38





          I ran it but it won't work

          – Donny
          Apr 4 at 15:38










          Donny is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Donny is a new contributor. Be nice, and check out our Code of Conduct.












          Donny is a new contributor. Be nice, and check out our Code of Conduct.











          Donny is a new contributor. Be nice, and check out our Code of Conduct.














          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%2f268806%2fhow-to-export-bundle-items-title%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

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP