Hi,
Please edit the view "product | show" and change the code
<?php }
if (!empty($variant->product_code)){ ?>
<div id="hikashop_product_code_<?php echo $variant_name;?>" style="display:none;">
<?php echo $variant->product_code;?>
</div>
<?php } ?>
By
<?php }
if ($this->config->get('show_code') && !empty($variant->product_code)){ ?>
<div id="hikashop_product_code_<?php echo $variant_name;?>" style="display:none;">
<?php echo $variant->product_code;?>
</div>
<?php } ?>
It would link the option "show_code" to the variants product code too.
I will submit this patch, it may be added in the next HikaShop release.
Regards,