Hello everyone!
I need to build a product marketplace where sellers have a custom link for their listings.
My goal is for each user to have their own unique store link, formatted as:
MyWebsite. com /7224221234
where the 7224221234 part of the URL is their phone number.
I’m wondering if this is possible without having to manually create a separate page for each user. Is there an automated or dynamic way to achieve this? Any insights or suggestions would be greatly appreciated!
Thanks in advance!
Hi,
What database are you using?
Planning to use airtable, but any other alternative is also considered.
Using Airtable you would need to rely on a formula field, in the users table, concatenating a phone number field (your user’s phone) and mywebsite .com/the-page-you-want?p (not “/”). ?p
being a url parameter related to the phone number.
Then in Softr you would have your dedicated page with an item details block with this conditional filtering: url parameter ?p = logged in user phone number.
Not super hard to do I think.
Here is the needed formula field, assuming, for example, that the phone number field is named “phone_field”
"https://mywebsite.com/page-you-want?p=" & {phone_field}
If you really want the “/” formatted way you would need this formula:
"https://mywebsite.com/page-you-want/?p=" & {phone_field}
In Softr there should be an item-details block related to the user owning the list (though it can be different according to your exact use case).
Then you add a condition based on the url parameter ?p
This is the only way I can see. I just tested it – it works.
Also, careful to format the phone number like a plain numeric string – no + or parenthesis or whatever – it would complexify everything.
If needed you can use an intermediate formula field to format the phone number first then use the result of this intermediate formula field in the final formula (the one above).
Thanks for your prompt reply!
Your suggested solution would work well for logged-in users to manage their listings—creating, editing, deleting, etc.—which is fairly simple to set up in Softr.
However, in my case, I want non-logged-in users (potential customers) to be able to open a seller’s profile or search for it using a phone number. At the same time, they should not have access to other sellers’ listings unless they enter the exact phone number of a specific seller.
This is necessary for competition and privacy reasons, ensuring that a seller’s profile and products are only visible if the non-logged-in user knows their exact phone number.
Guest User Journey:
The user navigates to a URL formatted as Mydomain.com/PhoneNumber or enters a phone number on the landing page.
Only when all 10 digits of the phone number are entered can the search be triggered.
If the number matches a registered seller, their profile and product listings become accessible.
Would love to hear if this is feasible or if there’s an efficient way to implement this. Thanks!
It does work for non logged in users.
When a non logged in user clicks on https://mywebsite .com/page-you-want?p=0102030405 => they.
If there is a specific user journey now, that’s another thing but it works for non logged in users.
If they type a phone number that doesn’t exist in your database => it won’t show anything (you just need to set up the item details to be hidden or to display a message).
An example here: Non Logged In Url Param Listing
You are not logged in yet you can access a dedicated page that matches the listing belonging to a certain user according to their phone number (in the url params).
The only way to perform what you want is using Url params.