{
    "$schema": "https://playground.wordpress.net/blueprint-schema.json",
    "preferredVersions": {
      "php": "8.3",
      "wp": "latest"
    },
    "features": {
      "intl": true
    },
    "landingPage": "/wp-admin/post.php?post=58195&action=edit",
    "login": true,
    "steps": [
      {
        "step": "installPlugin",
        "pluginData": {
          "resource": "url",
          "url": "https://github-proxy.com/proxy/?repo=woocommerce/woocommerce&release=latest&asset=woocommerce.zip"
        }
      },
      {
        "step": "installPlugin",
        "pluginData": {
          "resource": "wordpress.org/plugins",
          "slug": "splendid-sales-booster"
        }
      },
      {
        "step": "writeFile",
        "path": "/wordpress/wp-content/mu-plugins/plugin.php",
        "data": "<?php /* Use pretty permalinks */ add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } ); /* Disable WC admin setup wizard */ add_filter( 'woocommerce_enable_setup_wizard', '__return_false' ); /* Do not open cross-sell item links in new tab */ add_filter( 'wcssb_open_item_links_in_new_tab', '__return_false' ); /* Display admin notice */ add_action( 'admin_notices', 'wcssb_demo_admin_notice' ); function wcssb_demo_admin_notice() { echo '<div class=\"notice notice-info wcssb-admin-demo-notice\"><h3>Welcome to the Splendid Sales Booster demo!</h3><p>Here&#39;s what you can explore with the free version:</p><ul><li><span class=\"dashicons dashicons-yes-alt\"></span> <b>Check cross-sell configuration</b> for a single product – view <a href=\"' . esc_url( get_edit_post_link( 58195 ) ) . '\">edit product page</a> and scroll down to the <b>Splendid Sales Booster</b> section in <b>Linked Products</b> tab.</li><li><span class=\"dashicons dashicons-cart\"></span> <b>See how cross-sells appear</b> on the frontend – view the <a href=\"' . esc_url( get_permalink( 58195 ) ) . '\">product page</a> and visit the <a href=\"' . esc_url( wc_get_page_permalink( 'shop' ) ) . '\">shop page</a>.</li><li><span class=\"dashicons dashicons-admin-settings\"></span> <b>Review global settings</b> – go to <a href=\"' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=products&section=splendid-sales-booster' ) ) . '\">WooCommerce → Settings → Products → Splendid Sales Booster</a>.</li></ul><p>Want more power?</p><ul><li><span class=\"dashicons dashicons-store\"></span> <b>Ruleset manager, discounts</b> and other <b>advanced features</b> are available in the PRO version.</li><li><span class=\"dashicons dashicons-external\"></span> Visit <a target=\"_blank\" href=\"https://splendidplugins.com\">splendidplugins.com</a> to explore the full <b>PRO version demo</b>.</li></ul><p>This demo site lives in your browser, is visible only to you and is deleted when you close the tab. Feel free to experiment. Want to start over? Just refresh the page!</p><hr><p style=\"margin: 1em 0;\"><b>You found the golden notice!</b> &#x1F381;<br>Use code <code>DEMO5</code> at checkout for 5% off the <a target=\"_blank\" href=\"https://splendidplugins.com/#pricing\">PRO version of our plugin</a> – a small thank-you for curious clickers like you.</p></div><style>.wcssb-admin-demo-notice .dashicons { margin-right: 3px; } .wcssb-admin-demo-notice .dashicons::before { color: #8c8f94; }</style>'; }"
      },
      {
        "step": "setSiteOptions",
        "options": {
          "blogname": "WooCommerce",
          "show_on_front": "page",
          "page_on_front": "5",
          "woocommerce_store_city": "Paris",
          "woocommerce_store_address": "5 Av. Gustave Eiffel",
          "woocommerce_store_postcode": "75007",
          "woocommerce_default_country": "FR",
          "woocommerce_onboarding_profile": {
            "skipped": true
          },
          "woocommerce_currency": "EUR",
          "woocommerce_weight_unit": "kg",
          "woocommerce_dimension_unit": "cm",
          "woocommerce_allow_tracking": "no",
          "woocommerce_cheque_settings": {
            "enabled": "yes"
          },
          "woocommerce_coming_soon": "no",
          "woocommerce_task_list_reminder_bar_hidden": "yes"
        }
      },
      {
        "step": "importWxr",
        "file": {
          "resource": "url",
          "url": "https://ps.w.org/splendid-sales-booster/assets/sample-data/sample-products.xml"
        }
      },
      {
        "step": "runPHP",
        "code": "<?php require '/wordpress/wp-load.php'; global $wpdb; $wpdb->insert( $wpdb->prefix . 'wcssb_cross_sells', array( 'parent_product_id' => '58195', 'product_id' => '12', 'product_cta' => 'Would you like fries with that?', 'product_order' => '1' ) ); $wpdb->insert( $wpdb->prefix . 'wcssb_cross_sells', array( 'parent_product_id' => '58195', 'product_id' => '13', 'product_cta' => '', 'product_order' => '2' ) ); $wpdb->insert( $wpdb->prefix . 'wcssb_cross_sells', array( 'parent_product_id' => '58195', 'product_id' => '14', 'product_cta' => '', 'product_order' => '3' ) );"
      },
      {
        "step": "defineWpConfigConsts",
        "consts": {
          "DISABLE_WP_CRON": true
        }
      }
    ]
}
