Skip Navigation

[Resolved] I have defined fields if when it is sold or rented that you can no longer click

This support ticket is created 4 years, 5 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by jetmirA 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1773355

Good day everybody

I have defined fields if when it is sold or rented that you can no longer click on how do I solve this problem?

Thank you in advance and have a wonderful weekend!

Jetmir

#1773589

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jetmir,

Thank you for getting in touch.

Essentially you want your post to not be editable if the item is sold or rented. Can you provide a little bit more information on this ?

As where you editing the post, is it on the frontend or backend and how is a post marked as sold or rented.

Thanks,
Shane

#1773615

Hi Shane

so it is in the background as soon as I click sold it is marked with a text overlay with red mark and read sold marked the same as sold when sold or brokered it should no longer be clickable

hidden link

Thanks Jetmir

#1773623

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jetmir,

So essentially you want to remove the link from the sold items.

Are you building this with Blocks or views. Also is it a custom field that is used to mark the item as sold ?

I need to know how the fields are being marked as sold.
Thanks,
Shane

#1773629
2020-09-11_20-42-21.jpg

Hi Shane

i do this with toolset plugin but it's too complicated for me

I would be happy if you take a look you understand the structure

Thanks

Jetmir

#1773641

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jetmir,

I've modified this for you.

Your users should no longer be able to click to the posts that are Rented or Sold.

Please let me know if this helps.
Thanks,
Shane

#1773647

Hello Shane

unfortunately I can still click

Thanks

Jetmir

#1773675

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jetmir,

I set it to a blank link, you will notice that if the user clicks it goes nowhere.
What you will need to do is to restructure your template for the view if you really want a no clicking icon to show up.
hidden link

Currently when I remove it, it interfere's with your styling, however you will see where i've added the conditionals to ensure the user can't click to go to the post page itself.

Thanks,
Shane

#1773679

Hi Shane

Unfortunately, I don't understand it, I don't find anything suitable. If an immibilie is sold(Verkauft) or brokered(Vermitet), nobody should be able to go in anymore

Thanks

Jetmir

#1773681

My issue is resolved now. Thank you!