Skip to content
Permalink
Browse files

Fix #471

  • Loading branch information...
abantecart committed Mar 4, 2016
1 parent 8fda6fe commit 0f585fe750b1305a1c9929757752123b0a758c46
@@ -4,13 +4,15 @@
<div id="content" class="panel panel-default">

<div class="panel-heading col-xs-12">
<?php if( $category_id ) { ?>
<div class="primary_content_actions pull-left">
<div class="btn-group mr10 toolbar">
<a class="btn btn-primary tooltips" href="<?php echo $insert; ?>" title="<?php echo $button_add; ?>">
<i class="fa fa-plus"></i>
</a>
</div>
</div>
<?php } ?>

<?php include($tpl_common_dir . 'content_buttons.tpl'); ?>
</div>
@@ -113,22 +113,23 @@ public function main() {
$limit = $this->config->get('config_catalog_limit');
}
if (isset($this->request->get['sort'])) {
$sorting_href = $this->request->get['sort'];
} else {
$url = '';
$sort = '';
$order = '';
$sorting_href = $this->request->get['sort'];
if(!$sorting_href) {
$sorting_href = $this->config->get('config_product_default_sort_order');
}
list($sort,$order) = explode("-",$sorting_href);
if($sort=='name'){
$sort = 'pd.'.$sort;
}elseif(in_array($sort,array('sort_order','price'))){
$sort = 'p.'.$sort;
}
$url = '&sort=' . $sort."-".$order;
if (isset($this->request->get['sort'])) {
$url = '&sort=' . $sort."-".$order;
}
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
@@ -15,11 +15,11 @@
<ul class="thumbnails row">
<?php for ($i = 0; $i < sizeof($categories); $i++) { ?>
<li class="col-md-2 col-sm-2 col-xs-6 align_center">
<a href="<?php echo $categories[ $i ][ 'href' ]; ?>">
<?php echo $categories[ $i ][ 'thumb' ][ 'thumb_html' ]; ?>
<a href="<?php echo $categories[$i]['href']; ?>">
<?php echo $categories[$i]['thumb']['thumb_html']; ?>
</a>
<div class="mt10 align_center" style="height: 40px;">
<a href="<?php echo $categories[ $i ][ 'href' ]; ?>"><?php echo $categories[ $i ][ 'name' ]; ?></a>
<a href="<?php echo $categories[$i]['href']; ?>"><?php echo $categories[$i]['name']; ?></a>
</div>
</li>
<?php } ?>

0 comments on commit 0f585fe

Please sign in to comment.
You can’t perform that action at this time.