Skip Navigation

[Resolved] view logical condition

This support ticket is created 6 years, 2 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 3 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1180020
Capture d’écran 2019-01-08 à 13.57.32.png
Capture d’écran 2019-01-08 à 13.57.37.png
Capture d’écran 2019-01-08 à 13.44.44.png

Hello
I use toolset type and view to create a French real estate site in which I have to integrate a price grid. I used the repetable fields to realize it and I am confronting a difficulty. For some project I have to display the length of facade of a plot to build and for others not. I used the conditional logic in type and it works against in view I would like information to appear only if they contain elements, the column appears even when it does not contain data. I am enclosing the rendering and code captures I used.
Thanks for your help
and happy New Year.
Harold

#1180053

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - based on the screenshot you shared, I can see that you do not have closed the conditional statement properly.

What if you try to close each conditional statement using [/wpv-conditional].

For example:

[wpv-conditional if="( $(wpcf-budget) lt '50' )" ] 

Your output 

[/wpv-conditional]

More info:
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

#1180099
Capture d’écran 2019-01-08 à 16.07.13.png
Capture d’écran 2019-01-08 à 16.07.18.png

thank you for your reply
I modify the code and closed the tag, however the column always appears when there is no data, while in this case I wish it does not display.
I am enclosing the modified code

#1180108

Minesh
Supporter

Languages: English (English )

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

Well - to be able to guide you in the correct direction, I need problem URL where you are displaying the view as well as access details so I can check whats going wrong there.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#1180135

okay
I give you access later, time to make backups
Can I continue to talk about the creation of the site the time of your intervention? the site is under development on a test server I do not have a production server at the moment.

#1180636

Minesh
Supporter

Languages: English (English )

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

I only need your test site and while you give me access, I prefer you should not work on test site, I think it will hardly take a couple of hours maximum to fix your issue.

Do not forget to share problem URL 🙂

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

#1185806
Capture d’écran 2019-01-17 à 11.17.36.png

Hello
Sorry to reply so late but these last days were well filled. I ended up finding the origin of the problem through the link indicate in your answer. I did not do things properly. Actually now I can hide a column.
Nevertheless I have a problem of posting:
when the column is hidden like this: hidden link
the display is done correctly
and when all the header columns are displayed, the information is shifted as on this page hidden link
The header of the table is good but the information in the table is erected. In fact, the vat column should display prices and the availability column will show availability. And it does not work.

Finally would it be possible to make a column grouping as in the attached image?

If necessary, I can give you access to the site.

Thanks for your help .

#1186587

Hello,

Minesh isn't available, I will take care of this thread, please provide your website credentials in below private message box, I can check it in your website, thanks

#1198381

Hi
Sorry to come back to you late but these last few weeks have been very busy. For now I can find an alternative solution with a plugin dedicated to datatable.
I will continue my research and will come back to you if it does not work.
Thanks for your hel

Regards

Harold

#1198412

Dear Harold,

Please update this thread if you still need assistance for it, thanks