Skip Navigation

[Resolved] how to generate paramerter value from user custom field

This support ticket is created 3 years, 9 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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: Africa/Casablanca (GMT+01:00)

This topic contains 28 replies, has 3 voices.

Last updated by Jamal 3 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#1740647

I keep getting wrong username and password. difference is only first letter Cap, right?

#1741137

I have been trying to migrate with information you provided. BlogValut keeps giving me error.

"An error occurred with the connection to the destination server. Please retry after sometime."

Are you certain the information you provided is correct?

#1741741

Minesh
Supporter

Languages: English (English )

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

Jamal is on Vacation now and I'm back from vacation and I will continue to assist you.

I checked directly on your site and with the following view I've made the changes for price and list _id field:
=> hidden link

Can you please confirm now you get the price and list_ID values as expected.

#1742425

Thank you for reply and update the code changes.

The behavior seems to be changed. Now it is showing the ID of current post.
Unfortunately no. it is not working as I expected.

The list_ID is supposed to display the id of corresponding Child(Restricted Listing) ID.
I need this to pass the ID to Gravity form and WP fusion logic so, it gives access permission to the user for restricted listing version of Public listing.

#1742705

Minesh
Supporter

Languages: English (English )

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

So, for instance, if we consider the following post:
=> hidden link
- The price attribute should be assigned with value 550,000 and and list_id attribute should be assigned the value 9816 ( where 9816 is the related list post ID)

And if we consider the following post : hidden link
- The price attribute should be assigned with value 198,000 and list_id attribute should be assigned the value 9926 ( where 9926 is the related list post ID).

Is this information is correct?

#1742709

That is correct.

#1742721

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

I've created the following view to fetch the correct related list ID and added the "Query filter":

Filter by post relationship or repeatable fields group owner
Select posts in a Listings listing Relations relationship that are related to the Post where this View is shown.

=> hidden link

And with your view where you construct the link with params:
=> hidden link
- I've adjusted the list_id param as:

&list_id=[wpv-view name="view-to-get-child-list-id"]

Can you please confirm it works as expected now.

#1743739

Thank you.

It's weird. Depending on the user level, the link_id displays the correct one or emtply value.

Do you know why?

#1743841

Minesh
Supporter

Languages: English (English )

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

I would like to know what you mean by user level - Do you use the following view on multiple places/pages (I mean on different levels)?
=> hidden link
- Are you using the above view on multiple levels if yes - that could be the issue, you may require to create new view for each level.

But first you need to give me information what levels you have and from where I can access each level with every level URL.

#1756345

Minesh
Supporter

Languages: English (English )

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

I'm not sure why you assigned this view to two post types: "Restricted listings" and "Public listings"
=> hidden link
- Within the "Loop Editior" section I can see that you have added many conditional display and within the conditionals you have added the another view per your user type.

Also, with the Query Filter section, you do not assigned any post relationship. And why you added nested view's within "Loop Editor" of this view.

It seems you misconfigured the whole view so I will require to correct it first. is there any specific reason you added view within the conditionals?

Regarding your additional questions, please open a new ticket with your every new question you may have or please allow me to first address this original issue and then later we will address your original issues.

#1759759

I wanted to do was this...
I have several conditions to make and try different conditions but didn't achieve until the code I have now.

There are two basic types of setting for a restricted business listing(where this view is displayed).
The author chooses (A)e-signature(document), or (B)manually upload document. AND (A) has to choose just NDA(N) or NDA + commission agreement(NC). ANd (B) also has the same variations.

Depending on these choices (A) or (B) and (N) or (NC), I need to show different link buttons to visitors (different roles )

If a visitor has no account( not logged in user), button links to login or signup window.

if a visitor is a customer or business_owner role, he can click the button to (A) +(N) or (B) +(N)
Because customer/busienss_owner don't need to access to commission agreement.

If a visitor is an agent role, he will see (A)+ (N), (A)+(NC), (B)+(N) or (B)+(NC)
Only agent role will see NC so, depending on the author's choice for N or NC, agent role visitor will see one of the 4 patterns

First I tried to set wrapping conditional tag like, If the user was an agent and logged in, then set another condition like if the author chose e-signature or manual upload. However, this approach didn't seem working. That's why I ended up the code I have now. At least, it is working the way I imagined.

If this was an issue, I would have appreciated if you guys brought it to my attention a lot sooner. I mean I tried to make it work as much as possible with your plugin but sometimes, certain things are hard to manipulate with the proper setup because I don't know.. I am not a specialist like you guys. I am just trying to figure out how to use your plugin and make the best out of it. Do you know what I mean? If it's not properly set it up, please show me how. Otherwise
"I will require to correct it" doesn't solve the issue here. You are leaving me here without an answer so I again need to figure things out on my own and ask another question, and wait till you answer and I fix it again......Please show me HOW.

#1760079

Minesh
Supporter

Languages: English (English )

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

So - lets try to fix this first.

What if you create a new content template and add the all conditional statements within that content template.

1) Create a new content template from here (dont assign this content template to any post type):
=> hidden link

2) From the following view, copy all the content which you added as conditional statements and paste it to the above content template.
=> hidden link

3) I see you are using elementor, so remove the view from your elementor template and add the shortcode module and within the shortcode module, add your content template you created. For example:

[wpv-post-body view_template="your-content-template-slug"]

Where:
- Replace "your-content-template-slug" with the content template slug you create.

Once you remove the view and instead add the content template - Do you see its working as expected?

#1764777

Thank you. Minesh,

I replaced the view with content template you suggest me to make. Thank you it is working.
However, the view to display child id somehow stoped working. Now I cannot display the id on the paramter.
This thread is getting complicated so I posted a new post to simplify my question.
https://toolset.com/forums/topic/i-cannot-display-childs-post-id-on-a-parent-post/

You can either answer here or there.

Thank you.

#1765031

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Minesh is on vacation and won't be available this week.
I have also seen that Luo has replied to your new ticket, please check his reply and reply back if you still need assistance.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.