Skip to main content

Staging Environment

The Dealers Site has a dedicated staging environment on WP Engine for QA and pre-production testing.


Staging URL

The staging URL is provided in the WP Engine portal. It typically follows the pattern:

https://dealersscottsdale.wpengine.com

(Or a custom staging domain if configured.)


Creating a Staging Environment

From the WP Engine portal:

  1. Navigate to the dealersscottsdale production site.
  2. Click Staging → Add Staging Environment.
  3. Click Copy Production to Staging to populate staging with a fresh copy of production data.

Syncing Environments

Production → Staging

Use when you need a fresh copy of production data for testing:

  1. WP Engine portal → Staging → Copy Production to Staging
caution

Any existing staging content will be overwritten.

Staging → Production (Deploy)

Use when you're satisfied staging changes are ready for release:

  1. WP Engine portal → Staging → Push to Production

Always create a production backup before pushing staging to production.


URL Differences Between Environments

When copying production to staging, WP Engine automatically handles URL replacement (scottsdalemint.comwpengine.com staging URL) in the database using its Search & Replace tool.

The Suma Elementor WooCommerce\ShipStation class detects the environment by checking if the current URL contains wpengine or scottsdale.cc and uses the appropriate ShipStation store ID:

if ( strpos( $actual_link, 'wpengine' ) !== false || strpos( $actual_link, 'scottsdale.cc' ) !== false ) {
$data['storeId'] = 80276; // Production
} else {
$data['storeId'] = 66519; // Staging
}

Staging-Specific Configuration

Some integrations should use test/sandbox credentials on staging:

IntegrationStaging Action
ShipStationUses store ID 66519 (staging store)
KlaviyoUse a separate test list to avoid emailing real dealers
AlgoliaCan share the same index or use a separate _staging index
Gravity FormsDisable live email notifications; route to admin-only test address