如何在opencart的header.tpl上显示免费送货总计[关闭]

Im new to coding. I want to display free shipping total in home page header.

go to controller file header.php

if ($this->config->get('free_total')) {
 $data['free_total'] = $this->config->get('free_total');
} else {
 $data['free_total'] = false;
}

after go to headet.tpl and put where you need

<?php echo $free_total; ?>