{
	"landingPage": "/pos",
	"preferredVersions": {
		"php": "8.0",
		"wp": "latest"
	},
	"phpExtensionBundles": [
		"kitchen-sink"
	],
	"features": {
		"networking": true
	},
	"steps": [
		{
			"step": "installPlugin",
			"pluginZipFile": {
				"resource": "wordpress.org/plugins",
				"slug": "woocommerce"
			},
			"options": {
				"activate": true
			}
		},
		{
			"step": "installPlugin",
			"pluginZipFile": {
				"resource": "url",
				"url": "https:\/\/downloads.wordpress.org\/plugin\/woocommerce-pos.1.4.13.zip"
			},
			"options": {
				"activate": true
			}
		},
		{
			"step": "setSiteOptions",
			"options": {
				"permalink_structure": "/%year%/%monthnum%/%day%/%postname%/",
				"woocommerce_calc_taxes": "yes"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php\nrequire_once 'wp-load.php';\n\nif (class_exists('WC_Product_CSV_Importer')) {\n    $import_file = ABSPATH . 'wp-content/plugins/woocommerce/sample-data/sample_products.csv';\n    $args = [\n        'delimiter' => ',', // CSV delimiter\n        'start_pos' => 0, // Starting position\n        'mapping' => [], // Column mapping, leave empty for automatic mapping\n        'parse' => true, // Parse file\n    ];\n\n    $importer = new WC_Product_CSV_Importer($import_file, $args);\n    $results = $importer->import();\n}\n"
		},
		{
			"step": "runPHP",
			"code": "<?php\nrequire_once 'wp-load.php';\nglobal $wpdb;\n$wpdb->insert(\n    $wpdb->prefix . 'woocommerce_tax_rates',\n    array(\n        'tax_rate_country' => 'US',\n        'tax_rate_state' => '',\n        'tax_rate' => '5.0000',\n        'tax_rate_name' => 'Sales Tax',\n        'tax_rate_priority' => '1',\n        'tax_rate_compound' => '0',\n        'tax_rate_shipping' => '1',\n        'tax_rate_order' => '0',\n        'tax_rate_class' => ''\n    )\n);\n"
		},
		{
			"step": "login",
			"username": "admin",
			"password": "password"
		}
	]
}
