Skip Navigation

[Resolved] Sort Boxes are showing wrong text until user clicks on one of the boxes.

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 18 replies, has 2 voices.

Last updated by Minesh 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1807681
Showing wrong text within label.jpg
Showing Sorting labels .jpg
Showing correct text within label.jpg.jpg

Tell us what you are trying to do?
Could be a bug. Sort Boxes are showing wrong text until user clicks on one of the boxes. Please look into.
Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1808669

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you have added two sorting field Price and price score, do you want both? If yes:
- Have you changed the sorting direction lables for price score field?

#1808685

Hi Minesh

I'm just using a new new field ToolSet Types 'TS Price', as something went wrong with the Advanced Custom field 'Price Score'.

Is that a reason the sorting boxes are corrupting? As you can see its wrong when the page is launched burt as soon as you click on 'Price' it changes to the correct label.

You can see form the image above that I have input the sorting information correctly, unless you can see something i'm not.

#1809175
Still showing 'field-price_score'.jpg

I've removed all use of 'Price Score' on this page - so it should not be showing this on the label (see image)
As soon as you click on 'field price box' and select 'Price' the 'field price score' disappears. Whats going on?
Please help to fix this bug. I look forward to seeing your thoughts and hopefully a solution.

Thank you

#1811007

Minesh Please get back to me on this. Client is on my case.
If you are busy can you please pass this on.
Thank you

#1811039

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Daniel,

I'm on it now but I will require access details.

Can you please confirm what sorting control field you want to keep, is it only Price field or you want to add another sorting field as well.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1811061
Screen Shot - this.jpg

this is exactly what it need too look like.

#1811241

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Daniel,

The admin access details are not working at this end. However, I grab the admin access details from the previous ticket.

It seems that the issue is related to the date field is added automatically which we removed using JS and that is why you do not see the correct orderby option.

For now, as a workaround, I've adjusted the JS code to your view as given under:

jQuery(document).ready(function($){
  
$('select[name="wpv_sort_orderby"] option[value="post_date"]').remove();
$('select[name="wpv_sort_orderby"] option[value="field-price_score"]').remove();
                
  $('select[name="wpv_sort_order"] option[value="asc"]').text("Low to High");
  $('select[name="wpv_sort_order"] option[value="desc"]').text("High to Low");
  
});

I'm adding a not to our internal ticket to also verify the orderby options text is displayed as correctly or not.

#1811397

Minesh All the ordering has gone wrong now. The highest property is now on the second page for instance.
Can you please fix it as this is extremely urgent. My client is been on my case for weeks and needs to start loading properties.
This is the problem I had all last week which I managed to fix.

#1811401

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please confirm that the field I've set for sorting is the correct one?

Also, I do not understand, in the Ordering section of the block view, you set the field "price_score" and the sorting is set to field TS price. Is the both settings are correct?

#1811409

I don't understand why we can't have the functionality of one Sorting box with a dropdown of High to Low & Low to High with a label next to it saying Price. Why do we need java Script to allow this??
Its clearly messing up the functionality of ordering the properties with this Script in place.

My client dosent want 2 drop down boxes - Price & Post date, High to low & Low to High.

#1811411

Ive just read your reply.
All ordering and sorting should be based on 'TS price' not 'Price score'

#1811425

Minesh please show me where you see 'price score' in the ordering section of Block view.
I can't see this. I only see 'TS price' which should be correct. So if you see somewhere using 'Price score' ordering please screen shot it so I can change it.

#1811447

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Daniel,

I don't understand why we can't have the functionality of one Sorting box with a dropdown of High to Low & Low to High with a label next to it saying Price. Why do we need java Script to allow this??
Its clearly messing up the functionality of ordering the properties with this Script in place.

My client dosent want 2 drop down boxes - Price & Post date, High to low & Low to High.
==>
I already informed you about that currently there is no such feature available using which you can have only one dropdown for sorting controls.

Based on your request we already filed a feature request in front of our Devs for assessment, if it will get approved, the feature will be added in near future. This is totally depends on predefined priorities of our Devs task. There is no ETA on it.

You must have changed the order of your view, i've set the ordering section of your view to TS Price field and I can see its working as expected.

#1811455

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ordering setting is here: hidden link

I already changed it.