VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Mister Paul on June 07, 2020, 19:09:35 PM

Title: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 07, 2020, 19:09:35 PM
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
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Jörgen on June 07, 2020, 20:50:12 PM
OrderListContainer ?? in category ??

What is it used for ?

Jörgen
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 07, 2020, 21:24:39 PM
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...
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Jörgen on June 07, 2020, 22:03:28 PM
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
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 07, 2020, 22:22:00 PM
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...
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: GJC Web Design on June 07, 2020, 23:18:35 PM
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
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 07, 2020, 23:34:13 PM
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...
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Jörgen on June 07, 2020, 23:42:26 PM
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
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 07, 2020, 23:45:39 PM
OK I'll check that...
Thanks
Title: Re: Category Layout: How to make appear the "orderlistcontainer"?
Post by: Mister Paul on June 08, 2020, 07:58:39 AM
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