
1. EDIT: catalog/controller/information/information.php
2. FIND (the very bottom):
Code: Select all
}
?>
Code: Select all
public function loadInfo() {
$this->load->model('catalog/information');
if (isset($this->request->get['information_id'])) {
$information_id = $this->request->get['information_id'];
} else {
$information_id = ($this->config->get('config_checkout_id')) ? $this->config->get('config_checkout_id') : $this->config->get('config_checkout');
}
$information_info = $this->model_catalog_information->getInformation($information_id);
$output = '
<div id="content" style="margin: 0pt; padding: 0pt;">
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="center">
<h1>'.$information_info['title'].'</h1>
</div>
</div>
<div class="middle">
<p>'.html_entity_decode($information_info['description']).'</p>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
</div>
';
$this->response->setOutput($output, $this->config->get('config_compression'));
}
5. FIND:
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a onclick="window.open(\'%s\');"><b>%s</b></a>';
Code: Select all
$_['text_agree'] = 'I have read and agree to the <a class="thickbox" href="index.php?route=information/information/loadInfo&height=400&width=600" alt="%s"><b>%s</b></a>';
7. EDIT: catalog/view/theme/YOURTHEME/template/common/header.tpl
8. FIND:
Code: Select all
</head>
Code: Select all
<style type="text/css">
div#fancybox-inner { text-align: left; }
</style>
<script type="text/javascript">
$(document).ready(function() {
$("a.thickbox").fancybox({
'speedIn' : 600,
'speedOut' : 500,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'easingIn' : 'easeOutBack',
'easingOut' : 'easeInBack',
'autoDimensions': false,
'width': 620,
'height': 400,
'hideOnContentClick': true,
'titleShow': false
});
});
</script>