I want to show the product's special price in the catalog but I am getting an error when there is more than one product with a discount. One color product's click triggers a change in all catalog.
I changed the condition on the file:
It in order to show the special price on catalog product, like this:
<?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>
<?php if ($block->hasSpecialPrice()): ?>
On page load, this is the current view:
If I click in a color with a discount (the white color on the first product), it triggers changes on the second one, like this:
I am struggled to find where I need to change to fix this problem. Any idea will be more than welcome.