Hi,
That's because you've added your customization in the file show_reversed which is used for the default display, but not in the file show of the view product which is where the variants data is displayed.
When you change a characteristic value with the dropdown, the system updates the data on the page to use the data of the variant instead of the default one.
That way, you can have different prices, images, etc for each variant of your product.
So you have two choices:
- You do your modifications in the show view file too
- You remove the data display from the show view file (if you don't need that the display data changes for each variant).
For example, if you remove the code
<div id="hikashop_product_price_<?php echo $variant_name;?>" style="display:none;">
<?php
if($this->params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if ($this->params->get('show_price')) {
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
</div>
the variants price data won't be in the page and the price area won't be updated and thus you won't have your price customization "disappearing".