Sort by price is not working as expected in magento 2.2.7 product listing pagemagento sort by price not working fineMagento Module creation gives errorWhy sort by price order not working?Magento 2: Plugin class does not existMagento 2 and VES theme. Site front and back shows corrupt? PHP version issue?Magento 2.2 listing page products sort by price is incorrectGetting Errors after MySQL database importMagento Product Listing Sort By not working on some categoryMagento 2.2.6- After Migration all default Payment Methods are not working fineMsrpPriceCalculator Exception

French for 'It must be my imagination'?

Binary Numbers Magic Trick

Mac Pro install disk keeps ejecting itself

Why other Westeros houses don't use wildfire?

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Was there a Viking Exchange as well as a Columbian one?

Does the sign matter for proportionality?

Why does nature favour the Laplacian?

Please, smoke with good manners

What's the polite way to say "I need to urinate"?

What makes accurate emulation of old systems a difficult task?

Why was Germany not as successful as other Europeans in establishing overseas colonies?

Why do games have consumables?

With a Canadian student visa, can I spend a night at Vancouver before continuing to Toronto?

Do I have an "anti-research" personality?

How could Tony Stark make this in Endgame?

Will a top journal at least read my introduction?

How much cash can I safely carry into the USA and avoid civil forfeiture?

How come there are so many candidates for the 2020 Democratic party presidential nomination?

simple conditions equation

Realistic Necromancy?

how to sum variables from file in bash

