Towns Served/Delivery Area

⌘K
  1. Home
  2. Docs
  3. Towns Served/Delivery Area

Towns Served/Delivery Area

The website has a list of towns served, with links to their SEO pages, that appears in 30 places: the home page, the Flower Delivery in Massachusetts page (/flower-delivery-in-massachusetts/) and the page for each of the 28 towns that are listed as of today (May 2022) as being available for delivery.

As we recently made some changes to the delivery area, and might do that again in the future, it seems time consuming to have update the list 30 times any time something changes. So, I created a “short code” that will pull the list from a central place, and embedded it in 29 of the pages. So now, when a town needs to be added or removed, the change will only have to be made in 2 places:

  • The new private page containing the list: /areas-served-list/, which the short code will reference when other pages need to display the list
  • The Flower Delivery in Massachusetts page: /flower-delivery-in-massachusetts/, only because the list appears in 3 columns there in the page builder

If a town is being removed, in addition to deleting the page for that town, a redirect should be added (in the Admin under Tools, Redirection) that sends anyone trying to reach page for the town we no longer deliver to, to the main Flower Delivery in Massachusetts page.

Also, it is important to update the lists of zip codes in the delivery zones (in the Admin under WooCommerce, Settings, Shipping, Shipping Zones), since those zips are what actually control what the site will allow for delivery during checkout.

May 28, 2022