Skip to content

Instantly share code, notes, and snippets.

public static string NormalizePostcode(string postcode)
{
//removes end and start spaces
postcode = postcode.Trim();
//removes in middle spaces
postcode = postcode.Replace(" ", "");
switch (postcode.Length) {
//add space after 2 characters if length is 5
case 5: temp_postcode = temp_postcode.Insert(2, " "); break;
@naveed-ahmad-biz
naveed-ahmad-biz / PLAY! Shop Product Feed - Sample
Last active July 30, 2023 11:00
PLAY! Shop Product Feed - Sample
"Items": [
{
"PriceSchedule": {
"OwnerID": "cbca442c-6fbe-47db-af35-9351b029b437",
"ID": "PSPOTG10CSWSB",
"Name": "10-Club Set With a Stand Bag",
"ApplyTax": false,
"ApplyShipping": false,
"MinQuantity": 1,
"MaxQuantity": null,