This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CountryToCode | |
{ | |
Dictionary<string, string> allCountries = new Dictionary<string, string> | |
{ | |
{ "BD", "Bangladesh" }, | |
{ "BE", "Belgium"}, | |
{ "BF", "Burkina Faso"}, | |
{ "BG", "Bulgaria"}, | |
{ "BA", "Bosnia and Herzegovina"}, | |
{ "BB", "Barbados"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready(function() { | |
var fixmeTop = 100; // get initial position of the element | |
jQuery(window).scroll(function() { // assign scroll event listener | |
var distanceBottom = jQuery(document).height() - (jQuery(document).scrollTop() + jQuery(window).height()); | |
var currentScroll = jQuery(window).scrollTop(); // get current position | |
if (currentScroll >= fixmeTop && distanceBottom > 540) { // apply position: fixed if you | |
jQuery('#secondary').css({ // scroll to that element or below it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var countries = [ | |
{ key: "BD", value: "Bangladesh" }, | |
{ key: "BE", value: "Belgium" }, | |
{ key: "BF", value: "Burkina Faso" }, | |
{ key: "BG", value: "Bulgaria" }, | |
{ key: "BA", value: "Bosnia and Herzegovina" }, | |
{ key: "BB", value: "Barbados" }, | |
{ key: "WF", value: "Wallis and Futuna" }, | |
{ key: "BL", value: "Saint Barthelemy" }, | |
{ key: "BM", value: "Bermuda" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abrantes | |
Águeda | |
Aguiar da Beira | |
Alandroal | |
Albergaria-a-Velha | |
Albufeira | |
Alcácer do Sal | |
Alcanena | |
Alcobaça | |
Alcochete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add the following content to functions.php | |
function filter_woocommerce_registration_auth_new_customer( $true, $newWserId ) { | |
$roles = get_userdata( $newWserId )->roles; | |
if ( !in_array( 'customer', $roles )) { | |
return false; | |
} | |
return $true; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const LIST_COUNTRIES: string[] = ["Bangladesh", "Belgium", "Burkina Faso", "Bulgaria", "Bosnia and Herzegovina", "Barbados", "Wallis and Futuna", "Saint Barthelemy", "Bermuda", "Brunei", "Bolivia", "Bahrain", "Burundi", "Benin", "Bhutan", "Jamaica", "Bouvet Island", "Botswana", "Samoa", "Bonaire, Saint Eustatius and Saba ", "Brazil", "Bahamas", "Jersey", "Belarus", "Belize", "Russia", "Rwanda", "Serbia", "East Timor", "Reunion", "Turkmenistan", "Tajikistan", "Romania", "Tokelau", "Guinea-Bissau", "Guam", "Guatemala", "South Georgia and the South Sandwich Islands", "Greece", "Equatorial Guinea", "Guadeloupe", "Japan", "Guyana", "Guernsey", "French Guiana", "Georgia", "Grenada", "United Kingdom", "Gabon", "El Salvador", "Guinea", "Gambia", "Greenland", "Gibraltar", "Ghana", "Oman", "Tunisia", "Jordan", "Croatia", "Haiti", "Hungary", "Hong Kong", "Honduras", "Heard Island and McDonald Islands", "Venezuela", "Puerto Rico", "Palestinian Territory", "Palau", "Portugal", "Svalbard and Jan Mayen", "Paraguay", |