Personalized checkout and custom promotions with Shopify Scripts
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 @wiredcampers ,
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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024