{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "meta": {
    "title": "Afojet Currency Converter demo",
    "description": "WooCommerce shop in USD with EUR, GBP and INR, a floating currency switcher and sample products.",
    "author": "afojet",
    "categories": [
      "WooCommerce"
    ]
  },
  "landingPage": "/?post_type=product",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "features": {
    "networking": true
  },
  "login": true,
  "steps": [
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "woocommerce"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "afojet-currency-converter"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire '/wordpress/wp-load.php';\nupdate_option( 'woocommerce_currency', 'USD' );\nupdate_option( 'woocommerce_coming_soon', 'no' );\nupdate_option( 'woocommerce_onboarding_profile', array( 'skipped' => true ) );\nupdate_option( 'woocommerce_task_list_hidden', 'yes' );\nupdate_option( 'afojcc_settings', array(\n\t'currencies'        => array(\n\t\tarray( 'code' => 'EUR', 'manual_rate' => '0.92', 'decimals' => '2' ),\n\t\tarray( 'code' => 'GBP', 'manual_rate' => '0.79', 'decimals' => '2' ),\n\t\tarray( 'code' => 'INR', 'manual_rate' => '83.5', 'decimals' => '0' ),\n\t),\n\t'switcher_style'    => 'dropdown',\n\t'switcher_label'    => 'code_symbol',\n\t'floating'          => 1,\n\t'floating_position' => 'bottom-right',\n\t'show_on_product'   => 1,\n\t'checkout_mode'     => 'customer',\n\t'remember_days'     => 30,\n) );\n$products = array( array( 'Coffee Mug', '12' ), array( 'Cotton T-Shirt', '25' ), array( 'Canvas Backpack', '49' ) );\nforeach ( $products as $p ) {\n\t$product = new WC_Product_Simple();\n\t$product->set_name( $p[0] );\n\t$product->set_regular_price( $p[1] );\n\t$product->set_status( 'publish' );\n\t$product->save();\n}\n"
    }
  ]
}