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
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:

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

I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.
magento2 javascript knockoutjs
add a comment |
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:

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

I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.
magento2 javascript knockoutjs
add a comment |
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:

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

I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.
magento2 javascript knockoutjs
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:

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

I am struggled finding where I need to change to fix this problem. Any idea will be more than welcome.
magento2 javascript knockoutjs
magento2 javascript knockoutjs
asked 4 mins ago
LTroyaLTroya
12
12
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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