What is the difference between `command a[bc]d` and `command `ab,cd`

What route did the Hindenburg take when traveling from Germany to the U.S.?



Sort by price is not working as expected in magento 2.2.7 product listing page


magento sort by price not working fineMagento Module creation gives errorWhy sort by price order not working?Magento 2: Plugin class does not existMagento 2 and VES theme. Site front and back shows corrupt? PHP version issue?Magento 2.2 listing page products sort by price is incorrectGetting Errors after MySQL database importMagento Product Listing Sort By not working on some categoryMagento 2.2.6- After Migration all default Payment Methods are not working fineMsrpPriceCalculator Exception






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








3















when I sort by price product order in Asc or dec. In product listing shows like, First product price is 40, second product price is 50 and the third product price is 40.



If I opened and save those 50 price product in admin backend that product, it's working fine.



All product have customizable options. When I run the following script it's working fine. But this script will delete those customizable options.



<?php

use MagentoFrameworkAppBootstrap;

include 'app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();

$state = $objectManager->get('MagentoFrameworkAppState');
$state->setAreaCode('frontend');


$productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');

$productCollection->load();

foreach($productCollection as $product)

$product->save();



echo "saved";


Find any possible way to fix this issue.
advance thanks










share|improve this question






























    3















    when I sort by price product order in Asc or dec. In product listing shows like, First product price is 40, second product price is 50 and the third product price is 40.



    If I opened and save those 50 price product in admin backend that product, it's working fine.



    All product have customizable options. When I run the following script it's working fine. But this script will delete those customizable options.



    <?php

    use MagentoFrameworkAppBootstrap;

    include 'app/bootstrap.php';

    $bootstrap = Bootstrap::create(BP, $_SERVER);
    $objectManager = $bootstrap->getObjectManager();

    $state = $objectManager->get('MagentoFrameworkAppState');
    $state->setAreaCode('frontend');


    $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');

    $productCollection->load();

    foreach($productCollection as $product)

    $product->save();



    echo "saved";


    Find any possible way to fix this issue.
    advance thanks










    share|improve this question


























      3












      3








      3








      when I sort by price product order in Asc or dec. In product listing shows like, First product price is 40, second product price is 50 and the third product price is 40.



      If I opened and save those 50 price product in admin backend that product, it's working fine.



      All product have customizable options. When I run the following script it's working fine. But this script will delete those customizable options.



      <?php

      use MagentoFrameworkAppBootstrap;

      include 'app/bootstrap.php';

      $bootstrap = Bootstrap::create(BP, $_SERVER);
      $objectManager = $bootstrap->getObjectManager();

      $state = $objectManager->get('MagentoFrameworkAppState');
      $state->setAreaCode('frontend');


      $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');

      $productCollection->load();

      foreach($productCollection as $product)

      $product->save();



      echo "saved";


      Find any possible way to fix this issue.
      advance thanks










      share|improve this question
















      when I sort by price product order in Asc or dec. In product listing shows like, First product price is 40, second product price is 50 and the third product price is 40.



      If I opened and save those 50 price product in admin backend that product, it's working fine.



      All product have customizable options. When I run the following script it's working fine. But this script will delete those customizable options.



      <?php

      use MagentoFrameworkAppBootstrap;

      include 'app/bootstrap.php';

      $bootstrap = Bootstrap::create(BP, $_SERVER);
      $objectManager = $bootstrap->getObjectManager();

      $state = $objectManager->get('MagentoFrameworkAppState');
      $state->setAreaCode('frontend');


      $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');

      $productCollection->load();

      foreach($productCollection as $product)

      $product->save();



      echo "saved";


      Find any possible way to fix this issue.
      advance thanks







      magento2 price sorting special-price customizable-options






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 15 at 7:31







      ARUNPRABAKARAN M

















      asked Feb 15 at 7:24









      ARUNPRABAKARAN MARUNPRABAKARAN M

      605114




      605114




















          3 Answers
          3






          active

          oldest

          votes


















          1














          Try to load the product options with your collection. The product collection does not load options by default since they are not used in product lists. Maybe that have impact on what you are doing in your code.



          $productCollection->addOptionsToResult()->load();






          share|improve this answer























          • It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

            – ARUNPRABAKARAN M
            Feb 15 at 11:43











          • Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

            – HelgeB
            Feb 15 at 12:10












          • While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

            – ARUNPRABAKARAN M
            Feb 15 at 12:38












          • Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

            – HelgeB
            Feb 15 at 12:46











          • thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

            – ARUNPRABAKARAN M
            Feb 15 at 12:48


















          1














          Try this,



          <?php 
          use MagentoFrameworkAppBootstrap;
          include 'app/bootstrap.php';
          $bootstrap = Bootstrap::create(BP, $_SERVER);
          $objectManager = $bootstrap->getObjectManager();
          $state = $objectManager->get('MagentoFrameworkAppState');
          $state->setAreaCode('frontend');
          $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
          $productCollection->addAttributeToSelect('*');
          $productCollection->addAttributeToSort('price', 'ASC');

          foreach($productCollection as $product)
          $product = $objectManager->get('MagentoCatalogModelProductOption')->getProductOptionCollection($product);
          $product->save();

          echo "saved";


          Hope this helps, peace :)






          share|improve this answer

























          • Thanks for the reply. I just want to save product script without deleted those products customizable options

            – ARUNPRABAKARAN M
            Feb 15 at 8:09











          • updated try this.

            – Prathap Gunasekaran
            Feb 15 at 8:51











          • Your updated script is also deleted customizable options of all products.

            – ARUNPRABAKARAN M
            Feb 15 at 10:05











          • Give it try again

            – Prathap Gunasekaran
            Feb 15 at 10:08











          • Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

            – ARUNPRABAKARAN M
            Feb 15 at 11:14


















          0














          We are having the sort by price issue on Magento 2.3.0
          Ex: A product price 100$ customizable option price starts with 50, B product price 110$ customizable option price starts with 20 and C product price 120$ customizable option price starts with 20.



          We are expecting sort by price is product A, product B, and product C but its showings like product B, product C, and product A.



          Because results are showing with the lowest customizable option price like product B 130$, product C 140$, and product A 150$.



          So we nee the price displays with the lowest customizable option.
          Or Sorting needs to show without calculating the customizable option price.






          share|improve this answer























          • Kindly post as questions

            – ARUNPRABAKARAN M
            Apr 24 at 12:56











          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%2f261945%2fsort-by-price-is-not-working-as-expected-in-magento-2-2-7-product-listing-page%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Try to load the product options with your collection. The product collection does not load options by default since they are not used in product lists. Maybe that have impact on what you are doing in your code.



          $productCollection->addOptionsToResult()->load();






          share|improve this answer























          • It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

            – ARUNPRABAKARAN M
            Feb 15 at 11:43











          • Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

            – HelgeB
            Feb 15 at 12:10












          • While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

            – ARUNPRABAKARAN M
            Feb 15 at 12:38












          • Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

            – HelgeB
            Feb 15 at 12:46











          • thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

            – ARUNPRABAKARAN M
            Feb 15 at 12:48















          1














          Try to load the product options with your collection. The product collection does not load options by default since they are not used in product lists. Maybe that have impact on what you are doing in your code.



          $productCollection->addOptionsToResult()->load();






          share|improve this answer























          • It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

            – ARUNPRABAKARAN M
            Feb 15 at 11:43











          • Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

            – HelgeB
            Feb 15 at 12:10












          • While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

            – ARUNPRABAKARAN M
            Feb 15 at 12:38












          • Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

            – HelgeB
            Feb 15 at 12:46











          • thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

            – ARUNPRABAKARAN M
            Feb 15 at 12:48













          1












          1








          1







          Try to load the product options with your collection. The product collection does not load options by default since they are not used in product lists. Maybe that have impact on what you are doing in your code.



          $productCollection->addOptionsToResult()->load();






          share|improve this answer













          Try to load the product options with your collection. The product collection does not load options by default since they are not used in product lists. Maybe that have impact on what you are doing in your code.



          $productCollection->addOptionsToResult()->load();







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 15 at 8:39









          HelgeBHelgeB

          3,4481423




          3,4481423












          • It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

            – ARUNPRABAKARAN M
            Feb 15 at 11:43











          • Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

            – HelgeB
            Feb 15 at 12:10












          • While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

            – ARUNPRABAKARAN M
            Feb 15 at 12:38












          • Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

            – HelgeB
            Feb 15 at 12:46











          • thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

            – ARUNPRABAKARAN M
            Feb 15 at 12:48

















          • It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

            – ARUNPRABAKARAN M
            Feb 15 at 11:43











          • Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

            – HelgeB
            Feb 15 at 12:10












          • While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

            – ARUNPRABAKARAN M
            Feb 15 at 12:38












          • Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

            – HelgeB
            Feb 15 at 12:46











          • thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

            – ARUNPRABAKARAN M
            Feb 15 at 12:48
















          It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

          – ARUNPRABAKARAN M
          Feb 15 at 11:43





          It's not deleted the customizable options and product listing is working fine. But Customizable option not shown in frontend product detail page. But if open and save those products again in the admin panel, it's working fine

          – ARUNPRABAKARAN M
          Feb 15 at 11:43













          Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

          – HelgeB
          Feb 15 at 12:10






          Sorry but I can't follow: In your question you have a product listing with sorting prices and some script which deletes your custom options. Now you tell me, the script is not deleting custom options but you are not seeing custom option changes in product view. If your question is related to sorting its most likely something with the search index, but I don't see the relation between price sorting in product lists and custom options in product detail page :-)

          – HelgeB
          Feb 15 at 12:10














          While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

          – ARUNPRABAKARAN M
          Feb 15 at 12:38






          While executing my initial script, it saved the product data and deletes its custom options data. After included your suggestion in the script, now the product data and its custom options data are saved properly. But we face the issue, In product detail page like the products details are showing without the selection options of custom options. Then we need to go backend and requires to save manually of that product without changing anything for showing the selection options of custom options in frontend product detail page.

          – ARUNPRABAKARAN M
          Feb 15 at 12:38














          Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

          – HelgeB
          Feb 15 at 12:46





          Ok, thanks for the details, now I see a little clearer :-) You may have a cache issue there. Try to flush the cache after running your script.

          – HelgeB
          Feb 15 at 12:46













          thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

          – ARUNPRABAKARAN M
          Feb 15 at 12:48





          thanks for the understanding. Even we tried to clear the cache and also did the reindex. But it does not help us.

          – ARUNPRABAKARAN M
          Feb 15 at 12:48













          1














          Try this,



          <?php 
          use MagentoFrameworkAppBootstrap;
          include 'app/bootstrap.php';
          $bootstrap = Bootstrap::create(BP, $_SERVER);
          $objectManager = $bootstrap->getObjectManager();
          $state = $objectManager->get('MagentoFrameworkAppState');
          $state->setAreaCode('frontend');
          $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
          $productCollection->addAttributeToSelect('*');
          $productCollection->addAttributeToSort('price', 'ASC');

          foreach($productCollection as $product)
          $product = $objectManager->get('MagentoCatalogModelProductOption')->getProductOptionCollection($product);
          $product->save();

          echo "saved";


          Hope this helps, peace :)






          share|improve this answer

























          • Thanks for the reply. I just want to save product script without deleted those products customizable options

            – ARUNPRABAKARAN M
            Feb 15 at 8:09











          • updated try this.

            – Prathap Gunasekaran
            Feb 15 at 8:51











          • Your updated script is also deleted customizable options of all products.

            – ARUNPRABAKARAN M
            Feb 15 at 10:05











          • Give it try again

            – Prathap Gunasekaran
            Feb 15 at 10:08











          • Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

            – ARUNPRABAKARAN M
            Feb 15 at 11:14















          1














          Try this,



          <?php 
          use MagentoFrameworkAppBootstrap;
          include 'app/bootstrap.php';
          $bootstrap = Bootstrap::create(BP, $_SERVER);
          $objectManager = $bootstrap->getObjectManager();
          $state = $objectManager->get('MagentoFrameworkAppState');
          $state->setAreaCode('frontend');
          $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
          $productCollection->addAttributeToSelect('*');
          $productCollection->addAttributeToSort('price', 'ASC');

          foreach($productCollection as $product)
          $product = $objectManager->get('MagentoCatalogModelProductOption')->getProductOptionCollection($product);
          $product->save();

          echo "saved";


          Hope this helps, peace :)






          share|improve this answer

























          • Thanks for the reply. I just want to save product script without deleted those products customizable options

            – ARUNPRABAKARAN M
            Feb 15 at 8:09











          • updated try this.

            – Prathap Gunasekaran
            Feb 15 at 8:51











          • Your updated script is also deleted customizable options of all products.

            – ARUNPRABAKARAN M
            Feb 15 at 10:05











          • Give it try again

            – Prathap Gunasekaran
            Feb 15 at 10:08











          • Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

            – ARUNPRABAKARAN M
            Feb 15 at 11:14













          1












          1








          1







          Try this,



          <?php 
          use MagentoFrameworkAppBootstrap;
          include 'app/bootstrap.php';
          $bootstrap = Bootstrap::create(BP, $_SERVER);
          $objectManager = $bootstrap->getObjectManager();
          $state = $objectManager->get('MagentoFrameworkAppState');
          $state->setAreaCode('frontend');
          $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
          $productCollection->addAttributeToSelect('*');
          $productCollection->addAttributeToSort('price', 'ASC');

          foreach($productCollection as $product)
          $product = $objectManager->get('MagentoCatalogModelProductOption')->getProductOptionCollection($product);
          $product->save();

          echo "saved";


          Hope this helps, peace :)






          share|improve this answer















          Try this,



          <?php 
          use MagentoFrameworkAppBootstrap;
          include 'app/bootstrap.php';
          $bootstrap = Bootstrap::create(BP, $_SERVER);
          $objectManager = $bootstrap->getObjectManager();
          $state = $objectManager->get('MagentoFrameworkAppState');
          $state->setAreaCode('frontend');
          $productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
          $productCollection->addAttributeToSelect('*');
          $productCollection->addAttributeToSort('price', 'ASC');

          foreach($productCollection as $product)
          $product = $objectManager->get('MagentoCatalogModelProductOption')->getProductOptionCollection($product);
          $product->save();

          echo "saved";


          Hope this helps, peace :)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 15 at 10:08

























          answered Feb 15 at 8:05









          Prathap GunasekaranPrathap Gunasekaran

          2,0491619




          2,0491619












          • Thanks for the reply. I just want to save product script without deleted those products customizable options

            – ARUNPRABAKARAN M
            Feb 15 at 8:09











          • updated try this.

            – Prathap Gunasekaran
            Feb 15 at 8:51











          • Your updated script is also deleted customizable options of all products.

            – ARUNPRABAKARAN M
            Feb 15 at 10:05











          • Give it try again

            – Prathap Gunasekaran
            Feb 15 at 10:08











          • Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

            – ARUNPRABAKARAN M
            Feb 15 at 11:14

















          • Thanks for the reply. I just want to save product script without deleted those products customizable options

            – ARUNPRABAKARAN M
            Feb 15 at 8:09











          • updated try this.

            – Prathap Gunasekaran
            Feb 15 at 8:51











          • Your updated script is also deleted customizable options of all products.

            – ARUNPRABAKARAN M
            Feb 15 at 10:05











          • Give it try again

            – Prathap Gunasekaran
            Feb 15 at 10:08











          • Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

            – ARUNPRABAKARAN M
            Feb 15 at 11:14
















          Thanks for the reply. I just want to save product script without deleted those products customizable options

          – ARUNPRABAKARAN M
          Feb 15 at 8:09





          Thanks for the reply. I just want to save product script without deleted those products customizable options

          – ARUNPRABAKARAN M
          Feb 15 at 8:09













          updated try this.

          – Prathap Gunasekaran
          Feb 15 at 8:51





          updated try this.

          – Prathap Gunasekaran
          Feb 15 at 8:51













          Your updated script is also deleted customizable options of all products.

          – ARUNPRABAKARAN M
          Feb 15 at 10:05





          Your updated script is also deleted customizable options of all products.

          – ARUNPRABAKARAN M
          Feb 15 at 10:05













          Give it try again

          – Prathap Gunasekaran
          Feb 15 at 10:08





          Give it try again

          – Prathap Gunasekaran
          Feb 15 at 10:08













          Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

          – ARUNPRABAKARAN M
          Feb 15 at 11:14





          Now it's not deleted the cutomizable options. But products sorting by price is not working properly bro

          – ARUNPRABAKARAN M
          Feb 15 at 11:14











          0














          We are having the sort by price issue on Magento 2.3.0
          Ex: A product price 100$ customizable option price starts with 50, B product price 110$ customizable option price starts with 20 and C product price 120$ customizable option price starts with 20.



          We are expecting sort by price is product A, product B, and product C but its showings like product B, product C, and product A.



          Because results are showing with the lowest customizable option price like product B 130$, product C 140$, and product A 150$.



          So we nee the price displays with the lowest customizable option.
          Or Sorting needs to show without calculating the customizable option price.






          share|improve this answer























          • Kindly post as questions

            – ARUNPRABAKARAN M
            Apr 24 at 12:56















          0














          We are having the sort by price issue on Magento 2.3.0
          Ex: A product price 100$ customizable option price starts with 50, B product price 110$ customizable option price starts with 20 and C product price 120$ customizable option price starts with 20.



          We are expecting sort by price is product A, product B, and product C but its showings like product B, product C, and product A.



          Because results are showing with the lowest customizable option price like product B 130$, product C 140$, and product A 150$.



          So we nee the price displays with the lowest customizable option.
          Or Sorting needs to show without calculating the customizable option price.






          share|improve this answer























          • Kindly post as questions

            – ARUNPRABAKARAN M
            Apr 24 at 12:56













          0












          0








          0







          We are having the sort by price issue on Magento 2.3.0
          Ex: A product price 100$ customizable option price starts with 50, B product price 110$ customizable option price starts with 20 and C product price 120$ customizable option price starts with 20.



          We are expecting sort by price is product A, product B, and product C but its showings like product B, product C, and product A.



          Because results are showing with the lowest customizable option price like product B 130$, product C 140$, and product A 150$.



          So we nee the price displays with the lowest customizable option.
          Or Sorting needs to show without calculating the customizable option price.






          share|improve this answer













          We are having the sort by price issue on Magento 2.3.0
          Ex: A product price 100$ customizable option price starts with 50, B product price 110$ customizable option price starts with 20 and C product price 120$ customizable option price starts with 20.



          We are expecting sort by price is product A, product B, and product C but its showings like product B, product C, and product A.



          Because results are showing with the lowest customizable option price like product B 130$, product C 140$, and product A 150$.



          So we nee the price displays with the lowest customizable option.
          Or Sorting needs to show without calculating the customizable option price.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 24 at 12:41









          Naveen SamaNaveen Sama

          62




          62












          • Kindly post as questions

            – ARUNPRABAKARAN M
            Apr 24 at 12:56

















          • Kindly post as questions

            – ARUNPRABAKARAN M
            Apr 24 at 12:56
















          Kindly post as questions

          – ARUNPRABAKARAN M
          Apr 24 at 12:56





          Kindly post as questions

          – ARUNPRABAKARAN M
          Apr 24 at 12:56

















          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%2f261945%2fsort-by-price-is-not-working-as-expected-in-magento-2-2-7-product-listing-page%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