Hi,
sorry for this newbie question, but I can't manage that now...
I made a Virtuemart Category Layout Menu item.
It's fine but there's no "orderlistcontainer"...
How could I make it appear?
Something to check somewhere?
I just can't find it.
:-[
Thanks for your help
Paul
OrderListContainer ?? in category ??
What is it used for ?
Jörgen
It's made to sort the products from a displayed category
https://www.cjoint.com/data3/JFhtynPcuF1_Capture.jpg
I don't know how I could make it appear...
To answer you:
"orderlistcontainer" is the a class name. And the main div class name of this part is "orderby-displaynumber"
Perhaps "sortlistcontainer" or "sortby-displaynumber" would be more clear. ;-)
But don't know if it comes from my template...
I have not seen it in my template. I suspect this is specific to Your template.
If i remeber correctly you can turn on an off ordering under configurations for VM.
Jörgen @ Kreativ Fotografi
It's strange because I have menu items that were made 10 years ago and the get this tool to sort products from the displayed category
https://www.cjoint.com/data3/JFhuqYjeKI1_Capture2.jpg
But know I can't make it appear...
in the standard category default.php there is no switch or setting for it
the code is
if(!empty($this->orderByList)) { ?>
<div class="orderby-displaynumber">
<div class="floatleft vm-order-list">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</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 -->
<?php } ?>
so look in your over ride at the code
if(!empty($this->orderByList)) { means that u have chosen some orderby parameters
I have the same behaviour on my "old" pages with Protostar and Beez3
https://www.cjoint.com/data3/JFhvHixmYZ1_Capture3.jpg
I'll check...
But don't understand why I don't have any parameter when I create a new VM category menu item...
Mixed up the navigation bar with Your sort function.
Found this in my template though.
Any js screwing this up on your site?
Jörgen
OK I'll check that...
Thanks
Thank you all
I did some override a long time ago and didn't remember it
I added some code to avoid the sortby if there was at least a subcategory (why?):
if (empty($this->category->haschildren)) {
...
}
That's why the sortby wasn't allways there...
Really sorry for disturbance
:-[
Paul