Author Topic: [SOLVED in 2.0.25e]Sort by fields problem with product name in VM.2.0.24b  (Read 3480 times)

MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Hi,
VM BE 'default product sort order' settings: Product name: ascending
Available Sort-by fields : Product Name and  Product Price

In the VM front end category view defualt sort by Product name works fine (when it's show up as a default I can change the ascending and descending ordering and it works as it should). When I change to Product Price it also works, but when I try to come back to (I choose the option) sort by Product name, the feature doesn't work.
So when I sort by price the url is following
'my product category name'/by,product_price?language=en-GB&filter_product=
When I go to sort by name
'my product category name'?language=en-GB&filter_product=
Joomla 2.5.16
Please help.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9828
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #1 on: November 22, 2013, 12:14:20 pm »
Found, thx. Seems we have todo a C version
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #2 on: November 22, 2013, 19:42:43 pm »
Updated to C and similar problem with the ordering :-[. When we try to come back to sort by 'product name' the feature becomes default, it shows up in the field 'sort by' but it still doesn't work. The url is following
'category_name'?language=en-GB&filter_product=
when you again click on 'product name' we have:
'category_name'/orderDesc?language=en-GB&filter_product=
Should not be something like this 'by,p.product_name' in the url?

michelming

  • Beginner
  • *
  • Posts: 16
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #3 on: November 23, 2013, 02:20:55 am »
Hi,
VM BE 'default product sort order' settings: Product name: ascending
Available Sort-by fields : Product Name and  Product Price

In the VM front end category view defualt sort by Product name works fine (when it's show up as a default I can change the ascending and descending ordering and it works as it should). When I change to Product Price it also works, but when I try to come back to (I choose the option) sort by Product name, the feature doesn't work.
So when I sort by price the url is following
'my product category name'/by,product_price?language=en-GB&filter_product=
When I go to sort by name
'my product category name'?language=en-GB&filter_product=
Joomla 2.5.16
Please help.

After testing, I have the same problem

MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #4 on: November 24, 2013, 17:19:35 pm »
Has the problem been recognized as solved after C version released?  michelming did you try the new version? Did it solve your problem? For me it doesn't work.
Quote
When we try to come back to sort by 'product name' the feature becomes default, it shows up in the field 'sort by' but it still doesn't work. The url is following
'category_name'?language=en-GB&filter_product=
when you again click on 'product name' we have:
'category_name'/orderDesc?language=en-GB&filter_product=
Should not be something like this 'by,p.product_name' in the url?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9828
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #5 on: November 24, 2013, 19:27:40 pm »
Did you store your vm config? I had to recheck the product name, then it worked.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #6 on: November 24, 2013, 20:30:03 pm »
Yes, I stored it as you wrote in VM live update information "Just go in the vm config to the ordering settings, choose product name and store it one time". Ok, probably I managed to discover what is wrong. So when 'Default product sort order' is set to product name the feature still doesn't work. When I change it to 'Creation date' for example it works as it should. Could you please check it?

michelming

  • Beginner
  • *
  • Posts: 16
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #7 on: November 25, 2013, 01:50:05 am »
Has the problem been recognized as solved after C version released?  michelming did you try the new version? Did it solve your problem? For me it doesn't work.
Quote
When we try to come back to sort by 'product name' the feature becomes default, it shows up in the field 'sort by' but it still doesn't work. The url is following
'category_name'?language=en-GB&filter_product=
when you again click on 'product name' we have:
'category_name'/orderDesc?language=en-GB&filter_product=
Should not be something like this 'by,p.product_name' in the url?

Yes, I have upgraded to 24c, I repeatedly set a different default sort, but they are not working correctly in FE

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9828
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #8 on: November 25, 2013, 18:42:42 pm »
This is a new C version. ONLY for UPDATERS!

http://dev.virtuemart.net/attachments/download/659/com_virtuemart.2.0.24c.Updater.tar.gz

I had to change the model and the router again. sry. Please test.

- if the default ordering is used,
- if the default  ordering direction is used

in case of default, there shouldnt be any options in the URL, they should be only shown if you are not using standard.

Check also if the search is still working for you.
At best without SEF, with SEF and one time with URL rewrite.

Thank you
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #9 on: November 25, 2013, 21:00:49 pm »
Quote
- if the default ordering is used,
- if the default  ordering direction is used
It's ok for me. Default ordering and it's directions work properly.
Quote
Check also if the search is still working for you.
without SEF - ok, with SEF -ok  and one time with URL rewrite- ok.
Quote
in case of default, there shouldnt be any options in the URL, they should be only shown if you are not using standard.
That's right.
Sorry if I unnecessarily repeat this (maybe the new C file is only preparation for new release) but for me the problem hasn't gone. When we, ( in VM FE) after change to one of available 'sort by fields' ( 'product price' e.g.), try to come back to the DEFAULT sort by 'product name' the feature doesn't work - it seems that the ordering is random. The url is following
'category_name'?language=en-GB&filter_product=

michelming

  • Beginner
  • *
  • Posts: 16
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #10 on: November 26, 2013, 04:08:53 am »
Yes, the problem still exists.
Now I return to 24c.
But I tried, I chose Available Sort-by fields as 'product name', 'product price' and 'ordering', and Default product sort order Choose 'Product id' in BE, you can work in FE

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9828
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #11 on: November 26, 2013, 14:03:42 pm »
Thank you MarioP for pointing that out and explaining.

Please try the attached product model, copy to /administrator/.../com_virtuemart/models

[attachment cleanup by admin]
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

michelming

  • Beginner
  • *
  • Posts: 16
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #12 on: November 26, 2013, 14:46:24 pm »
Thank you Milbo

Now do not update to the new C version, just replace the attached product model, sorting tested, correct


MarioP

  • Jr. Member
  • **
  • Posts: 173
  • VirtueMart Version: 3.0.18, J! 3.6.5
Re: Sort by fields problem with product name in VM.2.0.24b
« Reply #13 on: November 26, 2013, 15:02:05 pm »
Of course it works :) Thanks Milbo.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9828
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED]Sort by fields problem with product name in VM.2.0.24b
« Reply #14 on: November 26, 2013, 16:27:14 pm »
in fact you should update AND use the new model, But we do a D no :-( grmblfix. You wont believe it, but the ordering was tested by different users. But testing all possibilities is not easy and to understand the small differences.
Also the reason I wrote down what to test, because the simple "it does not work" means just for me,.. "oh,... seems there is some case you miss, but which one", the last post of MarioP explained me the last problem.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/