Remove permalink structure update, as it has been deprecated.
Add new 'wpsc_display_products_page' action for other plugins to do things conditionally based on display type.  Important for Gold Cart to handle grid view enqueuing.
When there are no products in a category being displayed by a shortcode, we get undefined errors due to ->post being null.  This resolves that.
Save region id in checkout forms table instead of state name
Prior to release 3.8.14 the billingstate and shippingstate checkout items were stored differently depending on if the billingcountry and shippingcountry values contained countries that used regions.

When countries with regions were present, the billing state field was set to the numeric region id, rather than the string name of the region.  A better long term solution may be to have a distinct checkout item to hold the billingregion or shippingregion code when such a code is available.

For this release (3.8.14) the historical behaviour will be preserved.
Merge pull request #1188 from JeffPyeBrook/pr-1186-save-region-id-not-state-name

Save region id in checkout forms table instead of state name
Flush object cache between upgrade routines.