VM manual ordering of categories stopped to work after update to 2.0.24a.

Started by MarioP, November 15, 2013, 16:33:33 PM

Previous topic - Next topic

Milbo

Quote from: Madde on June 23, 2014, 09:20:36 AM
There seems to still be some kind of problem on the product ordering.

My client wants the products to be sorted as Product Order, but now and then the system goes to the alphabetical ordering. We never know when this will happen.
It works in general. The bug described here says that it does not work for sublevels. I was not able to reproduce it yet.

Quote from: Madde on June 23, 2014, 09:20:36 AM
Joomla 2.5.19
VM 2.6.0
You should update your joomla, vm core and vm aio!

Quote from: Madde on June 23, 2014, 09:20:36 AM
Also the Display Stock Level now and then decides to "show" although we don't want it to show...

Is there a way to make the configuration remain as we want it?

This is your template. It works with the standard template.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Madde

QuoteThis is your template. It works with the standard template.

We use the standard template in backend. This is a problem on the VM configuration page in backend, not in frontend (but of course it is reflected in frontend). It seems that the system reverts to some default configuration.

There is a file "virtuemart_defaults.cfg-dist" in the administrator/components/com_virtuemart folder. Maybe the system occasionally fail to get the latest settings and instead reads this file?

We need the settings to remain, that's all.

Milbo

?

It is impossible to solve a problem if it is not properly described. We have so many orderings in Vm. and no it has nothing todo with this file.

So the ordering gets broken in the backend for sublevels?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Quote from: Milbo on June 23, 2014, 09:56:21 AM

Quote from: Madde on June 23, 2014, 09:20:36 AM
Also the Display Stock Level now and then decides to "show" although we don't want it to show...

Is there a way to make the configuration remain as we want it?

This is your template. It works with the standard template.

Quote from: Madde on June 23, 2014, 10:27:06 AM
We use the standard template in backend. This is a problem on the VM configuration page in backend, not in frontend (but of course it is reflected in frontend). It seems that the system reverts to some default configuration.

Yeh but in the Backend is no "display stock level".
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Madde

Sorry if I have not explained the problem properly.

We want the "Default product sort order" and the "Default category sort order " (in "Product Sort Order Settings", the tab "Product Order Settings" in backend, VM Configuration) to be set according to "Ordering". But occasionally the system changes this and then both products and categories are sorted according to "Product Name".

When this occurs, also the "Display stock level" is showing. We don't want it to show. (There is indeed a setting on the Shopfront tab in the VM Configuration.)

What might cause this problem?

Madde

You mean that it is the frontend template that changes the settings in VM configuration? How is this possible???

Milbo

Quote from: Madde on June 23, 2014, 12:16:41 PM
But occasionally the system changes this and then both products and categories are sorted according to "Product Name".

I am sorry, but you are the first person with having a problem like that. I doubt it is in the vm core. I think there is a completly different problem.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Madde

Thanks for your efforts.

Any clue on what the problem might be?

HauteSwan

I know what they were talking about.  I had my ordering set one way and it changed and changed the order a few times.  I am not sure why it did happen but I recognized what they were talking about.  It was random.  Maybe it reloaded an old cached page or something.

vantran

Quote from: RedJohn on June 03, 2014, 13:15:31 PM
it can be fix in mod_virtuemart_category.php

change


$categories = $categoryModel->getChildCategoryList($vendorId, $category_id);
to
$categories = $categoryModel->getChildCategoryList($vendorId, $category_id,'c.ordering');

and

$category->childs = $categoryModel->getChildCategoryList($vendorId, $category->virtuemart_category_id) ;
to
$category->childs = $categoryModel->getChildCategoryList($vendorId, $category->virtuemart_category_id,'c.ordering');

The override codes fix the category menu issue but can you show us how to fix the category layout?

Thanks

mromstoeck

Hi Milbo,

i am using Virtuemart Version 3.06. There are two problems in administrator/components/com_virtuemart/models/category.php:

  - in method getCategories _selectedOrdering is set to two items ($this->_selectedOrdering = 'c.ordering, l.`category_name`';)
  - in method getChildCategoryList _selectedOrdering is checkd for one item (if(!in_array($selectedOrdering, self::$_validOrderingFields)){)

Workaround: Set _selectedOrdering in method getCategories to one item ($this->_selectedOrdering = 'c.ordering').

Michael