• Hello,

    I hope everybody is fine.
    So basically, I am stuck somewhere and need a bit of guidance.
    I am setting up a woo-commerce store for two different countries UK and US.
    So i have products that I sell in UK and US. But I have a campaign that is gonna run for US only from time to time.

    I am not sure how to work around that. Can I do that with one wordpress installation or will I have to create two different sites (multisite).
    Its like when a person will visit site from US, he will see certain products that UK people wont see. Also, obviously I have a main banner (slider) at home page and I want that to change when person is visiting from US, otherwise my usual standard banner.
    Whats the best way to do this?

    I am really stuck here.
    I was thinking to do US site in different subdomain, but then I think that 70% of the products will be universal anyway, for that 30% I’ll have to so more work and add same products to two sites. That’d cause duplication and obviously there will be two user databases.

    But then if I do it on one site, other customers will see products that we cant ship to them if they are not from US.

    There are so many angles, I just cant get my head around.

    Please let me know what would be the best way to do this?
    Is sub-domain tactic is better or multisite or just use a hide product plugin?
    Is there any way to hide a whole category and selected products country wise.
    If there is then, how I will deal with having 2 different main sliders for two different countries on homepage?

    Any idea, suggestions and help is appreciated. Really stuck here. Would appreciate your kind input.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello there confused guy!
    Here is a probable solution, you could use two different sites to host your products for US and UK. Else, you could also make a new folder and could place your 30% of your products in UK folder.
    But it all depends on using of Href lang tag properly.

    So, do lemme know if I did mentored you properly.

    You might want to contact Yazlo for international website problems

    • This reply was modified 4 years, 1 month ago by sufi96. Reason: had a new recommendation
    Moderator bcworkz

    (@bcworkz)

    You can have different subdomains lead to the same site, then have the site conditionally do different things accordingly. For example, if the subdomain is “us” query for products tagged “us” or “all”. If it’s “uk” query for products tagged “uk” and “all”.

    Instead of subdomains, you could use URL elements like example.info/uk/products/, etc. By using conditionals, you avoid having redundant data brought on by having two sites with common elements. The drawback is for every bit of the site which is unique to one or the other, you’d need to code conditionals for each item. But then for common elements, you don’t have to do it twice, once for each site. One thing covers both.

    Thread Starter umairrockx

    (@umairrockx)

    Hi,

    Thank you for your replies.
    I quite like the idea of having URL elements to separate both products.
    However, my question is that how I will hide for example a US product from the UK audience.
    Also, at the main homepage, is there any plugin that can show certain content to certain country? Like I want a different slider for US audience than UK audience.

    let me know,
    appreciate your help.

    sincere regards

    Moderator bcworkz

    (@bcworkz)

    To utilize URL elements, you need to add rewrite rules so the element can be made into a query var. Then you can use the value to alter how product queries work, as well as use it on templates to conditionally do one thing or another. For example:

    if ('uk' == get_query_var('country') {
       // code to show UK slider goes here
    } else {
       // code to show USA slider to any non-UK requests
    }

    Another way to distinguish countries would be as an URL query string, as in example.info/products/?country=uk. Instead of needing rewrite rules, the value is directly available as $_REQUEST['country']

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set up wordpress woocommerce for two different countries’ is closed to new replies.