Virtuemart Categorie en Subcategorie titel bovenaan de pagina plaatsen

  • Meander
  • Onderwerp Auteur
  • Gebruiker
  • Gebruiker
  • Devoted Joomla User
Meer
20 mrt 2016 12:31 #3132 door Meander
Ik heb in mijn webshop de layout zo goed als klaar, maar ik stuit nog op èèn probleem.

Ik wil graag de titel van de categorie, en van de subcategorieën bovenaan de pagina hebben, onder het kruimelpad.

Ik dacht dat ik dan de div class browse-view boven category-view moest plaatsen, maar ik krijg het niet voor elkaar om de titel bovenaan de pagina te krijgen. Ik heb het al op een paar posities geprobeerd, maar niets werkt tot nu toe.

[PHP]<?php
/**
*
* Show the products in a category
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 9017 2015-10-14 10:44:34Z Milbo $
*/

defined ('_JEXEC') or die('Restricted access');

?>



<div class="category-view"> <?php
$js = "
jQuery(document).ready(function () {
jQuery('.orderlistcontainer').hover(
function() { jQuery(this).find('.orderlist').stop().show()},
function() { jQuery(this).find('.orderlist').stop().hide()}
)
});
";
vmJsApi::addJScript('vm.hover',$js);

if (empty($this->keyword) and !empty($this->category)) {
?>

<div class="browse-view">
<?php

if (!empty($this->keyword)) {
//id taken in the view.html.php could be modified
$category_id = vRequest::getInt ('virtuemart_category_id', 0); ?>
<h3><?php echo $this->keyword; ?></h3>/div>

<div class="category_description">
<?php echo $this->category->category_description; ?>
</div>
<?php
}

// Show child categories
if (VmConfig::get ('showCategory', 1) and empty($this->keyword)) {
if (!empty($this->category->haschildren)) {

echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children));

}
}

if($this->showproducts){
?>



<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get">

<!--BEGIN Search Box -->
<div class="virtuemart_search">
<?php echo $this->searchCustomList ?>
<br/>
<?php echo $this->searchCustomValues ?>
<input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>"/>
<input type="submit" value="<?php echo vmText::_ ('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/>
</div>
<input type="hidden" name="search" value="true"/>
<input type="hidden" name="view" value="category"/>
<input type="hidden" name="option" value="com_virtuemart"/>
<input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id; ?>"/>

</form>
<!-- End Search Box -->
<?php } ?>

<?php // Show child categories

?>
<div class="orderby-displaynumber">
<div class="floatleft vm-order-list">
<?php echo $this->orderByList; ?>
<?php echo $this->orderByList; ?>
</div>
<div class="vm-pagination vm-pagination-top">
<?php echo $this->vmPagination->getPagesLinks (); ?>
<span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
</div>
<div class="floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div>


<div class="clear"></div>
</div> <!-- end of orderby-displaynumber -->

<h1><?php echo vmText::_($this->category->category_name); ?></h1>

<?php
if (!empty($this->products)) {
$products = array();
$products[0] = $this->products;
echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));

?>

<div class="vm-pagination vm-pagination-bottom"><?php echo $this->vmPagination->getPagesLinks (); ?><span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span></div>

<?php
} elseif (!empty($this->keyword)) {
echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
</div>

<?php } ?>
</div>

<?php
$j = "Virtuemart.container = jQuery('.category-view');
Virtuemart.containerSelector = '.category-view';";

vmJsApi::addJScript('ajaxContent',$j);
?>
<!-- end browse-view -->[/PHP]


Ik heb mijn site nog niet officieel online want er moet eerst nog veel meer in de shop, maar dit is het adres .
Inlog: Demo
WW: Demo

Misschien dat iemand even mee wil kijken?

Alvast bedankt!
Discussie gesloten.
Gemaakt door Kunena