Hi,
1. You should put that code in one of the "_main" divs of the show_default (or show_tabular) layouts. For example in the DIV:
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">
And then you need to also add such code:
<?php
if($this->element->deposit)
echo ''.number_format((float)$this->row->deposit, 0, '.', '').'%';
?>
in the "show" file of the "product" view in the variant DIV:
<div id="hikashop_product_quantity_<?php echo $variant_name;?>" style="display:none;"><?php
That way, when the system switch the data from the variant DIV to the main DIV, it will also include the deposit value.
2. You should instead use such code:
$popupHelper = hikashop_get('helper.popup');
echo $popupHelper->display(
'JAK VYBRAT SPRÁVNĚ VELIKOST?',
'JAK VYBRAT SPRÁVNĚ VELIKOST?',
'/component/content/article?id=8&tmpl=component',
'your_custom_popup_internal_name',
750, 460, '', '', 'link'
);