Loading...

How to remove shipping countries from the checkout page in BigCommerce (part 2)

Daniel C. Published on 03 October, 2011

BigCommerce features an extensive shipping system, but it lacks the ability to remove shipping countries from the drop down if you do not ship there. This post will show you how to remove the unwanted shipping countries in the countries dropdown on the checkout page. Just copy-paste the following code to the footer.html template file.


<script type="text/javascript">//<![CDATA[
var countries = new Array("United States","Romania","France","Germany");

var i = 0; var lng = countries.length;

$('.ExpressCheckoutContent').ajaxSuccess(function(){ for(i = 0; i < lng; i++)

{ $('#FormField_11 option').each(function(){ if($(this).text().search(countries[i]) >= 0)

{$(this).remove();}; }); } }) //]]></script>


This script only works for single page checkout!

Daniel C. Published on 03 October, 2011