News:

Support the VirtueMart project and become a member

Main Menu

Category Layout: How to make appear the "orderlistcontainer"?

Started by Mister Paul, June 07, 2020, 19:09:35 PM

Previous topic - Next topic

Mister Paul

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

Jörgen

OrderListContainer ?? in category ??

What is it used for ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Mister Paul

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...

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Mister Paul

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...

GJC Web Design

#5
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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Mister Paul

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...

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Mister Paul


Mister Paul

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