PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, May 10, 2022

[FIXED] How to set UK only products in BigCommerce for UK based store?

 May 10, 2022     bigcommerce, content-management-system, e-commerce, product, theming     No comments   

Issue

I am currently working on a UK based BigCommerce store and would like the option of setting products to only be available for sale in the UK, is this possible out of the box?

If not, has anyone managed to successfully do this through Theme Customisation?

I am currently using the Cornerstone Light theme, ideally I would like to include a 'UK Only' checkbox on the 'Add Product' page.

Any help on this would be greatly appreciated.

Thanks


Solution

Controlling product visibility by country isn't a feature that's available out of the box, but this is something you can customize.

We're in the process of deploying a new {{settings.country_code}} property to the Stencil page context that would help you build out that kind of conditional logic. The country_code property outputs the country code of the shopper, according to the BigCommerce GeoIP service. So you could do:

{{#if settings.country_code '===' 'GB'}}

//do something - show the product, etc.

{{/if}}

This change has already rolled out to some stores, and should be available on all stores within the next few days, so keep an eye on our changelog for that announcement.



Answered By - Karen White
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing