i make helper in system\helper\multi_pay.php
Code: Select all
// help make notifications
// make success, errors, warnings notes
// danger info success warning link dismissable - all in bootstramp3
// $data['warns'] .= _note('all done!', 'success');
function _note($note, $type='error') {
return '<div class="alert alert-' .$type . '"><i class="fa fa-check-circle"></i> ' .$note.'
<button type="button" class="close" data-dismiss="alert">×</button></div>';
}
Code: Select all
$data['notes'] = '';
if (empty($method_data)) {
$data['notes'] .= _note(sprintf($this->language->get('error_no_payment'), $this->url->link('information/contact')), 'danger');
}
in view catalog\view\theme\default\template\common\default.tpl:
Code: Select all
<?php echo $header; ?>
<div class="container">
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
<?php echo $[b]notes[/b]; ?>
<div class="row"><?php echo $column_left; ?>
<?php if ($column_left && $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
<?php } elseif ($column_left || $column_right) { ?>
<?php $class = 'col-sm-9'; ?>
<?php } else { ?>
<?php $class = 'col-sm-12'; ?>
<?php } ?>
<div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
<?php echo $content; ?>
<?php echo $content_bottom; ?></div>
<?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>