How can I create a regional selection custom page?

Hi all,

I need to create a custom page. while searching for xyz.com, customer should get a page to select their region. like USA, Australia, UAE. and if the customer clicks USA the page should redirect to another URL. same for Australia it should go to xyz.au, xyz.ae like that. How can i make such page with all changes.

Thank you

Hello. You mean that US customers should be redirect to US site, and the clients from AU should be gone to AU site?

Always backup themes and files before making changes.

Either make an alternate search template and make sure all search boxes go to that view.

Or just duplicate the current search template to a backup and customize it do display the following instead of normal search results by commenting out the bulk of the search template, or some other UI affordance.

Then just slap in the links in place of the normal content.

siteA.com

siteB.com

Some themes also have a modal section you can put such content into.

If you need to pass the search term you will need to build that from the search object as there is no object giving the current url with url parameters.

https://shopify.dev/api/liquid/objects/search

Without better details that’s the rudimentary approach , goodluck.

yes