Magento 2 get all customizable options

How long is it safe to leave marker on a Chessex battle map?

2019 gold coins to share

Math cases align being colored as a table

What are the implications when matrix's lowest eigenvalue is equal to 0?

Is Lambda Calculus purely syntactic?

Possible runaway argument using circuitikz

tabular: caption and align problem

Arduino wrap or Subclass print() to work with multiple Serial

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

What is the color of artificial intelligence?

Proving that a Russian cryptographic standard is too structured

Live action TV show where High school Kids go into the virtual world and have to clear levels

Why did Intel abandon unified CPU cache?

Do you have to have figures when playing D&D?

Are polynomials with the same roots identical?

60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race

Why was this person allowed to become Grand Maester?

Why the output signal of my amplifier is heavily distorted

What is the Leave No Trace way to dispose of coffee grounds?

How can I remove material from this wood beam?

Why Does Mama Coco Look Old After Going to the Other World?

Is it safe to change the harddrive power feature so that it never turns off?

Does a bank have to tell me if a check made out to me was cashed there?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?



Magento 2 get all customizable options







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








2















Is there a way I could retrieve all the custom options and their values? (not from a specific product, but just all of the options)










share|improve this question




























    2















    Is there a way I could retrieve all the custom options and their values? (not from a specific product, but just all of the options)










    share|improve this question
























      2












      2








      2








      Is there a way I could retrieve all the custom options and their values? (not from a specific product, but just all of the options)










      share|improve this question














      Is there a way I could retrieve all the custom options and their values? (not from a specific product, but just all of the options)







      custom customizable-options






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 3 at 15:04









      kolozzkolozz

      435




      435




















          2 Answers
          2






          active

          oldest

          votes


















          2














          I found this solution:



           $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title');

          $connection = $this->_resourceConnection->getConnection();
          $query = "SELECT * FROM " . $tableName;
          $resultOptions = $connection->fetchAll($query);





          share|improve this answer






























            2














            If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql.



            mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from catalog_product_option_type_title t1 left join catalog_product_option_type_value t2 on t1.option_type_id = t2.option_type_id) t3 left join catalog_product_option_title t4 on t3.option_id = t4.option_id;





            share|improve this answer























              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%2f277101%2fmagento-2-get-all-customizable-options%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              I found this solution:



               $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title');

              $connection = $this->_resourceConnection->getConnection();
              $query = "SELECT * FROM " . $tableName;
              $resultOptions = $connection->fetchAll($query);





              share|improve this answer



























                2














                I found this solution:



                 $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title');

                $connection = $this->_resourceConnection->getConnection();
                $query = "SELECT * FROM " . $tableName;
                $resultOptions = $connection->fetchAll($query);





                share|improve this answer

























                  2












                  2








                  2







                  I found this solution:



                   $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title');

                  $connection = $this->_resourceConnection->getConnection();
                  $query = "SELECT * FROM " . $tableName;
                  $resultOptions = $connection->fetchAll($query);





                  share|improve this answer













                  I found this solution:



                   $tableName = $this->_resourceConnection->getTableName('catalog_product_option_type_title');

                  $connection = $this->_resourceConnection->getConnection();
                  $query = "SELECT * FROM " . $tableName;
                  $resultOptions = $connection->fetchAll($query);






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 3 at 17:40









                  kolozzkolozz

                  435




                  435























                      2














                      If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql.



                      mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from catalog_product_option_type_title t1 left join catalog_product_option_type_value t2 on t1.option_type_id = t2.option_type_id) t3 left join catalog_product_option_title t4 on t3.option_id = t4.option_id;





                      share|improve this answer



























                        2














                        If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql.



                        mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from catalog_product_option_type_title t1 left join catalog_product_option_type_value t2 on t1.option_type_id = t2.option_type_id) t3 left join catalog_product_option_title t4 on t3.option_id = t4.option_id;





                        share|improve this answer

























                          2












                          2








                          2







                          If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql.



                          mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from catalog_product_option_type_title t1 left join catalog_product_option_type_value t2 on t1.option_type_id = t2.option_type_id) t3 left join catalog_product_option_title t4 on t3.option_id = t4.option_id;





                          share|improve this answer













                          If you are trying to retrieve custom options and their values for one time you can use mysql query else you can have your own kind of implementations based on the below sql.



                          mysql> select t4.title as 'Custom Option', t3.Custom_Option_Values from (select t2.option_id, t1.option_type_id,t1.title as 'Custom_Option_Values' from catalog_product_option_type_title t1 left join catalog_product_option_type_value t2 on t1.option_type_id = t2.option_type_id) t3 left join catalog_product_option_title t4 on t3.option_id = t4.option_id;






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jun 3 at 19:28









                          Prashiddha Raj JoshiPrashiddha Raj Joshi

                          213




                          213



























                              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%2f277101%2fmagento-2-get-all-customizable-options%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