Clicking on product color triggers change in all productsTrying to edit special price but its allowing to edit priceHow to get all products id with price based on cart rule in magento 2Update prices of all simple products via their configurable product in Magento 2Special prices not showing in product pagesDisplay all colors of configurable products in product listing as separate productsURL Key not changing in Magento 2How to change the template of select (drop-down) in bundle products?How to get acting to product price rule in Magento 2How to move product.price.render.bundle.customization from bundle.summary to product.info.price in Magento 2Magetno 2 Related Products Rules not showing all products

Why does the compiler allow throws when the method will never throw the Exception

QGIS Geometry Generator Line Type

Can a Gentile theist be saved?

Can a malicious addon access internet history and such in chrome/firefox?

Adding empty element to declared container without declaring type of element

Could solar power be utilized and substitute coal in the 19th century?

How can I successfully establish a nationwide combat training program for a large country?

Latex for-and in equation

Simple image editor tool to draw a simple box/rectangle in an existing image

Can I use my Chinese passport to enter China after I acquired another citizenship?

Why is delta-v is the most useful quantity for planning space travel?

Did US corporations pay demonstrators in the German demonstrations against article 13?

For airliners, what prevents wing strikes on landing in bad weather?

How will losing mobility of one hand affect my career as a programmer?

Lifted its hind leg on or lifted its hind leg towards?

In Star Trek IV, why did the Bounty go back to a time when whales were already rare?

Freedom of speech and where it applies

A social experiment. What is the worst that can happen?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

How do I repair my stair bannister?

Is it okay / does it make sense for another player to join a running game of Munchkin?

word describing multiple paths to the same abstract outcome

Is it possible to have a strip of cold climate in the middle of a planet?

How can I raise concerns with a new DM about XP splitting?



Clicking on product color triggers change in all products


Trying to edit special price but its allowing to edit priceHow to get all products id with price based on cart rule in magento 2Update prices of all simple products via their configurable product in Magento 2Special prices not showing in product pagesDisplay all colors of configurable products in product listing as separate productsURL Key not changing in Magento 2How to change the template of select (drop-down) in bundle products?How to get acting to product price rule in Magento 2How to move product.price.render.bundle.customization from bundle.summary to product.info.price in Magento 2Magetno 2 Related Products Rules not showing all products













0















I want to show the product's special price in catalog but I am getting an error when there is more than one product with discount. One color product's click triggers change in all catalog.



I changed the condition on app/design/frontend/Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file in order to show the special price on catalog product, like this:



<?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>


to



<?php if ($block->hasSpecialPrice()): ?>


On page load, this is the current view:



Page load



If I click in a color with discount (the white color on the first product), it triggers changes on the second one, like this:



The second product changes when I click the first one too



I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.









share


























    0















    I want to show the product's special price in catalog but I am getting an error when there is more than one product with discount. One color product's click triggers change in all catalog.



    I changed the condition on app/design/frontend/Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file in order to show the special price on catalog product, like this:



    <?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>


    to



    <?php if ($block->hasSpecialPrice()): ?>


    On page load, this is the current view:



    Page load



    If I click in a color with discount (the white color on the first product), it triggers changes on the second one, like this:



    The second product changes when I click the first one too



    I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.









    share
























      0












      0








      0








      I want to show the product's special price in catalog but I am getting an error when there is more than one product with discount. One color product's click triggers change in all catalog.



      I changed the condition on app/design/frontend/Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file in order to show the special price on catalog product, like this:



      <?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>


      to



      <?php if ($block->hasSpecialPrice()): ?>


      On page load, this is the current view:



      Page load



      If I click in a color with discount (the white color on the first product), it triggers changes on the second one, like this:



      The second product changes when I click the first one too



      I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.









      share














      I want to show the product's special price in catalog but I am getting an error when there is more than one product with discount. One color product's click triggers change in all catalog.



      I changed the condition on app/design/frontend/Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml file in order to show the special price on catalog product, like this:



      <?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>


      to



      <?php if ($block->hasSpecialPrice()): ?>


      On page load, this is the current view:



      Page load



      If I click in a color with discount (the white color on the first product), it triggers changes on the second one, like this:



      The second product changes when I click the first one too



      I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.







      magento2 javascript knockoutjs





      share












      share










      share



      share










      asked 4 mins ago









      LTroyaLTroya

      12




      12




















          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%2f267320%2fclicking-on-product-color-triggers-change-in-all-products%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%2f267320%2fclicking-on-product-color-triggers-change-in-all-products%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

          Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

          Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»

          Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр