Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stylish Press Blueprint: A Woo store with custom theme, content, and products #51

Merged
merged 15 commits into from
Jun 5, 2024
120 changes: 120 additions & 0 deletions blueprints/stylish-press/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Stylish Press",
"description": "A Woo store with custom theme, content, and products.",
"author": "adamziel",
"categories": ["Woocommerce", "Site"]
},
"landingPage": "/shop",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
{
"step": "resetData"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/rewrite.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(); } );"
},
{
"step": "setSiteOptions",
"options": {
"blogname": "Stylish Press",
"woocommerce_store_city": "Wrocław",
"woocommerce_store_address": "Aleje Jerozolimskie 14",
"woocommerce_store_postcode": "00-153",
"woocommerce_default_country": "Poland",
"woocommerce_onboarding_profile": {
"skipped": true
},
"woocommerce_currency": "PLN",
"woocommerce_weight_unit": "oz",
"woocommerce_dimension_unit": "in",
"woocommerce_allow_tracking": "no",
"woocommerce_cheque_settings": {
"enabled": "yes"
}
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "woocommerce"
},
"options": {
"activate": true
}
},
{
"step": "importWxr",
"file": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/woo-products.wxr"
}
},
{
"step": "importWxr",
"file": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/site-content.wxr"
}
},
{
"step": "mkdir",
"path": "/wordpress/wp-content/themes/stylish-press-theme"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/themes/stylish-press-theme/style.css",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/style.css"
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/themes/stylish-press-theme/theme.json",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/theme.json"
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/themes/stylish-press-theme/functions.php",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/functions.php"
}
},
{
"step": "mkdir",
"path": "/wordpress/wp-content/themes/stylish-press-theme/parts"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/themes/stylish-press-theme/parts/header.html",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/stylish-press/blueprints/stylish-press/stylish-press-theme/parts/header.html"
}
},
{
"step": "activateTheme",
"themeFolderName": "stylish-press-theme"
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
Loading
Loading