Skip Navigation

[Resolved] Choose a pharmacy with the same name when registering as a consumer.

This support ticket is created 2 years, 11 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)

This topic contains 4 replies, has 2 voices.

Last updated by chelhwanS 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2268039

Tell us what you are trying to do?

I'm making a consumer registration form.
In this process, consumers designate pharmacies.

There are many pharmacies with the same name that require consumers to search and choose pharmacies.
The way to distinguish this is to show the address field of the pharmacy together.

It's consumer post type "customer" slug.
The pharmacy post type is "pharmacy", the pharmacy name is "post Title", and the address field of the pharmacy post is "address1".

What is the link to your site?
hidden link

#2268557

Shane
Supporter

Languages: English (English )

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

Hi Chelwan,

Thank you for getting in touch.

I'm not sure i understand what you're trying to achieve in its entirety.

Could you provide a bit more clarity on the issue at hand for me ?

Thanks,
Shane

#2270257
220119-2.png
220109-1.png

There are 23,000 pharmacies in the pharmacy database.

There are many pharmacies with the same name.
I can't distinguish it because I'm trying to connect it in the relationship form.

I think the name of the pharmacy is the same, but the sigungu field is different. I think we can connect if we show sigungu field together.

For now, I want to solve this problem.

I made a sample.

#2270465

Shane
Supporter

Languages: English (English )

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

Hi Chelwan,

I understand the issue now. You're saying that you want a way to distinguish the different pharmacies because they can share the same titles.

Unfortunately the best way to resolve this is to add some additional information to the pharmacy title when its being created such as a number or Unique identifier. How are the pharmacy posts created?

If they are created from the frontend then we can use a hook to modify the title and add a unique ID at the end of the title.

Please let me know.
Thanks
Shane

#2271991

I understood that it was difficult to show the fields of the post together.

I am currently adding and using content that can be distinguished from the pharmacy title. In this case, when making a list only with the name of the pharmacy, it often seems bad to users, so I asked for help.

Since it's hard, I'll slowly think of an alternative.

Thank you!