Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Looking for custom code, to hide certain products when the customer does not live/browse from the UK (and to be easily added in the future to other products), viewed the following article but essentially need it in reverse? -
uniquely tagged do_not_sell_to_UK,
I know there are apps available, but they can affect SEO performance which we do not want to happen,
Hi @wcdes12 ,
You can create metafield for the same and get the user's current country name using the script given below URL.
The same can be achieved by the liquid code provided below
{{ localization.country.iso_code }}
You can add style="display:none" attribute on products listing liquid files.
Like collection-product-grid and featured-product, there could be more liquid files.
Hope it will help
Thank for the information, but unfortunately adding codes isn’t really what I know. Do you offer services to help setup?