Then i have manufacturers category, where u can select manufacturer on dropdown..but as soon as i select manufacturer, it displays all the products of the selected manufacturer, but in new page, which means there's no navigation bar on left anymore.
Can you guys help me fix that?
Case1: working
http://i.imgur.com/pKqTGd2.jpg
Case2: opens in new page
http://i.imgur.com/WuDo98b.jpg
Code: Select all
<div class="list-group">
<h3 id="znamkaLevo"><?php echo $heading_title; ?></h3>
Code: Select all
<select onchange="gobrandpage(this.value)" class="form-control">
<?php foreach ($manufacturers as $manufacturer) { ?>
<option value="<?php echo $manufacturer['href']; ?>" <?php if ($manufacturer['manufacturer_id'] == $manufacturer_id){ echo "SELECTED"; } ?> class="list-group-item active"><?php echo $manufacturer['name']; ?></option>
<?php } ?>
</select>
</div>
<script>
function gobrandpage(id){
window.location.href=id;
}
</script>